Skip to main content

dict replacement

Project description

https://img.shields.io/pypi/pyversions/dict.svg

https://api.codacy.com/project/badge/Grade/60d350ee07c74bd181d23b2f3c9e7430 https://www.codefactor.io/repository/github/looking-for-a-job/dict.py/badge https://codeclimate.com/github/looking-for-a-job/dict.py/badges/gpa.svg https://img.shields.io/scrutinizer/g/looking-for-a-job/dict.py.svg https://bettercodehub.com/edge/badge/looking-for-a-job/dict.py?branch=master https://sonarcloud.io/api/project_badges/measure?project=dict.py&metric=code_smells

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

https://img.shields.io/github/issues/looking-for-a-job/dict.py.svg https://img.shields.io/github/stars/looking-for-a-job/dict.py.svg?style=social&label=Stars https://img.shields.io/github/issues/looking-for-a-job/dict.py.svg

Project details


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.0.tar.gz (2.7 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