aiteamutils 0.2.84__py3-none-any.whl → 0.2.87__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
aiteamutils/enums.py CHANGED
@@ -5,18 +5,15 @@ import importlib
5
5
 
6
6
  from .exceptions import CustomException, ErrorCode
7
7
 
8
- def hyphen_to_camel_case(text: str) -> str:
9
- """하이픈을 카멜케이스로 변환하는 함수"""
10
- words = text.split('-')
11
- return words[0].lower() + ''.join(word.capitalize() for word in words[1:])
12
-
13
8
  def get_enum_class(
14
9
  status_type: str,
15
10
  status_id: Union[str, None] = None,
16
11
  module_name: str = "app.utils.enums"
17
12
  ) -> Union[Dict[str, str], str]:
18
13
  """Enum 클래스에서 모든 값을 반환하거나 특정 ID에 해당하는 값을 반환."""
19
- camel_case_status_type = hyphen_to_camel_case(status_type)
14
+ words = status_type.split('-')
15
+ camel_case_status_type = ''.join(word.capitalize() for word in words)
16
+
20
17
  try:
21
18
  enum_module = importlib.import_module(module_name)
22
19
  except ModuleNotFoundError:
aiteamutils/version.py CHANGED
@@ -1,2 +1,2 @@
1
1
  """버전 정보"""
2
- __version__ = "0.2.84"
2
+ __version__ = "0.2.87"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.84
3
+ Version: 0.2.87
4
4
  Summary: AI Team Utilities
5
5
  Project-URL: Homepage, https://github.com/yourusername/aiteamutils
6
6
  Project-URL: Issues, https://github.com/yourusername/aiteamutils/issues
@@ -5,11 +5,11 @@ aiteamutils/base_service.py,sha256=7DXjEn3e_dve_ZfNwUP1_WD7QnucWRXBq-bYuxVmyXI,8
5
5
  aiteamutils/cache.py,sha256=07xBGlgAwOTAdY5mnMOQJ5EBxVwe8glVD7DkGEkxCtw,1373
6
6
  aiteamutils/config.py,sha256=YdalpJb70-txhGJAS4aaKglEZAFVWgfzw5BXSWpkUz4,3232
7
7
  aiteamutils/database.py,sha256=b4fN0XHNWxMJeS5M95JcJ7tujAJ1x3SPTAfDvJdB4sE,19696
8
- aiteamutils/enums.py,sha256=KbMrefTqdgWfOeKmuI08F7HOaRwzlt6KpFIjmg1YfXw,2344
8
+ aiteamutils/enums.py,sha256=Z9wzR3H4XLpA4U3urR5e4eDnEY3Qhne34nLXsKXiL64,2177
9
9
  aiteamutils/exceptions.py,sha256=5yREcEUbJPzq2404pFJ4J9047I9_qx2QG5iBND1PjDI,15901
10
10
  aiteamutils/security.py,sha256=tS7gdkCvL0hfgC_FWDSWaCVrzy3zUFpw-PyiFn9yXMM,10839
11
11
  aiteamutils/validators.py,sha256=PvI9hbMEAqTawgxPbiWRyx2r9yTUrpNBQs1AD3w4F2U,7726
12
- aiteamutils/version.py,sha256=N0x37en1AM5lWnHeXLBZGLcVRMvdeG20MATeVqVMLeM,42
13
- aiteamutils-0.2.84.dist-info/METADATA,sha256=pIshE4DX2OiOulopV3qGQvzotfmcWl_foJoR5yiR-hk,1718
14
- aiteamutils-0.2.84.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- aiteamutils-0.2.84.dist-info/RECORD,,
12
+ aiteamutils/version.py,sha256=V9nxm2F0tF5ex_r5HRYpS3-KH6vQYMx6bBbIeLl-UfI,42
13
+ aiteamutils-0.2.87.dist-info/METADATA,sha256=j9DXkfNdy_4flnY5CKKTg5t8WcKRHBO5boG5Lo5FAP0,1718
14
+ aiteamutils-0.2.87.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ aiteamutils-0.2.87.dist-info/RECORD,,