FastSQLA 0.5.0__tar.gz → 0.6.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.
- {fastsqla-0.5.0 → fastsqla-0.6.0}/PKG-INFO +5 -5
- {fastsqla-0.5.0 → fastsqla-0.6.0}/pyproject.toml +5 -5
- {fastsqla-0.5.0 → fastsqla-0.6.0}/src/FastSQLA.egg-info/PKG-INFO +5 -5
- {fastsqla-0.5.0 → fastsqla-0.6.0}/src/FastSQLA.egg-info/requires.txt +4 -4
- {fastsqla-0.5.0 → fastsqla-0.6.0}/src/fastsqla.py +3 -3
- {fastsqla-0.5.0 → fastsqla-0.6.0}/README.md +0 -0
- {fastsqla-0.5.0 → fastsqla-0.6.0}/setup.cfg +0 -0
- {fastsqla-0.5.0 → fastsqla-0.6.0}/src/FastSQLA.egg-info/SOURCES.txt +0 -0
- {fastsqla-0.5.0 → fastsqla-0.6.0}/src/FastSQLA.egg-info/dependency_links.txt +0 -0
- {fastsqla-0.5.0 → fastsqla-0.6.0}/src/FastSQLA.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: FastSQLA
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: SQLAlchemy extension for FastAPI that supports asynchronous sessions and includes built-in pagination.
|
|
5
5
|
Author-email: Hadrien David <h@driendavid.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/hadrien/fastsqla
|
|
@@ -38,10 +38,10 @@ Requires-Dist: fastapi>=0.115.6
|
|
|
38
38
|
Requires-Dist: sqlalchemy[asyncio]>=2.0.37
|
|
39
39
|
Requires-Dist: structlog>=24.4.0
|
|
40
40
|
Provides-Extra: docs
|
|
41
|
-
Requires-Dist: mkdocs-glightbox>=0.
|
|
42
|
-
Requires-Dist: mkdocs-llmstxt>=0.
|
|
43
|
-
Requires-Dist: mkdocs-material>=9.
|
|
44
|
-
Requires-Dist: mkdocstrings[python]>=0.
|
|
41
|
+
Requires-Dist: mkdocs-glightbox>=0.5.2; extra == "docs"
|
|
42
|
+
Requires-Dist: mkdocs-llmstxt>=0.5.0; extra == "docs"
|
|
43
|
+
Requires-Dist: mkdocs-material>=9.7.1; extra == "docs"
|
|
44
|
+
Requires-Dist: mkdocstrings[python]>=1.0.0; extra == "docs"
|
|
45
45
|
Provides-Extra: sqlmodel
|
|
46
46
|
Requires-Dist: sqlmodel>=0.0.22; extra == "sqlmodel"
|
|
47
47
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "FastSQLA"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.6.0"
|
|
4
4
|
description = "SQLAlchemy extension for FastAPI that supports asynchronous sessions and includes built-in pagination."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -45,10 +45,10 @@ license-files = []
|
|
|
45
45
|
|
|
46
46
|
[project.optional-dependencies]
|
|
47
47
|
docs = [
|
|
48
|
-
"mkdocs-glightbox>=0.
|
|
49
|
-
"mkdocs-llmstxt>=0.
|
|
50
|
-
"mkdocs-material>=9.
|
|
51
|
-
"mkdocstrings[python]>=0.
|
|
48
|
+
"mkdocs-glightbox>=0.5.2",
|
|
49
|
+
"mkdocs-llmstxt>=0.5.0",
|
|
50
|
+
"mkdocs-material>=9.7.1",
|
|
51
|
+
"mkdocstrings[python]>=1.0.0",
|
|
52
52
|
]
|
|
53
53
|
sqlmodel = ["sqlmodel>=0.0.22"]
|
|
54
54
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: FastSQLA
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: SQLAlchemy extension for FastAPI that supports asynchronous sessions and includes built-in pagination.
|
|
5
5
|
Author-email: Hadrien David <h@driendavid.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/hadrien/fastsqla
|
|
@@ -38,10 +38,10 @@ Requires-Dist: fastapi>=0.115.6
|
|
|
38
38
|
Requires-Dist: sqlalchemy[asyncio]>=2.0.37
|
|
39
39
|
Requires-Dist: structlog>=24.4.0
|
|
40
40
|
Provides-Extra: docs
|
|
41
|
-
Requires-Dist: mkdocs-glightbox>=0.
|
|
42
|
-
Requires-Dist: mkdocs-llmstxt>=0.
|
|
43
|
-
Requires-Dist: mkdocs-material>=9.
|
|
44
|
-
Requires-Dist: mkdocstrings[python]>=0.
|
|
41
|
+
Requires-Dist: mkdocs-glightbox>=0.5.2; extra == "docs"
|
|
42
|
+
Requires-Dist: mkdocs-llmstxt>=0.5.0; extra == "docs"
|
|
43
|
+
Requires-Dist: mkdocs-material>=9.7.1; extra == "docs"
|
|
44
|
+
Requires-Dist: mkdocstrings[python]>=1.0.0; extra == "docs"
|
|
45
45
|
Provides-Extra: sqlmodel
|
|
46
46
|
Requires-Dist: sqlmodel>=0.0.22; extra == "sqlmodel"
|
|
47
47
|
|
|
@@ -3,10 +3,10 @@ sqlalchemy[asyncio]>=2.0.37
|
|
|
3
3
|
structlog>=24.4.0
|
|
4
4
|
|
|
5
5
|
[docs]
|
|
6
|
-
mkdocs-glightbox>=0.
|
|
7
|
-
mkdocs-llmstxt>=0.
|
|
8
|
-
mkdocs-material>=9.
|
|
9
|
-
mkdocstrings[python]>=0.
|
|
6
|
+
mkdocs-glightbox>=0.5.2
|
|
7
|
+
mkdocs-llmstxt>=0.5.0
|
|
8
|
+
mkdocs-material>=9.7.1
|
|
9
|
+
mkdocstrings[python]>=1.0.0
|
|
10
10
|
|
|
11
11
|
[sqlmodel]
|
|
12
12
|
sqlmodel>=0.0.22
|
|
@@ -2,7 +2,7 @@ import math
|
|
|
2
2
|
import os
|
|
3
3
|
from collections.abc import AsyncGenerator, Awaitable, Callable, Iterable
|
|
4
4
|
from contextlib import _AsyncGeneratorContextManager, asynccontextmanager
|
|
5
|
-
from typing import Annotated, Generic,
|
|
5
|
+
from typing import Annotated, Generic, TypedDict, TypeVar
|
|
6
6
|
|
|
7
7
|
from fastapi import Depends as BaseDepends
|
|
8
8
|
from fastapi import FastAPI, Query
|
|
@@ -90,7 +90,7 @@ class State(TypedDict):
|
|
|
90
90
|
|
|
91
91
|
def new_lifespan(
|
|
92
92
|
url: str | None = None, **kw
|
|
93
|
-
) -> Callable[[FastAPI], _AsyncGeneratorContextManager[State, None]]:
|
|
93
|
+
) -> Callable[[FastAPI | None], _AsyncGeneratorContextManager[State, None]]:
|
|
94
94
|
"""Create a new lifespan async context manager.
|
|
95
95
|
|
|
96
96
|
It expects the exact same parameters as
|
|
@@ -117,7 +117,7 @@ def new_lifespan(
|
|
|
117
117
|
has_config = url is not None
|
|
118
118
|
|
|
119
119
|
@asynccontextmanager
|
|
120
|
-
async def lifespan(app: FastAPI) -> AsyncGenerator[State, None]:
|
|
120
|
+
async def lifespan(app: FastAPI | None) -> AsyncGenerator[State, None]:
|
|
121
121
|
if has_config:
|
|
122
122
|
prefix = ""
|
|
123
123
|
sqla_config = {**kw, **{"url": url}}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|