chibi


Namechibi JSON
Version 0.11.10 PyPI version JSON
download
home_pagehttps://github.com/dem4ply/chibi
Summary
upload_time2023-10-28 07:56:37
maintainer
docs_urlNone
authordem4ply
requires_python
licenseWTFPL
keywords chibi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            =====
chibi
=====

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

*************
cosas utitles
*************

Chibi_path
==========

the chibi path work like strings but with opperators have sense for folders
and files

.. code-block:: python

	from chibi.file import Chibi_path

	tmp = Chibi_path( '/tmp/folder' )
	isintance( p, str ) == true
	# return a generator with all the files and folders in
	# the path
	ls = list( p.ls() )
	print( ls )
	p = tmp + 'file.json'
	str( p ) == '/tmp/folder/file.json'
	f = p.open()
	# check the file for see is containt 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 = p + 'file.yaml'
	f.write( { 'stuff': 'str' } )
	yaml = f.read()
	yaml.stuff == 'str'


Chibi_atlas
===========

this is a dict but his keys can be access like attribute

.. code-block:: python

	import chibi.atals import Chibi_atlas


	c = Chibi_atlas( { 'stuff': 'str', 'l': [ 1, { 'more_stuff': 'str_2' } ] } )
	isintance( c, dict ) == true
	c.stuff == 'str'
	c.l[0] == 1
	c.l[1].more_stuff == 'str_2'


=======
History
=======

******************
0.0.1 (2019-12-18)
******************

* First release on PyPI.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dem4ply/chibi",
    "name": "chibi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "chibi",
    "author": "dem4ply",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/c5/7c/e9eb86a099fd1cc06551fea6f436a64ddda8450917396f98052703dd6dc2/chibi-0.11.10.tar.gz",
    "platform": null,
    "description": "=====\nchibi\n=====\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*************\ncosas utitles\n*************\n\nChibi_path\n==========\n\nthe chibi path work like strings but with opperators 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\tisintance( p, str ) == true\n\t# return a generator with all the files and folders in\n\t# the path\n\tls = list( p.ls() )\n\tprint( ls )\n\tp = tmp + 'file.json'\n\tstr( p ) == '/tmp/folder/file.json'\n\tf = p.open()\n\t# check the file for see is containt 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 = p + 'file.yaml'\n\tf.write( { 'stuff': 'str' } )\n\tyaml = f.read()\n\tyaml.stuff == 'str'\n\n\nChibi_atlas\n===========\n\nthis is a dict but his keys can be access like attribute\n\n.. code-block:: python\n\n\timport chibi.atals import Chibi_atlas\n\n\n\tc = Chibi_atlas( { 'stuff': 'str', 'l': [ 1, { 'more_stuff': 'str_2' } ] } )\n\tisintance( 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.0.1 (2019-12-18)\n******************\n\n* First release on PyPI.\n",
    "bugtrack_url": null,
    "license": "WTFPL",
    "summary": "",
    "version": "0.11.10",
    "project_urls": {
        "Homepage": "https://github.com/dem4ply/chibi"
    },
    "split_keywords": [
        "chibi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a76a313d4bc47196a7dd663c541a7663f11bdc8162998c691f350873f4617f5",
                "md5": "2dc1711befd16f2fdf39cee24ae7e719",
                "sha256": "867d7ee04b518c32a05e95873968c162cefc0660c2d63094ef162db9349610f1"
            },
            "downloads": -1,
            "filename": "chibi-0.11.10-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2dc1711befd16f2fdf39cee24ae7e719",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 44831,
            "upload_time": "2023-10-28T07:56:35",
            "upload_time_iso_8601": "2023-10-28T07:56:35.126233Z",
            "url": "https://files.pythonhosted.org/packages/3a/76/a313d4bc47196a7dd663c541a7663f11bdc8162998c691f350873f4617f5/chibi-0.11.10-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c57ce9eb86a099fd1cc06551fea6f436a64ddda8450917396f98052703dd6dc2",
                "md5": "b8f0b566916cb2717cba886881d91707",
                "sha256": "763ae5ab745d853ecd069e4214a783cc91673b205ccc68c0f0c14cd005fd2c6e"
            },
            "downloads": -1,
            "filename": "chibi-0.11.10.tar.gz",
            "has_sig": false,
            "md5_digest": "b8f0b566916cb2717cba886881d91707",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 892348,
            "upload_time": "2023-10-28T07:56:37",
            "upload_time_iso_8601": "2023-10-28T07:56:37.644132Z",
            "url": "https://files.pythonhosted.org/packages/c5/7c/e9eb86a099fd1cc06551fea6f436a64ddda8450917396f98052703dd6dc2/chibi-0.11.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-28 07:56:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dem4ply",
    "github_project": "chibi",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": false,
    "lcname": "chibi"
}
        
Elapsed time: 0.13403s