=====
chibi
=====
.. image:: https://img.shields.io/pypi/v/chibi.svg
:target: https://pypi.python.org/pypi/chibi
.. image:: https://readthedocs.org/projects/chibi/badge/?version=latest
:target: https://chibi.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
python snippets and other useful things
this package is for i can put snippets and other useful things
and i do not need to write the same thing for fifth time
* Free software: WTFPL
* Documentation: https://chibi-apache.readthedocs.io.
*************
cosas utitles
*************
Chibi_path
==========
the chibi path work like strings but with operators have sense for folders
and files
.. code-block:: python
from chibi.file import Chibi_path
tmp = Chibi_path( '/tmp/folder' )
isinstance( tmp, str ) == True
tmp.mkdir()
# return a generator with all the files and folders in
# the path
ls = list( tmp.ls() )
print( ls )
p = tmp + 'file.json'
str( p ) == '/tmp/folder/file.json'
f = p.open()
f.write('some string')
# check the file to see if it contains the string
'some string' in f
# write a dict like json in the file
f.write( { 'stuff': 'str' } )
# read the json and transform the dict in a Chibi_atlas
json = f.read()
json.stuff == 'str'
# the same but in yaml
f = tmp + 'file.yaml'
y = f.open()
y.write( { 'stuff': 'str' } )
yaml = y.read()
yaml.stuff == 'str'
Chibi_atlas
===========
esta herramienta se migro al paquete chibi-atlas
this is a dict but his keys can be access like attribute
.. code-block:: python
from chibi.atlas import Chibi_atlas
c = Chibi_atlas( { 'stuff': 'str', 'l': [ 1, { 'more_stuff': 'str_2' } ] } )
isinstance( c, dict ) == True
c.stuff == 'str'
c.l[0] == 1
c.l[1].more_stuff == 'str_2'
=======
History
=======
*******************
0.17.0 (2025-03-12)
*******************
* los config de los envars ahora funcionan como chibi_atlas para encadenar
atributos
*******************
0.16.1 (2025-03-12)
*******************
* cuando no hay un home no carga el archivo de configuracion de chibi
*******************
0.16.0 (2025-03-11)
*******************
* se agrego el parametro para no elimnar los chibi_path_temp cuando se eliminen
******
0.14.0
******
* inicio de migracion de pillow a chibi_miru
*******
0.11.10
*******
* se migro chibi.atlas a un paquete separado chibi-atlas
******************
0.0.1 (2019-12-18)
******************
* First release on PyPI.
Raw data
{
"_id": null,
"home_page": "https://github.com/dem4ply/chibi",
"name": "chibi",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "chibi",
"author": "dem4ply",
"author_email": "dem4ply@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/42/25/8a50fb42c89f03db3e644214c0852627743bfd42ebcf9c1176de4847a1f7/chibi-0.17.0.tar.gz",
"platform": null,
"description": "=====\nchibi\n=====\n\n.. image:: https://img.shields.io/pypi/v/chibi.svg\n :target: https://pypi.python.org/pypi/chibi\n\n.. image:: https://readthedocs.org/projects/chibi/badge/?version=latest\n :target: https://chibi.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n\npython snippets and other useful things\n\nthis package is for i can put snippets and other useful things\nand i do not need to write the same thing for fifth time\n\n\n* Free software: WTFPL\n* Documentation: https://chibi-apache.readthedocs.io.\n\n*************\ncosas utitles\n*************\n\nChibi_path\n==========\n\nthe chibi path work like strings but with operators have sense for folders\nand files\n\n.. code-block:: python\n\n\tfrom chibi.file import Chibi_path\n\n\ttmp = Chibi_path( '/tmp/folder' )\n\tisinstance( tmp, str ) == True\n\ttmp.mkdir()\n\t# return a generator with all the files and folders in\n\t# the path\n\tls = list( tmp.ls() )\n\tprint( ls )\n\tp = tmp + 'file.json'\n\tstr( p ) == '/tmp/folder/file.json'\n\tf = p.open()\n\tf.write('some string')\n\t# check the file to see if it contains the string\n\t'some string' in f\n\n\t# write a dict like json in the file\n\tf.write( { 'stuff': 'str' } )\n\t# read the json and transform the dict in a Chibi_atlas\n\tjson = f.read()\n\tjson.stuff == 'str'\n\n\t# the same but in yaml\n\tf = tmp + 'file.yaml'\n\ty = f.open()\n\n\ty.write( { 'stuff': 'str' } )\n\tyaml = y.read()\n\tyaml.stuff == 'str'\n\n\nChibi_atlas\n===========\n\nesta herramienta se migro al paquete chibi-atlas\n\nthis is a dict but his keys can be access like attribute\n\n.. code-block:: python\n\n\tfrom chibi.atlas import Chibi_atlas\n\n\n\tc = Chibi_atlas( { 'stuff': 'str', 'l': [ 1, { 'more_stuff': 'str_2' } ] } )\n\tisinstance( c, dict ) == True\n\tc.stuff == 'str'\n\tc.l[0] == 1\n\tc.l[1].more_stuff == 'str_2'\n\n\n=======\nHistory\n=======\n\n*******************\n0.17.0 (2025-03-12)\n*******************\n\n* los config de los envars ahora funcionan como chibi_atlas para encadenar \n atributos\n\n*******************\n0.16.1 (2025-03-12)\n*******************\n\n* cuando no hay un home no carga el archivo de configuracion de chibi\n\n*******************\n0.16.0 (2025-03-11)\n*******************\n\n* se agrego el parametro para no elimnar los chibi_path_temp cuando se eliminen\n\n******\n0.14.0\n******\n\n* inicio de migracion de pillow a chibi_miru\n\n*******\n0.11.10\n*******\n\n* se migro chibi.atlas a un paquete separado chibi-atlas\n\n******************\n0.0.1 (2019-12-18)\n******************\n\n* First release on PyPI.\n",
"bugtrack_url": null,
"license": "WTFPL",
"summary": "python snippets and other useful things",
"version": "0.17.0",
"project_urls": {
"Homepage": "https://github.com/dem4ply/chibi"
},
"split_keywords": [
"chibi"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "12b050743f026cc4326956707768ad77d9535dd25a5c105ee09a1085a02ed9ae",
"md5": "3a5331b8acb672421a98485650669605",
"sha256": "acb445c9e89ccca8353ddf104ed31f8512da939b92426e5e07876a4eb2a980cf"
},
"downloads": -1,
"filename": "chibi-0.17.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "3a5331b8acb672421a98485650669605",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 44027,
"upload_time": "2025-07-15T19:00:20",
"upload_time_iso_8601": "2025-07-15T19:00:20.900688Z",
"url": "https://files.pythonhosted.org/packages/12/b0/50743f026cc4326956707768ad77d9535dd25a5c105ee09a1085a02ed9ae/chibi-0.17.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "42258a50fb42c89f03db3e644214c0852627743bfd42ebcf9c1176de4847a1f7",
"md5": "3999f39c2f96dbd2f6e47268a482c201",
"sha256": "cba3b0341211624b1ebfa4c8bd3a448c70255fe02f240a600431f269576238e6"
},
"downloads": -1,
"filename": "chibi-0.17.0.tar.gz",
"has_sig": false,
"md5_digest": "3999f39c2f96dbd2f6e47268a482c201",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 894839,
"upload_time": "2025-07-15T19:00:24",
"upload_time_iso_8601": "2025-07-15T19:00:24.158443Z",
"url": "https://files.pythonhosted.org/packages/42/25/8a50fb42c89f03db3e644214c0852627743bfd42ebcf9c1176de4847a1f7/chibi-0.17.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-15 19:00:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dem4ply",
"github_project": "chibi",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "chibi"
}