File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
monobank_api_client/fastapi_mono Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 88
99load_dotenv ()
1010
11- DATABASE_URI = os .getenv ("DATABASE_URI " )
11+ DB_URI = os .getenv ("DB_URI" , "postgres:postgres@localhost:5432/postgres " )
1212
13- engine = create_async_engine (DATABASE_URI , poolclass = NullPool )
13+ ASYNC_DATABASE_URI = f"postgresql+asyncpg://{ DB_URI } "
14+
15+ engine = create_async_engine (ASYNC_DATABASE_URI , poolclass = NullPool )
1416async_session_maker = sessionmaker (engine , class_ = AsyncSession , expire_on_commit = False )
1517
1618
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def readme():
88
99setup (
1010 name = "monobank_api_client" ,
11- version = "1.1.8 " ,
11+ version = "1.1.9 " ,
1212 author = "ihor.sotnyk" ,
1313 author_email = "ihor.sotnyk@onix-systems.com" ,
1414 description = "This module is designed for quick interaction with the monobank API." ,
You can’t perform that action at this time.
0 commit comments