dict replacement
Project description
Install
github.com: pip install git+git://github.com/russianidiot/dict.py.git
pypi.python.org: pip install dict
download: [ -e requirements.txt ] && pip install -r requirements.txt; python setup.py install
Features
attribute-style access
None instead of KeyError
safe remove
jQuery like methods chaining
Usage
from dict import *
>>> 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
"v"
dict(k="v").remove("k").update(k2="v2") # jquery like chain
Feedback
- Chat with me (english/russian)
russianidiot.github.io/python/ - my Python packages
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-0.0.4.tar.gz
(5.1 kB
view hashes)