pgsqlasync2fast-fastapi 0.1.1__tar.gz → 0.2.0__tar.gz
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.
- {pgsqlasync2fast_fastapi-0.1.1/src/pgsqlasync2fast_fastapi.egg-info → pgsqlasync2fast_fastapi-0.2.0}/PKG-INFO +2 -7
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/pyproject.toml +10 -3
- pgsqlasync2fast_fastapi-0.2.0/src/pgsqlasync2fast_fastapi/__version__.py +1 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/src/pgsqlasync2fast_fastapi/connection.py +3 -2
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/src/pgsqlasync2fast_fastapi/database.py +0 -1
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/src/pgsqlasync2fast_fastapi/dependencies.py +2 -1
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0/src/pgsqlasync2fast_fastapi.egg-info}/PKG-INFO +2 -7
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/src/pgsqlasync2fast_fastapi.egg-info/requires.txt +1 -7
- pgsqlasync2fast_fastapi-0.1.1/src/pgsqlasync2fast_fastapi/__version__.py +0 -1
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/LICENSE +0 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/MANIFEST.in +0 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/README.md +0 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/docs/.env.example +0 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/setup.cfg +0 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/src/pgsqlasync2fast_fastapi/__init__.py +0 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/src/pgsqlasync2fast_fastapi/settings.py +0 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/src/pgsqlasync2fast_fastapi.egg-info/SOURCES.txt +0 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/src/pgsqlasync2fast_fastapi.egg-info/dependency_links.txt +0 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/src/pgsqlasync2fast_fastapi.egg-info/top_level.txt +0 -0
- {pgsqlasync2fast_fastapi-0.1.1 → pgsqlasync2fast_fastapi-0.2.0}/tests/test_completo.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pgsqlasync2fast-fastapi
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Simple and fast PostgreSQL async module for FastAPI with multi-database support
|
|
5
5
|
Author-email: Angel Daniel Sanchez Castillo <angeldaniel.sanchezcastillo@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -47,14 +47,9 @@ Requires-Dist: fastapi>=0.100.0
|
|
|
47
47
|
Requires-Dist: pydantic>=2.0.0
|
|
48
48
|
Requires-Dist: pydantic-settings>=2.0.0
|
|
49
49
|
Requires-Dist: sqlalchemy>=2.0.0
|
|
50
|
+
Requires-Dist: sqlmodel>=0.0.22
|
|
50
51
|
Requires-Dist: asyncpg>=0.29.0
|
|
51
52
|
Requires-Dist: greenlet>=3.0.0
|
|
52
|
-
Provides-Extra: dev
|
|
53
|
-
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
54
|
-
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
55
|
-
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
56
|
-
Requires-Dist: httpx>=0.24.0; extra == "dev"
|
|
57
|
-
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
58
53
|
Dynamic: license-file
|
|
59
54
|
|
|
60
55
|
# pgsqlasync2fast-fastapi
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pgsqlasync2fast-fastapi"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.2.0"
|
|
8
8
|
description = "Simple and fast PostgreSQL async module for FastAPI with multi-database support"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -31,17 +31,24 @@ dependencies = [
|
|
|
31
31
|
"pydantic>=2.0.0",
|
|
32
32
|
"pydantic-settings>=2.0.0",
|
|
33
33
|
"sqlalchemy>=2.0.0",
|
|
34
|
+
"sqlmodel>=0.0.22",
|
|
34
35
|
"asyncpg>=0.29.0",
|
|
35
36
|
"greenlet>=3.0.0",
|
|
36
37
|
]
|
|
37
38
|
|
|
38
|
-
[
|
|
39
|
+
[dependency-groups]
|
|
39
40
|
dev = [
|
|
41
|
+
"black",
|
|
42
|
+
"ruff",
|
|
43
|
+
"mypy>=1.0.0",
|
|
44
|
+
"build",
|
|
45
|
+
"twine",
|
|
46
|
+
]
|
|
47
|
+
test = [
|
|
40
48
|
"pytest>=7.0.0",
|
|
41
49
|
"pytest-asyncio>=0.21.0",
|
|
42
50
|
"pytest-cov>=4.0.0",
|
|
43
51
|
"httpx>=0.24.0",
|
|
44
|
-
"mypy>=1.0.0",
|
|
45
52
|
]
|
|
46
53
|
|
|
47
54
|
[project.urls]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.0"
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
Database connection and engine management
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Dict, Optional
|
|
6
6
|
|
|
7
|
-
from
|
|
7
|
+
from sqlmodel.ext.asyncio.session import AsyncSession
|
|
8
|
+
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
|
|
8
9
|
from sqlalchemy.ext.asyncio import async_sessionmaker
|
|
9
10
|
from sqlalchemy import text
|
|
10
11
|
|
|
@@ -5,7 +5,8 @@ FastAPI dependencies for database functionality
|
|
|
5
5
|
from typing import AsyncGenerator, Optional
|
|
6
6
|
|
|
7
7
|
from fastapi import Depends
|
|
8
|
-
from
|
|
8
|
+
from sqlmodel.ext.asyncio.session import AsyncSession
|
|
9
|
+
from sqlalchemy.ext.asyncio import AsyncEngine
|
|
9
10
|
|
|
10
11
|
from .connection import DatabaseManager, get_manager
|
|
11
12
|
from .settings import DatabaseSettings, settings
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pgsqlasync2fast-fastapi
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Simple and fast PostgreSQL async module for FastAPI with multi-database support
|
|
5
5
|
Author-email: Angel Daniel Sanchez Castillo <angeldaniel.sanchezcastillo@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -47,14 +47,9 @@ Requires-Dist: fastapi>=0.100.0
|
|
|
47
47
|
Requires-Dist: pydantic>=2.0.0
|
|
48
48
|
Requires-Dist: pydantic-settings>=2.0.0
|
|
49
49
|
Requires-Dist: sqlalchemy>=2.0.0
|
|
50
|
+
Requires-Dist: sqlmodel>=0.0.22
|
|
50
51
|
Requires-Dist: asyncpg>=0.29.0
|
|
51
52
|
Requires-Dist: greenlet>=3.0.0
|
|
52
|
-
Provides-Extra: dev
|
|
53
|
-
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
54
|
-
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
55
|
-
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
|
|
56
|
-
Requires-Dist: httpx>=0.24.0; extra == "dev"
|
|
57
|
-
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
58
53
|
Dynamic: license-file
|
|
59
54
|
|
|
60
55
|
# pgsqlasync2fast-fastapi
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|