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 configuration 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.3.0.tar.gz
(2.3 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.3.0.tar.gz.
File metadata
- Download URL: dotcon-0.3.0.tar.gz
- Upload date:
- Size: 2.3 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 |
4bd0ca72db8c0089f433517a1d5a9434d98090c168694364652e787f2599b793
|
|
| MD5 |
96c57dc8bc9f896b264961375060d8d7
|
|
| BLAKE2b-256 |
3e25571c2d9467df1aca06764dcd4d6b7a123b328a0b6fead15ee80594002015
|
File details
Details for the file dotcon-0.3.0-py3-none-any.whl.
File metadata
- Download URL: dotcon-0.3.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 |
77d3ec982bb7ccc0282e2392dbd96d1fb42480bf31a89eec94dff2aee88482bf
|
|
| MD5 |
97be222ec4fb3ef763b81b18f2cb7edb
|
|
| BLAKE2b-256 |
3225272e28197625b8b807f35771dc229906f9d195b9b4bd45e8d10b6fc2aea3
|