small lib to proccess the keys of the dict like attributes
Project description
chibi_atlas
small lib to proccess the keys of the dict like attributes
this is a dict but his keys can be access like attribute
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file chibi_atlas-1.1.0.tar.gz
.
File metadata
- Download URL: chibi_atlas-1.1.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a0d440f010ccfb173c30bacfcaf80a7abd3f9bf3eb313e66adb12108f94ec3 |
|
MD5 | 3ffdb6cb032ec6ca189c270d16578f3d |
|
BLAKE2b-256 | 2f7f5404cd3ab08c1adbf2116cbbc440b91eaa63a8baab78e444be6af1eab177 |
File details
Details for the file chibi_atlas-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: chibi_atlas-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d3995535d60c4dd2c1bdda5e74ac81f0f10a0c9bb1b3284fb2ace64831279fb |
|
MD5 | 4b5708c0d2e176fe92da47c1ce7b9bcd |
|
BLAKE2b-256 | 6f67e8848de42b3d3d05302d47544d9d0d8cc61a8db5367b5dd1671291278a81 |