Skip to main content

No project description provided

Project description


A dict-like object that enables access of its elements as regular fields. Dicto's main feature is delivering an elegant experience while using configuration files/objects.


You can create a Dicto from any dict:

import dicto

params = dicto.Dict({"learning_rate": 0.001, "batch_size": 32 })

optimizer = Adam(params.learning_rate)

Dicto parses through arbitrary nested structures of dicts, list, tuple, and set:

import dicto

params = dicto.Dict({
            "x": 1,
            "y": 2
            "x": 3,
            "y": 4

print(params.points[0].x) # 1

dicto can load json, yaml, and xml formats directly, for example, given this YAML file

# params.yml
learning_rate: 0.001
batch_size: 32

you can load it like this:

import dicto

params = dicto.load("params.yml")
optimizer = Adam(params.learning_rate)


pip install dicto


MIT License

Project details

Download files

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

Source Distribution

dicto-0.2.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

dicto-0.2.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page