Skip to main content

dict replacement

Project description

https://img.shields.io/badge/Language-Python-blue.svg?style=plastic https://img.shields.io/pypi/pyversions/dict.svg https://img.shields.io/pypi/v/dict.svg

https://api.codacy.com/project/badge/Grade/60d350ee07c74bd181d23b2f3c9e7430 https://codeclimate.com/github/russianidiot/dict.py/badges/gpa.svg https://landscape.io/github/russianidiot/dict.py/master/landscape.svg?style=flat https://scrutinizer-ci.com/g/russianidiot/dict.py/badges/quality-score.png?b=master

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

Feedback github_follow github_issues

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.42.tar.gz (2.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page