aiteamutils 0.2.133__py3-none-any.whl → 0.2.134__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/database.py CHANGED
@@ -159,25 +159,20 @@ def process_response(
159
159
  for relationship in entity.__mapper__.relationships:
160
160
  print(f"\n[DEBUG] Processing relationship: {relationship.key}")
161
161
  if not relationship.key in entity.__dict__:
162
- print(f"[DEBUG] Relationship {relationship.key} not in entity.__dict__")
163
162
  continue
164
163
 
165
164
  try:
166
165
  value = getattr(entity, relationship.key)
167
- print(f"[DEBUG] Relationship value: {value}")
168
166
 
169
167
  # response_model이 있는 경우 해당 필드의 annotation type을 가져옴
170
168
  nested_response_model = None
171
169
  if response_model and relationship.key in response_model.model_fields:
172
170
  field_info = response_model.model_fields[relationship.key]
173
171
  nested_response_model = field_info.annotation
174
- print(f"[DEBUG] Found nested response model for {relationship.key}: {nested_response_model}")
175
172
 
176
173
  # Optional[ProjectResponse] 같은 경우 실제 모델 추출
177
174
  if hasattr(nested_response_model, '__origin__') and nested_response_model.__origin__ is Union:
178
- print(f"[DEBUG] Extracting actual model from Union type: {nested_response_model.__args__}")
179
175
  nested_response_model = next((t for t in nested_response_model.__args__ if hasattr(t, 'model_fields')), None)
180
- print(f"[DEBUG] Extracted model: {nested_response_model}")
181
176
 
182
177
  if value is not None:
183
178
  if isinstance(value, list):
@@ -186,15 +181,11 @@ def process_response(
186
181
  for item in value
187
182
  ]
188
183
  else:
189
- print(f"[DEBUG] Processing single value with model: {nested_response_model}")
190
184
  result[relationship.key] = process_response(value, nested_response_model)
191
- print(f"[DEBUG] After processing relationship {relationship.key}: {result[relationship.key]}")
192
185
  else:
193
186
  result[relationship.key] = None
194
187
  except Exception as e:
195
- print(f"[DEBUG] Error processing relationship {relationship.key}: {str(e)}")
196
188
  import traceback
197
- print(f"[DEBUG] Full traceback: {traceback.format_exc()}")
198
189
  result[relationship.key] = None
199
190
 
200
191
  # response_model이 있는 경우 필터링
aiteamutils/version.py CHANGED
@@ -1,2 +1,2 @@
1
1
  """버전 정보"""
2
- __version__ = "0.2.133"
2
+ __version__ = "0.2.134"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.133
3
+ Version: 0.2.134
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
@@ -4,12 +4,12 @@ aiteamutils/base_repository.py,sha256=vzBw3g3jCJetTDblZvZenEGXk89Qu_65_02C7QTcf8
4
4
  aiteamutils/base_service.py,sha256=nHikjwGp29QrQPr2W8Ye9sKxmVS_8prRG3Nu42TU1Ms,10670
5
5
  aiteamutils/cache.py,sha256=07xBGlgAwOTAdY5mnMOQJ5EBxVwe8glVD7DkGEkxCtw,1373
6
6
  aiteamutils/config.py,sha256=YdalpJb70-txhGJAS4aaKglEZAFVWgfzw5BXSWpkUz4,3232
7
- aiteamutils/database.py,sha256=SEnB4fNAZQWgy2dskElYiTAuDlYjw95yadncv-BWpBQ,21357
7
+ aiteamutils/database.py,sha256=2hrPy_V-n4kKC0I8MkGiS_5-7ZqKypbiYr0nekMVa4Y,20544
8
8
  aiteamutils/enums.py,sha256=7WLqlcJqQWtETAga2WAxNp3dJTQIAd2TW-4WzkoHHa8,2498
9
9
  aiteamutils/exceptions.py,sha256=pgf3ersezObyl17wAO3I2fb8m9t2OzWDX1mSjwAWm2Y,16035
10
10
  aiteamutils/security.py,sha256=McUl3t5Z5SyUDVUHymHdDkYyF4YSeg4g9fFMML4W6Kw,11630
11
11
  aiteamutils/validators.py,sha256=msOrha36xWsapm4VAh63YmFq1GVyC9tzZcjXYFCEZ_g,11949
12
- aiteamutils/version.py,sha256=guyL6TqPxOF2ThG4kNJ_7z8Muj_dCOOH5Cf3BbTJkUE,43
13
- aiteamutils-0.2.133.dist-info/METADATA,sha256=lsrWtdTLUNKeF1YXUS6EFnVwKPKwbpDggq6vNAJ24JQ,1719
14
- aiteamutils-0.2.133.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- aiteamutils-0.2.133.dist-info/RECORD,,
12
+ aiteamutils/version.py,sha256=egCk8YV5GyRjVbkuh35PwKcfmp7pVNPyW7e2yjO10Gg,43
13
+ aiteamutils-0.2.134.dist-info/METADATA,sha256=-DYgH2SVlCJWygI5qWqZDCt78OPLj_c5YiFOmLg-ziw,1719
14
+ aiteamutils-0.2.134.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ aiteamutils-0.2.134.dist-info/RECORD,,