A simple package which converts a standard python dictionary to a dot accessible object.
Project description
DotConfig
A simple package which converts a standard python dictionary to a dot accessible object.
Installation
pip install dotcon
Usage
from dotcon import DotConfig
mydict = {
"A": [1, 2, 3, 4],
"B": {"C": 5},
"D": "E",
"F": None,
}
ddict = DotConfig(mydict)
ddict.A
>>> [1, 2, 3, 4]
ddict.B
>>> {"C": 5}
ddict.B.C
>>> 5
ddict.D
>>> "E"
ddict.F
>>> None
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
dotcon-0.2.0.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dotcon-0.2.0.tar.gz.
File metadata
- Download URL: dotcon-0.2.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
099c46598221494471371a22f4db99d765735b63701d1befaf73ec1f83eee9d7
|
|
| MD5 |
1cf446a99f0a2b31e69b5f738fafb6a3
|
|
| BLAKE2b-256 |
c85d4f98ebc31d06d4b2550ced6e83f344411ba6f02e429b9b6fc709fb31e33a
|
File details
Details for the file dotcon-0.2.0-py3-none-any.whl.
File metadata
- Download URL: dotcon-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.0 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b71e1fa113f82ed3c66083166c880ea035a5777805d0bf22b2960ae1b287b99b
|
|
| MD5 |
5a61fe2f76ee24d13eabf554d13bd256
|
|
| BLAKE2b-256 |
5f9e79f31a843f684680879d8dbcc5a5586e614c9c1da228345cb3d6d58bfdb0
|