We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87c6bc2 commit b57fef0Copy full SHA for b57fef0
infisical_sdk/api_types.py
@@ -11,23 +11,6 @@ class ApprovalStatus(str, Enum):
11
REJECTED = "rejected"
12
13
14
-def to_camel(string: str) -> str:
15
- """Convert snake_case to camelCase"""
16
- components = string.split('_')
17
- return components[0] + ''.join(x.title() for x in components[1:])
18
-
19
20
-def from_camel(string: str) -> str:
21
- """Convert camelCase to snake_case"""
22
- result = [string[0].lower()]
23
- for char in string[1:]:
24
- if char.isupper():
25
- result.extend(['_', char.lower()])
26
- else:
27
- result.append(char)
28
- return ''.join(result)
29
30
31
class BaseModel:
32
"""Base class for all models"""
33
def to_dict(self) -> Dict:
0 commit comments