aiteamutils 0.2.3__tar.gz → 0.2.4__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.3
3
+ Version: 0.2.4
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,12 +1,13 @@
1
1
  """기본 레포지토리 모듈."""
2
- from typing import TypeVar, Generic, Dict, Any, List, Optional, Type
3
- from sqlalchemy.orm import DeclarativeBase
2
+ from typing import TypeVar, Generic, Dict, Any, List, Optional, Type, Union
3
+ from sqlalchemy.orm import DeclarativeBase, Load
4
4
  from sqlalchemy.exc import IntegrityError, SQLAlchemyError
5
5
  from sqlalchemy import select, or_, and_
6
- from .database import DatabaseManager
6
+ from .database import DatabaseService
7
7
  from .exceptions import CustomException, ErrorCode
8
8
  from sqlalchemy.orm import joinedload
9
9
  from sqlalchemy.sql import Select
10
+ from fastapi import Request
10
11
 
11
12
  ModelType = TypeVar("ModelType", bound=DeclarativeBase)
12
13
 
@@ -14,10 +15,10 @@ class BaseRepository(Generic[ModelType]):
14
15
  ##################
15
16
  # 1. 초기화 영역 #
16
17
  ##################
17
- def __init__(self, db_service: DatabaseManager, model: Type[ModelType]):
18
+ def __init__(self, db_service: DatabaseService, model: Type[ModelType]):
18
19
  """
19
20
  Args:
20
- db_service (DatabaseManager): 데이터베이스 서비스 인스턴스
21
+ db_service (DatabaseService): 데이터베이스 서비스 인스턴스
21
22
  model (Type[ModelType]): 모델 클래스
22
23
  """
23
24
  self.db_service = db_service
@@ -1,9 +1,9 @@
1
1
  """기본 서비스 모듈."""
2
2
  from datetime import datetime
3
3
  from typing import TypeVar, Generic, Dict, Any, List, Optional, Type, Union
4
- from sqlalchemy.orm import DeclarativeBase
4
+ from sqlalchemy.orm import DeclarativeBase, Load
5
5
  from sqlalchemy.exc import IntegrityError, SQLAlchemyError
6
- from .database import DatabaseManager
6
+ from .database import DatabaseService
7
7
  from .exceptions import CustomException, ErrorCode
8
8
  from .base_repository import BaseRepository
9
9
  from .security import hash_password
@@ -1,13 +1,16 @@
1
1
  """유효성 검사 관련 유틸리티 함수들을 모아둔 모듈입니다."""
2
2
 
3
- from typing import Any, Optional, Dict
3
+ from typing import Type, Dict, Any, Callable, TypeVar, Optional, List, Union
4
+ from functools import wraps
5
+ from sqlalchemy import Table
4
6
  from sqlalchemy.ext.asyncio import AsyncSession
5
- from sqlalchemy import select
6
- from pydantic import field_validator
7
+ from fastapi import Request
8
+ from inspect import signature
9
+ from pydantic import BaseModel
7
10
  import re
8
11
 
9
12
  from .exceptions import ErrorCode, CustomException
10
- from .database import DatabaseManager
13
+ from .database import DatabaseService
11
14
  from .base_model import Base
12
15
 
13
16
  def validate_with(validator_func, unique_check=None, skip_if_none=False):
@@ -0,0 +1,2 @@
1
+ """버전 정보"""
2
+ __version__ = "0.2.4"
@@ -1,2 +0,0 @@
1
- """버전 정보"""
2
- __version__ = "0.2.3"
File without changes
File without changes
File without changes
File without changes