dict replacement
Project description
Install
$ [sudo] pip install dict
Features
- attribute-style access
- None instead of KeyError
- safe remove
- jQuery like methods chaining
Classes
dict.dict
Examples
>>> from dict import dict
>>> 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
readme-md - README.md generator
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-2018.11.19.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for dict-2018.11.19-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b61397b5412979e93446627204e52d698fbe4d1f7888b353ddb9a4efb637780 |
|
MD5 | 1315d219bd8757c3f9fb909a189780e4 |
|
BLAKE2b-256 | 6294842d1b9f644664523f34f6a1f24cdf56fb075994cfa41ba151a6d525c77b |