fastapi-extra 0.3.0__tar.gz → 0.3.2__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.
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/PKG-INFO +2 -2
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/__init__.py +2 -2
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/_patch.py +2 -2
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/response.py +2 -2
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra.egg-info/PKG-INFO +2 -2
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra.egg-info/requires.txt +1 -1
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/pyproject.toml +1 -1
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/LICENSE +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/README.rst +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/cache/__init__.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/cache/redis.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/cursor.pyi +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/database/__init__.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/database/model.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/database/service.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/database/session.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/dependency.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/form.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/native/cursor.pyx +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/native/routing.pyx +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/native/urlparse.pyx +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/py.typed +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/routing.pyi +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/settings.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/types.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/urlparse.pyi +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra/utils.py +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra.egg-info/SOURCES.txt +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra.egg-info/dependency_links.txt +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/fastapi_extra.egg-info/top_level.txt +0 -0
- {fastapi_extra-0.3.0 → fastapi_extra-0.3.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastapi-extra
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: extra package for fastapi.
|
|
5
5
|
Author-email: Ziyan Yin <408856732@qq.com>
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -18,7 +18,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
18
18
|
Requires-Python: >=3.12
|
|
19
19
|
Description-Content-Type: text/x-rst
|
|
20
20
|
License-File: LICENSE
|
|
21
|
-
Requires-Dist: fastapi<0.129.0,>=0.128.
|
|
21
|
+
Requires-Dist: fastapi<0.129.0,>=0.128.6
|
|
22
22
|
Requires-Dist: httpx<0.29.0,>=0.28.0
|
|
23
23
|
Requires-Dist: pydantic-settings>=2.12.0
|
|
24
24
|
Requires-Dist: sqlmodel>=0.0.22
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "0.3.
|
|
1
|
+
__version__ = "0.3.2"
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
from fastapi import FastAPI
|
|
@@ -11,7 +11,7 @@ def setup(app: FastAPI) -> None:
|
|
|
11
11
|
from fastapi_extra import _patch
|
|
12
12
|
|
|
13
13
|
_patch.install_routes(app)
|
|
14
|
-
origin_routing.solve_dependencies.__globals__['
|
|
14
|
+
origin_routing.solve_dependencies.__globals__['field_annotation_is_sequence'] = _patch.is_sequence_field # type: ignore
|
|
15
15
|
origin_utils.QueryParams.__init__ = _patch.query_params_init # type: ignore
|
|
16
16
|
except ImportError: # pragma: nocover
|
|
17
17
|
pass
|
|
@@ -3,7 +3,7 @@ __date__ = "2026-01-13"
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
from fastapi import FastAPI
|
|
6
|
-
from fastapi._compat import v2
|
|
6
|
+
from fastapi._compat import v2, shared
|
|
7
7
|
from starlette import datastructures
|
|
8
8
|
|
|
9
9
|
from fastapi_extra import routing
|
|
@@ -16,7 +16,7 @@ def install_routes(app: FastAPI) -> None:
|
|
|
16
16
|
|
|
17
17
|
def is_sequence_field(field: v2.ModelField) -> bool:
|
|
18
18
|
if not hasattr(field, "_is_sequence"):
|
|
19
|
-
setattr(field, "_is_sequence",
|
|
19
|
+
setattr(field, "_is_sequence", shared.field_annotation_is_sequence(field.field_info.annotation))
|
|
20
20
|
return getattr(field, "_is_sequence")
|
|
21
21
|
|
|
22
22
|
|
|
@@ -230,8 +230,8 @@ class APIResponse(JSONResponse):
|
|
|
230
230
|
raw_headers = [
|
|
231
231
|
(k.lower().encode("latin-1"), v.encode("latin-1"))
|
|
232
232
|
for k, v in headers.items() if k not in ("content-length", "content-type")
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
]
|
|
234
|
+
self.raw_headers.extend(raw_headers)
|
|
235
235
|
|
|
236
236
|
|
|
237
237
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastapi-extra
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: extra package for fastapi.
|
|
5
5
|
Author-email: Ziyan Yin <408856732@qq.com>
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -18,7 +18,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
18
18
|
Requires-Python: >=3.12
|
|
19
19
|
Description-Content-Type: text/x-rst
|
|
20
20
|
License-File: LICENSE
|
|
21
|
-
Requires-Dist: fastapi<0.129.0,>=0.128.
|
|
21
|
+
Requires-Dist: fastapi<0.129.0,>=0.128.6
|
|
22
22
|
Requires-Dist: httpx<0.29.0,>=0.28.0
|
|
23
23
|
Requires-Dist: pydantic-settings>=2.12.0
|
|
24
24
|
Requires-Dist: sqlmodel>=0.0.22
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|