Skip to content

A typed dictionary in Python with case-insensitive keys

License

Notifications You must be signed in to change notification settings

clintval/caseless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caseless

CI PyPi Release Python Versions MyPy Checked Ruff

A typed dictionary in Python with case-insensitive keys.

pip install caseless

Guitar Lake, California

from caseless import CaselessDict

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