Skip to main content

A library of featureful collection objects providing path-like keys

Project description


A featureful map object that can take path-like keys to access nested keys or attributes.


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' : [
            'age': '42'

# now the values can be accessed using
print(configuration['']) # == Miami
print(configuration['clients/0/phone/1']) # == 1-404-NOT-REAL

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ariadna, version 0.0.1b0
Filename, size File type Python version Upload date Hashes
Filename, size ariadna-0.0.1b0.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View
Filename, size ariadna-0.0.1b0-py3-none-any.whl (8.8 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page