Skip to main content

Dot notation python dicationary

Project description

pydotmap

built with Python3

This package is just a wrapper to python standard library dict. It will allow you to use python dict or dictionary as dot notation just like javascript object. You can use simple and complex dict with this library.

How to use?

from pydotmap import DotMap


author = DotMap(name="atul", sirname="singh", addr=[{"country": "India"}])
print(author.name)
print(author.sirname)
del author.sirname
print(author.sirname)
print(author.get("sirname", "singh"))  # you can use your default value same as dict
print(author.addr[0].country)

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

pydotmap-0.0.3.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

pydotmap-0.0.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pydotmap-0.0.3.tar.gz.

File metadata

  • Download URL: pydotmap-0.0.3.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for pydotmap-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a0d6a98eedf3b8e7f6309ec95b4a34bbf2973401c802ecdc4cdbe7f3bc5049f9
MD5 bad7bb01166844aab4772ab729db6252
BLAKE2b-256 ee0c43be4941d81c69355ef82b00374794ba865c9d16e5de44c538c973081dad

See more details on using hashes here.

File details

Details for the file pydotmap-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pydotmap-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for pydotmap-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e6df0a03c92631e13e75ef2d534b7303b9e3b4a7b9faa48b84f5cd185b27278a
MD5 5e4b3ce7816081691428878875e99433
BLAKE2b-256 9fcf4c11842b61dd4cb22275ab66458ebbc09c2e48e5a13c36c8e0257673c49a

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