Dot4Dict
Access dictionary keys with a Dot:
from dot4dict import dotdict
my_dict = dotdict({"foo": "bar"})
assert my_dict.foo == "bar"
assert my_dict["foo"] == "bar"
This works also recursively
from dot4dict import dotdict
my_dict = dotdict({"a": {"b": {"c": "foo"}}})
assert my_dict.a.b.c == "foo"
Copyright
This project is distributed under the Apache license version 2.0.
Metadata
Release files for dot4dict 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dot4dict-0.1.1.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dot4dict-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / dot4dict-0.1.1.tar.gz
| Download URL | dot4dict-0.1.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b0f05b0a0e03832db32a191b7bcd52cff45dd53a354b8d75da3f94ed152b712
|
|
BLAKE2b-256 checksum How to use checksums |
3fe6ed9a4c610ddbfb54f7cee0636931356c362c81d4112f8bb80008933aed6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / dot4dict-0.1.1-py3-none-any.whl
| Download URL | dot4dict-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40fa529924f1694bb797a00b586019a28903e4445fd22e4652c09d12c0b28299
|
|
BLAKE2b-256 checksum How to use checksums |
bdfa4b50796bf71cf2fe27948b0adf8006da69ff2771326b44d17aaa6d2641a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|