aiteamutils 0.2.43__tar.gz → 0.2.45__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.43
3
+ Version: 0.2.45
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
@@ -47,7 +47,7 @@ class ServiceRegistry:
47
47
  # ServiceRegistry 초기화
48
48
  service_registry = ServiceRegistry()
49
49
 
50
- async def get_service(name: str):
50
+ def get_service(name: str):
51
51
  """등록된 서비스를 가져오는 의존성 함수
52
52
 
53
53
  Args:
@@ -55,15 +55,12 @@ async def get_service(name: str):
55
55
 
56
56
  Returns:
57
57
  Callable: 서비스 인스턴스를 반환하는 의존성 함수
58
-
59
- Raises:
60
- CustomException: 서비스 생성 실패 시
61
58
  """
62
59
  async def _get_service(db_service = Depends(get_database_service)):
63
60
  try:
64
61
  repository_class, service_class = service_registry.get(name)
65
62
  repository = repository_class(db_service)
66
- return service_class(repository)
63
+ return service_class(repository, db_service)
67
64
  except CustomException as e:
68
65
  raise e
69
66
  except Exception as e:
@@ -0,0 +1,2 @@
1
+ """버전 정보"""
2
+ __version__ = "0.2.45"
@@ -1,2 +0,0 @@
1
- """버전 정보"""
2
- __version__ = "0.2.43"
File without changes
File without changes
File without changes
File without changes