chibi-atlas


Namechibi-atlas JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/dem4ply/chibi_atlas
Summarysmall lib to proccess the keys of the dict like attributes
upload_time2024-10-17 23:57:43
maintainerNone
docs_urlNone
authordem4ply
requires_pythonNone
licenseWTFPL
keywords chibi_atlas
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            ===========
chibi_atlas
===========

small lib to proccess the keys of the dict like attributes

.. image:: https://img.shields.io/pypi/v/chibi_atlas.svg
        :target: https://pypi.python.org/pypi/chibi_atlas

.. image:: https://img.shields.io/travis/dem4ply/chibi_atlas.svg
        :target: https://travis-ci.org/dem4ply/chibi_atlas

.. image:: https://readthedocs.org/projects/chibi-atlas/badge/?version=latest
        :target: https://chibi-atlas.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status


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

.. code-block:: python

	import chibi_atlas 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'

*****************
chibi_atlas_multi
*****************

Chibi_atlas_multi se utiliza para asumir que cada asignacion en cada key
seria asumiendo que su valor es una lista y se le hace append en el caso que
solo se le asigne un solo valor entonces usara el comportamiento por defecto
de los dicionarios

.. code-block:: python

	from chibi_atlas.multi import Chibi_atlas_multi

	c = Chibi_atlas_multi()
	c[ 'a' ] = 'a'
	assert { 'a': 'a' } == c

	c = Chibi_atlas_multi()
	c[ 'a' ] = 'a'
	c[ 'a' ] = 'b'
	c[ 'a' ] = 'c'
	assert { 'a': [ 'a', 'b', 'c', ] } == c


**********
Chibi_tree
**********

no recuerdo porque hice esta cosa pero funciona como un arbol con atributos


* Free software: WTFPL
* Documentation: https://chibi-atlas.readthedocs.io.


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


****************
1.1.0 2024-10-17
****************

* se renombro __Chibi_atlas_list a Chibi_atlas_list para que no sea raro usarlo
* se agrego a Chibi_atlas_list para que tenga multi append


******************
0.0.1 (2024-02-06)
******************

* First release on PyPI.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dem4ply/chibi_atlas",
    "name": "chibi-atlas",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "chibi_atlas",
    "author": "dem4ply",
    "author_email": "dem4ply@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2f/7f/5404cd3ab08c1adbf2116cbbc440b91eaa63a8baab78e444be6af1eab177/chibi_atlas-1.1.0.tar.gz",
    "platform": null,
    "description": "===========\nchibi_atlas\n===========\n\nsmall lib to proccess the keys of the dict like attributes\n\n.. image:: https://img.shields.io/pypi/v/chibi_atlas.svg\n        :target: https://pypi.python.org/pypi/chibi_atlas\n\n.. image:: https://img.shields.io/travis/dem4ply/chibi_atlas.svg\n        :target: https://travis-ci.org/dem4ply/chibi_atlas\n\n.. image:: https://readthedocs.org/projects/chibi-atlas/badge/?version=latest\n        :target: https://chibi-atlas.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n\nthis is a dict but his keys can be access like attribute\n\n.. code-block:: python\n\n\timport chibi_atlas 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*****************\nchibi_atlas_multi\n*****************\n\nChibi_atlas_multi se utiliza para asumir que cada asignacion en cada key\nseria asumiendo que su valor es una lista y se le hace append en el caso que\nsolo se le asigne un solo valor entonces usara el comportamiento por defecto\nde los dicionarios\n\n.. code-block:: python\n\n\tfrom chibi_atlas.multi import Chibi_atlas_multi\n\n\tc = Chibi_atlas_multi()\n\tc[ 'a' ] = 'a'\n\tassert { 'a': 'a' } == c\n\n\tc = Chibi_atlas_multi()\n\tc[ 'a' ] = 'a'\n\tc[ 'a' ] = 'b'\n\tc[ 'a' ] = 'c'\n\tassert { 'a': [ 'a', 'b', 'c', ] } == c\n\n\n**********\nChibi_tree\n**********\n\nno recuerdo porque hice esta cosa pero funciona como un arbol con atributos\n\n\n* Free software: WTFPL\n* Documentation: https://chibi-atlas.readthedocs.io.\n\n\n=======\nHistory\n=======\n\n\n****************\n1.1.0 2024-10-17\n****************\n\n* se renombro __Chibi_atlas_list a Chibi_atlas_list para que no sea raro usarlo\n* se agrego a Chibi_atlas_list para que tenga multi append\n\n\n******************\n0.0.1 (2024-02-06)\n******************\n\n* First release on PyPI.\n",
    "bugtrack_url": null,
    "license": "WTFPL",
    "summary": "small lib to proccess the keys of the dict like attributes",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/dem4ply/chibi_atlas"
    },
    "split_keywords": [
        "chibi_atlas"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f67e8848de42b3d3d05302d47544d9d0d8cc61a8db5367b5dd1671291278a81",
                "md5": "4b5708c0d2e176fe92da47c1ce7b9bcd",
                "sha256": "6d3995535d60c4dd2c1bdda5e74ac81f0f10a0c9bb1b3284fb2ace64831279fb"
            },
            "downloads": -1,
            "filename": "chibi_atlas-1.1.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4b5708c0d2e176fe92da47c1ce7b9bcd",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 5588,
            "upload_time": "2024-10-17T23:57:41",
            "upload_time_iso_8601": "2024-10-17T23:57:41.556049Z",
            "url": "https://files.pythonhosted.org/packages/6f/67/e8848de42b3d3d05302d47544d9d0d8cc61a8db5367b5dd1671291278a81/chibi_atlas-1.1.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f7f5404cd3ab08c1adbf2116cbbc440b91eaa63a8baab78e444be6af1eab177",
                "md5": "3ffdb6cb032ec6ca189c270d16578f3d",
                "sha256": "73a0d440f010ccfb173c30bacfcaf80a7abd3f9bf3eb313e66adb12108f94ec3"
            },
            "downloads": -1,
            "filename": "chibi_atlas-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3ffdb6cb032ec6ca189c270d16578f3d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12077,
            "upload_time": "2024-10-17T23:57:43",
            "upload_time_iso_8601": "2024-10-17T23:57:43.203642Z",
            "url": "https://files.pythonhosted.org/packages/2f/7f/5404cd3ab08c1adbf2116cbbc440b91eaa63a8baab78e444be6af1eab177/chibi_atlas-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-17 23:57:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dem4ply",
    "github_project": "chibi_atlas",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "chibi-atlas"
}
        
Elapsed time: 1.48937s