Skip to main content

Javascript-syle Dictionaries in Python

Project description

jsdict

Javascript-style Dictionaries for Python

Usage

from jsdict import JsDict

d = JsDict({"key1": 2, "key2": 3})

print(d.key1)
# 2
print(d)
# {'key1': 2, 'key2': 3}

d.key3 = {"key4": 5}
print(d)
# {'key1': 2, 'key2': 3, 'key3': {'key4': 5}}

d.key3.key5 = 6
print(d)
# {'key1': 2, 'key2': 3, 'key3': {'key4': 5, 'key5': 6}}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

jsdict_py-1.0.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file jsdict_py-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: jsdict_py-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for jsdict_py-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c5737b5354e2d619cc077f74c864c3664f1eb8be7ad68150fd4ffc9c029a278
MD5 bbc2ab359ae839349b4f71a31f2d88ad
BLAKE2b-256 85b856fc5d98644c8f649fd182bc2f0cdc1cc397a1f19d88a709df32c10118b8

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