Skip to main content

Dynamic Dictionary Class

Project description

DynDict

Python test PyPI - Downloads

Dynamic Dictionary class for Python adds support for add operation for dictionary classes.

Demo

Python 3.8.3 (default, May 17 2020, 18:15:42) 
[GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from dyndict import dyndict
>>> dyn = dyndict()
>>> dyn
{}
>>> dyn += {'a': 1}
>>> dyn
{'a': 1}
>>> dyn += {'b': 1}
>>> dyn
{'a': 1, 'b': 1}
>>> dyn += {'b': 1}
>>> dyn
{'a': 1, 'b': 2}
>>> dyn += {'list': []}
>>> dyn
{'a': 1, 'b': 2, 'list': []}
>>> dyn += {'list': [1, 2, 3]}
>>> dyn
{'a': 1, 'b': 2, 'list': [1, 2, 3]}
>>> dyn += {'list': [{'z': 26}]}
>>> dyn
{'a': 1, 'b': 2, 'list': [1, 2, 3, {'z': 26}]}
>>> dyn['a']
1
>>> dyn['list'][3]
{'z': 26}

Installation

pip install dyndict

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

dyndict-20.7.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dyndict-20.7.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file dyndict-20.7.3.tar.gz.

File metadata

  • Download URL: dyndict-20.7.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for dyndict-20.7.3.tar.gz
Algorithm Hash digest
SHA256 0f368b4b6480339ad065a422a37568d9898c47a702deda1f37c1e8c6bb239a62
MD5 319bf452bd71fd82be8fc7e70b8daf5e
BLAKE2b-256 081d693e46ac608b8b3b275848f813fe7c2ff260bffa2c98629149f5c9e0c0b3

See more details on using hashes here.

File details

Details for the file dyndict-20.7.3-py3-none-any.whl.

File metadata

  • Download URL: dyndict-20.7.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for dyndict-20.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6ac2f38755a197cfba2c94b0b717f68bfe9f1cd4e02c6af60ba4414581409595
MD5 5e613830016201a2fc534d66fcde5c62
BLAKE2b-256 59c78407472bf8acd85e8028b4ac3c8d775e4a469bb2095b9a85e86fa593169f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page