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
Release history Release notifications | RSS feed
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
jsdict_py-1.0.1-py3-none-any.whl
(14.4 kB
view hashes)
Close
Hashes for jsdict_py-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c5737b5354e2d619cc077f74c864c3664f1eb8be7ad68150fd4ffc9c029a278 |
|
MD5 | bbc2ab359ae839349b4f71a31f2d88ad |
|
BLAKE2b-256 | 85b856fc5d98644c8f649fd182bc2f0cdc1cc397a1f19d88a709df32c10118b8 |