aiteamutils 0.2.62__py3-none-any.whl → 0.2.63__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,10 +20,27 @@ class BaseService(Generic[ModelType]):
20
20
  repository: BaseRepository[ModelType],
21
21
  db_session: AsyncSession
22
22
  ):
23
+ if not repository:
24
+ raise CustomException(
25
+ ErrorCode.INVALID_REQUEST,
26
+ detail="Repository is not set",
27
+ source_function=f"{self.__class__.__name__}.__init__"
28
+ )
29
+ if not db_session:
30
+ raise CustomException(
31
+ ErrorCode.INVALID_REQUEST,
32
+ detail="Database session is not set",
33
+ source_function=f"{self.__class__.__name__}.__init__"
34
+ )
35
+ print(f"BaseService.__init__() called with repository: {repository} and db_session: {db_session}")
36
+
37
+
23
38
  self.model = model
24
39
  self.repository = repository
25
40
  self.db_session = db_session
26
41
 
42
+ print(f"BaseService initialized with repository: {repository} and db_session: {db_session}")
43
+
27
44
  async def list(
28
45
  self,
29
46
  skip: int = 0,
aiteamutils/version.py CHANGED
@@ -1,2 +1,2 @@
1
1
  """버전 정보"""
2
- __version__ = "0.2.62"
2
+ __version__ = "0.2.63"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.62
3
+ Version: 0.2.63
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
@@ -1,7 +1,7 @@
1
1
  aiteamutils/__init__.py,sha256=kRBpRjark0M8ZwFfmKiMFol6CbIILN3WE4f6_P6iIq0,1089
2
2
  aiteamutils/base_model.py,sha256=ODEnjvUVoxQ1RPCfq8-uZTfTADIA4c7Z3E6G4EVsSX0,2708
3
3
  aiteamutils/base_repository.py,sha256=MPqOSIJ_d62mTQETyytGJsZInoeNxa4kZxvzRrgqV3E,2019
4
- aiteamutils/base_service.py,sha256=Ncomi5yBUL4oHrMx_J1yUKVrUIYo6YmnYJWAWOIwQx8,2217
4
+ aiteamutils/base_service.py,sha256=GZY9Xx-nu4EGOQuCissnulc9nGL5DpE2CypX5wj-I-o,2908
5
5
  aiteamutils/cache.py,sha256=07xBGlgAwOTAdY5mnMOQJ5EBxVwe8glVD7DkGEkxCtw,1373
6
6
  aiteamutils/config.py,sha256=YdalpJb70-txhGJAS4aaKglEZAFVWgfzw5BXSWpkUz4,3232
7
7
  aiteamutils/database.py,sha256=MtmrX_pDzKFQM-P3OAfm2mALvhRg-v5JWtGBoiegeU0,1484
@@ -9,7 +9,7 @@ aiteamutils/enums.py,sha256=ipZi6k_QD5-3QV7Yzv7bnL0MjDz-vqfO9I5L77biMKs,632
9
9
  aiteamutils/exceptions.py,sha256=_lKWXq_ujNj41xN6LDE149PwsecAP7lgYWbOBbLOntg,15368
10
10
  aiteamutils/security.py,sha256=xFVrjttxwXB1TTjqgRQQgQJQohQBT28vuW8FVLjvi-M,10103
11
11
  aiteamutils/validators.py,sha256=PvI9hbMEAqTawgxPbiWRyx2r9yTUrpNBQs1AD3w4F2U,7726
12
- aiteamutils/version.py,sha256=M2UWsWIly1xFp_aMvmSvbRhj0CF2FsV9Q5nsmtzSqg4,42
13
- aiteamutils-0.2.62.dist-info/METADATA,sha256=7LzQK72Ug1SxsNfRBppJgAU__V3GffKvFscySD6ChFc,1718
14
- aiteamutils-0.2.62.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- aiteamutils-0.2.62.dist-info/RECORD,,
12
+ aiteamutils/version.py,sha256=GFSiyxMGY-cgWB31ZsSJ1cIEKfwL4qUR7ZBAEddDxe4,42
13
+ aiteamutils-0.2.63.dist-info/METADATA,sha256=WPn6Hry5IdYj6SBkWCavTWqE-N9zL1AMLuwzy6EYe1w,1718
14
+ aiteamutils-0.2.63.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ aiteamutils-0.2.63.dist-info/RECORD,,