You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| CaselessDict | A dictionary where keys that are strings are case-folded. |`CaselessDict({" HeLLO WoRLD ": 1}) # Output: {'hello world': 1}`|
34
+
| CaseFoldCaselessDict | A dictionary where keys that are strings are case-folded. |`CaseFoldCaselessDict({" HeLLO WoRLD ": 1}) # Output: {'hello world': 1}`|
35
+
| LowerCaselessDict | A dictionary where keys that are strings are in lower case. |`LowerCaselessDict({" HeLLO WoRLD ": 1}) # Output: {'hello world': 1}`|
36
+
| UpperCaselessDict | A dictionary where keys that are strings are in upper case. |`UpperCaselessDict({" HeLLO WoRLD ": 1}) # Output: {'HELLO WORLD': 1}`|
37
+
| TitleCaselessDict | A dictionary where keys that are strings are in title case. |`TitleCaselessDict({" HeLLO WoRLD ": 1}) # Output: {'Hello World': 1}`|
38
+
| SnakeCaselessDict | A dictionary where keys that are strings are in snake case. |`SnakeCaselessDict({" HeLLO WoRLD ": 1}) # Output: {'hello_world': 1}`|
39
+
| KebabCaselessDict | A dictionary where keys that are strings are in kebab case. |`KebabCaselessDict({" HeLLO WoRLD ": 1}) # Output: {'hello-world': 1}`|
40
+
| ConstantCaselessDict | A dictionary where keys that are strings are in constant case. |`ConstantCaselessDict({" HeLLO WoRLD ": 1}) # Output: {'HELLO_WORLD': 1}`|
| SnakeCaselessAttrDict | A dictionary where keys that are strings are in snake case and can be accessed using attribute notation. |`SnakeCaselessAttrDict({" HeLLO WoRLD ": 1}).hello_world # Output: 1`|
46
+
| ConstantCaselessAttrDict | A dictionary where keys that are strings are in constant case and can be accessed using attribute notation. |`ConstantCaselessAttrDict({" HeLLO WoRLD ": 1}).HELLO_WORLD # Output: 1`|
47
+
48
+
### Basic CaselessDict Example
26
49
27
50
```python
28
51
from caseless_dictionary import CaselessDict
29
52
30
-
normal_dict: dict= {" CamelCase ": 1, " UPPER ": "TWO", 3: " Number as Key "}
53
+
# Create a CaselessDict
54
+
caseless_dict = CaselessDict({" HeLLO WoRLD ": 1, 2: "two"})
0 commit comments