dict replacement
Project description
Install
`[sudo] pip install dict`
Features
attribute-style access
None instead of KeyError
safe remove
jQuery like methods chaining
Usage
>>> from dict import dict
Examples
>>> dict(k="v")["k"]
"v"
>>> dict(k="v").k
"v"
>>> dict(k="v")["not_existing"]
None
>>> dict(k="v").not_existing
None
>>> dict(k="v").get("K",i=True) # case insensitive
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 Distribution
dict-1.0.1.tar.gz
(2.2 kB
view hashes)