- implements all standard dictionary methods
- supports nested dicts
- this implementation does not preserve original key case
pip install CaseInsensitiveDict
from CaseInsensitiveDict import CaseInsensitiveDict
cid = CaseInsensitiveDict({"A": {"A": 1}, "B": 2, "c": 3})
print cid["A"] # >>> {'a': 1}
print cid["a"] # >>> {'a': 1}
print cid["A"]["a"] # >>> 1
print cid["b"] # >>> 2
print cid["C"] # >>> 3
Feel free to contribute.
2015 Vít Listík
Released under MIT licence