Simple case for insensitive dictionary object, All previous keys that already stored in dictionary can't be adding again (avoid duplication) and all keys will preserved as lowercase regardless previously was set in uppercase or capitalize object.
# simple usage
>> from utils import InsensitiveDict
>> headers = InsensitiveDict({"Content-Type": "application/json"})
>> headers["content-type"]
application/json # expected output
Just run with execute following command python test_utils.py
This repository was created just to learn how to create an ordered dictionary object without using dict
module that already provided by Python. You might be found some interesting in here :