An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# caseless

[![CI](https://github.com/clintval/caseless/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/clintval/caseless/actions/workflows/test.yml)
[![PyPi Release](https://badge.fury.io/py/caseless.svg)](https://badge.fury.io/py/caseless)
[![Python Versions](https://img.shields.io/pypi/pyversions/caseless.svg)](https://pypi.python.org/pypi/caseless/)
[![MyPy Checked](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)

A typed dictionary in Python with case-insensitive keys.

```console
pip install caseless
```

![Guitar Lake, California](https://github.com/clintval/caseless/raw/82ec043f64a2b887ecb5233e5a43e2a2e2950b6e/.github/img/cover.jpg)

```python
from caseless import CaselessDict

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