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
@@ -126,7 +159,7 @@ The `--limit` CLI option and `recursion_limit` Python argument set the maximum r
126
159
127
160
#### About `exclude_keys`
128
161
129
-
The `--exclude` CLI option and `exclude_keys` Python argument allow you to specify a comma-separated list (CLI) or list of strings (Python) of keys to skip entirely during transformation, including stopping recursion on those keys and their nested values.
162
+
The `--exclude` CLI option (comma-separated list) and `exclude_keys` Python argument (list of strings) let you specify keys to skip entirely during transformation, halting recursion on those keys and their nested values.
130
163
131
164
## Supported Case Types
132
165
@@ -145,7 +178,7 @@ The following case types are supported:
145
178
## Contributing
146
179
147
180
1. Fork the repository
148
-
2. Create your feature branch (`git checkout -b feature/YourFeature`)
181
+
2. Create your feature branch (`git checkout -b feature/your-feature`)
type (CaseType): Target key case format (e.g., CaseType.SNAKE, CaseType.CAMEL)
29
+
case (CaseType): Target key case format (e.g., CaseType.SNAKE, CaseType.CAMEL)
31
30
clone (bool): Will return clone, leaving original object untouched (defaults to False)
32
-
preserve_tokens (List[str]): List of preservable strings, eg. acronyms like HTTP, ID
31
+
preserve_tokens (List[str]): List of preservable strings, e.g., acronyms like HTTP, ID
33
32
exclude_keys (List[str]): Keys to skip (together with their children); excluded keys are not transformed and recursion does not descend into their values.
34
33
recursion_limit: (int): How deep will recursion go for nested dicts, defaults to 0 (no limit),
Transforms input JSON keys to specified case-type, and returns the result as a JSON string.
72
78
73
79
Args:
74
80
source (str): The data to process.
75
-
type (CaseType): Target key case format (e.g., CaseType.SNAKE, CaseType.CAMEL)
76
-
preserve_tokens (List[str]): List of preservable strings, eg. acronyms like HTTP, ID
81
+
case (CaseType): Target key case format (e.g., CaseType.SNAKE, CaseType.CAMEL)
82
+
preserve_tokens (List[str]): List of preservable strings, e.g., acronyms like HTTP, ID
77
83
exclude_keys (List[str]): Keys to skip (together with their children); excluded keys are not transformed and recursion does not descend into their values.
78
84
recursion_limit: (int): How deep will recursion go for nested dicts, defaults to 0 (no limit),
0 commit comments