Skip to main content

python-dict2dot

Python Dictionary to Dot notation published in GitHub and PyPi.

This implementation admits dot notation to access nested dictionaries, once the parent is dict.

To pip install, run:

$ pip install dict2dot

 
 

The main class

With the python console and the dict2doc package, we can get things running:

$ python

>>>
from dict2dot import Dict2Dot

my_d2dot = Dict2Dot({'dogs': {'breeds': ['Golden']}, 'birds': {'breeds': ['Cockatiel']}})
my_d2dot.dogs.breeds.append('Lhasa Apso')
print( my_d2dot.dogs )

my_dict = my_d2dot.dict()
print( my_dict )

other_dot2dict = Dict2Dot()
other_dot2dict.a_new_key = 'a new value'
print( other_dot2dict.a_new_key )

Documentation

Please try from python console:

$ python
>>> from dict2dot import Dict2Dot
>>> help(Dict2Dot)

Or try from command line:

$ python -c "import dict2dot; print(dict2dot.__doc__)"

All documentation can be found in docs.

To do

  • Remove elements from class.
  • Improve documentation.

Metadata

Release files for dict2dot 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for dict2dot 0.1
File Interpreter ABI Platform Actions
dict2dot-0.1-py3-none-any.whl Python 3 none any Details for dict2dot-0.1-py3-none-any.whl

Release files / dict2dot-0.1-py3-none-any.whl

Download URL dict2dot-0.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff76ed461266e1c848c952d72b852b891e24164ee9ed5c9e537d8aa9e0699087
BLAKE2b-256 checksum
How to use checksums
5fed9cc7fe181c4b2eea8b2366b15e49a2eb928909da0ef211a15a19b425f1fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

Security for dict2dot 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page