https://github.com/clintval/caseless
A typed dictionary in Python with case-insensitive keys
https://github.com/clintval/caseless
case-insensitive caseless-dict dictionary python
Last synced: about 1 month ago
JSON representation
A typed dictionary in Python with case-insensitive keys
- Host: GitHub
- URL: https://github.com/clintval/caseless
- Owner: clintval
- License: mit
- Created: 2023-09-10T17:56:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T21:12:17.000Z (over 2 years ago)
- Last Synced: 2026-04-28T22:35:16.989Z (2 months ago)
- Topics: case-insensitive, caseless-dict, dictionary, python
- Language: Python
- Homepage: https://pypi.org/project/caseless/
- Size: 651 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# caseless
[](https://github.com/clintval/caseless/actions/workflows/test.yml)
[](https://badge.fury.io/py/caseless)
[](https://pypi.python.org/pypi/caseless/)
[](http://mypy-lang.org/)
[](https://github.com/astral-sh/ruff)
A typed dictionary in Python with case-insensitive keys.
```console
pip install caseless
```

```python
from caseless import CaselessDict
CaselessDict({"lower": "UPPER"})["LOWER"] == "UPPER"
CaselessDict({"lower": "UPPER"}).get("LOWER") == "UPPER"
CaselessDict({"lower": "value"}) == CaselessDict({"LOWER": "value"})
```