dict replacement
Project description
Installation
$ [sudo] pip install dict
Features
- attribute-style access
- None instead of KeyError
- safe remove
- jQuery like methods chaining
Classes
class | __doc__ |
---|---|
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
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-2019.3.22.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for dict-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 013174137803b734dc56107ff01927ca89da9e6ddfd99320af3a75bd6f28c409 |
|
MD5 | b693e7d593fd78bc36fbbe8b98ad3ab4 |
|
BLAKE2b-256 | 150930a31f35654cac9e80a5d2d7ced5babbdeabd399082156aeef115b35092f |