Pre-release
This release is a pre-release and may not be stable for production use.
ariadna
A featureful map object that can take path-like keys to access nested keys or attributes.
Examples
from ariadna import Caja
configuration = Caja({
'clients' : [
{
'name' : 'Joe',
'lastname' : 'Doe',
'addresses' : [
{
'street' : '1st Mulholland Drive',
'city' : 'Redmond',
'state' : 'Washington',
'zip' : '12345'
},
{
'street' : '15101 Linea Drive',
'city' : 'Miami',
'state' : 'Florida',
'zip' : '67890'
}
],
'phone' : [
'1-555-888-8888',
'1-404-NOT-REAL'
],
'age': '42'
}
]
})
# now the values can be accessed using
print(configuration['clients.0.addresses.1.city']) # == Miami
print(configuration['clients/0/phone/1']) # == 1-404-NOT-REAL
Metadata
Release files for ariadna 0.0.1b0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ariadna-0.0.1b0.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ariadna-0.0.1b0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / ariadna-0.0.1b0.tar.gz
| Download URL | ariadna-0.0.1b0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
830d08017d83fb77ffdcf9471c4f67881e449587b706091104dca63484aeac89
|
|
BLAKE2b-256 checksum How to use checksums |
595ee471bd7d00073b100631269c5cf90dd1eb3305d05d9af78136ece9cda8db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Release files / ariadna-0.0.1b0-py3-none-any.whl
| Download URL | ariadna-0.0.1b0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7936139faffb4a73f9fde6014f52335cc59547530ef88a60c470ac88a82b6cf6
|
|
BLAKE2b-256 checksum How to use checksums |
59ed3d5bbb6544d84fa54ec79c8b5a0660a247cfb6b223a4a16955d244d235fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|