dicto
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.
Example
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({
"points":[
{
"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)
Installation
pip install dicto
License
MIT License
Metadata
Release files for dicto 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dicto-0.2.0.tar.gz | 3.9 kB | Without provenance | Details for dicto-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dicto-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for dicto-0.2.0-py3-none-any.whl |
Total release size: 7.8 kB
Release files / dicto-0.2.0.tar.gz
| Download URL | dicto-0.2.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fe029e5c9b5f246e9a3dd5933042ce826efb0d862551541148ab3450f5d811a
|
|
BLAKE2b-256 checksum How to use checksums |
3bcca72795248df11fa29c85a9801536a7cb1e0fe2da07498badf65b758e2bf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.6 Linux/5.3.0-7629-generic
|
Release files / dicto-0.2.0-py3-none-any.whl
| Download URL | dicto-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c110047d763580e4967262598599430014d6a95a89f0befc05f29eed050009f0
|
|
BLAKE2b-256 checksum How to use checksums |
bde962fb8eff27501056bd37d19fe61c3060470a0649ec0b163b89d54419b419
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.6 Linux/5.3.0-7629-generic
|
Security for dicto 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.