=====
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.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/3b/b4/176c86e375a1b4da24174ba514738c3f5c98653c736b0b2ce81a855459d4/chibi-0.15.1.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.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.15.1",
"project_urls": {
"Homepage": "https://github.com/dem4ply/chibi"
},
"split_keywords": [
"chibi"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "083189c61d4e9e26198685acf2de171ca2117b4eb51b194064861178c284ff52",
"md5": "71bd5ffe078fb4960049cd3ebcc51944",
"sha256": "50b7a7c1b6eb3f54383d80ac1740a684a2731d65063797f7e75a3eeb747076d4"
},
"downloads": -1,
"filename": "chibi-0.15.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "71bd5ffe078fb4960049cd3ebcc51944",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 43703,
"upload_time": "2025-01-29T09:59:22",
"upload_time_iso_8601": "2025-01-29T09:59:22.200243Z",
"url": "https://files.pythonhosted.org/packages/08/31/89c61d4e9e26198685acf2de171ca2117b4eb51b194064861178c284ff52/chibi-0.15.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3bb4176c86e375a1b4da24174ba514738c3f5c98653c736b0b2ce81a855459d4",
"md5": "5b924d24cc5ff63df86d6941a54f1c09",
"sha256": "a9debd98f31a1a957784d31931893ae242e093cc691b6de1b7a2959c1ae9d3cb"
},
"downloads": -1,
"filename": "chibi-0.15.1.tar.gz",
"has_sig": false,
"md5_digest": "5b924d24cc5ff63df86d6941a54f1c09",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 893812,
"upload_time": "2025-01-29T09:59:26",
"upload_time_iso_8601": "2025-01-29T09:59:26.568665Z",
"url": "https://files.pythonhosted.org/packages/3b/b4/176c86e375a1b4da24174ba514738c3f5c98653c736b0b2ce81a855459d4/chibi-0.15.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-29 09:59:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dem4ply",
"github_project": "chibi",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "chibi"
}