https://github.com/andrewpetrochenkov/dict.py
:snake: dict replacement
https://github.com/andrewpetrochenkov/dict.py
python
Last synced: about 2 months ago
JSON representation
:snake: dict replacement
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/dict.py
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2015-09-06T06:20:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T19:55:03.000Z (over 4 years ago)
- Last Synced: 2025-04-06T11:47:26.674Z (2 months ago)
- Topics: python
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://pypi.org/project/dict/)
[](https://unlicense.org/)
[](https://github.com/andrewp-as-is/dict.py/actions)### Installation
```bash
$ [sudo] pip install dict
```#### Features
* **attribute-style access**
* **None** instead of **KeyError**
* safe **remove**
* jQuery like **methods chaining**#### Examples
```python
>>> 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
```