aiteamutils 0.2.9__tar.gz → 0.2.11__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.9
3
+ Version: 0.2.11
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
  from typing import Any, Dict, Optional, Type, AsyncGenerator, TypeVar, List, Union
2
2
  from sqlalchemy import select, update, and_, Table
3
3
  from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine, AsyncEngine
4
- from sqlalchemy.orm import sessionmaker
4
+ from sqlalchemy.orm import sessionmaker, Load, joinedload
5
5
  from sqlalchemy.exc import IntegrityError, SQLAlchemyError
6
6
  from sqlalchemy.pool import QueuePool
7
7
  from contextlib import asynccontextmanager
@@ -149,7 +149,7 @@ def get_service(name: str):
149
149
  Returns:
150
150
  Callable: 서비스 인스턴스를 반환하는 의존성 함수
151
151
  """
152
- def _get_service(db_service: DatabaseService = Depends(get_database_service)):
152
+ async def _get_service(db_service: DatabaseService = Depends(get_database_service)):
153
153
  repository_class, service_class = service_registry.get(name)
154
154
  repository = repository_class(db_service)
155
155
  return service_class(repository, db_service)
@@ -0,0 +1,2 @@
1
+ """버전 정보"""
2
+ __version__ = "0.2.11"
@@ -0,0 +1,3 @@
1
+ def get_auth_service():
2
+ """Get auth service instance."""
3
+ return get_service("auth")
@@ -0,0 +1,4 @@
1
+ async def shutdown_event() -> None:
2
+ """Application shutdown event handler."""
3
+ db_service = get_database_service()
4
+ await db_service.engine.dispose()
@@ -1,2 +0,0 @@
1
- """버전 정보"""
2
- __version__ = "0.2.9"
File without changes
File without changes
File without changes
File without changes