tuspyserver 2.2.1__tar.gz → 2.2.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.
- {tuspyserver-2.2.1/tuspyserver.egg-info → tuspyserver-2.2.2}/PKG-INFO +2 -15
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/setup.py +1 -1
- {tuspyserver-2.2.1 → tuspyserver-2.2.2/tuspyserver.egg-info}/PKG-INFO +2 -15
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/tusserver/tus.py +2 -1
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/LICENSE +0 -0
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/README.md +0 -0
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/setup.cfg +0 -0
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/tuspyserver.egg-info/SOURCES.txt +0 -0
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/tuspyserver.egg-info/dependency_links.txt +0 -0
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/tuspyserver.egg-info/requires.txt +0 -0
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/tuspyserver.egg-info/top_level.txt +0 -0
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/tusserver/__init__.py +0 -0
- {tuspyserver-2.2.1 → tuspyserver-2.2.2}/tusserver/metadata.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: tuspyserver
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2
|
|
4
4
|
Summary: TUS py protocol implementation in FastAPI
|
|
5
5
|
Home-page: https://github.com/edihasaj/tuspy-fast-api
|
|
6
6
|
Author: Edi Hasaj
|
|
@@ -15,19 +15,6 @@ Classifier: Programming Language :: Python
|
|
|
15
15
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: fastapi>=0.110.0
|
|
19
|
-
Requires-Dist: pydantic>=2.6.2
|
|
20
|
-
Dynamic: author
|
|
21
|
-
Dynamic: author-email
|
|
22
|
-
Dynamic: classifier
|
|
23
|
-
Dynamic: description
|
|
24
|
-
Dynamic: description-content-type
|
|
25
|
-
Dynamic: home-page
|
|
26
|
-
Dynamic: license
|
|
27
|
-
Dynamic: license-file
|
|
28
|
-
Dynamic: platform
|
|
29
|
-
Dynamic: requires-dist
|
|
30
|
-
Dynamic: summary
|
|
31
18
|
|
|
32
19
|
# FastAPI Tus
|
|
33
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: tuspyserver
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2
|
|
4
4
|
Summary: TUS py protocol implementation in FastAPI
|
|
5
5
|
Home-page: https://github.com/edihasaj/tuspy-fast-api
|
|
6
6
|
Author: Edi Hasaj
|
|
@@ -15,19 +15,6 @@ Classifier: Programming Language :: Python
|
|
|
15
15
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
-
Requires-Dist: fastapi>=0.110.0
|
|
19
|
-
Requires-Dist: pydantic>=2.6.2
|
|
20
|
-
Dynamic: author
|
|
21
|
-
Dynamic: author-email
|
|
22
|
-
Dynamic: classifier
|
|
23
|
-
Dynamic: description
|
|
24
|
-
Dynamic: description-content-type
|
|
25
|
-
Dynamic: home-page
|
|
26
|
-
Dynamic: license
|
|
27
|
-
Dynamic: license-file
|
|
28
|
-
Dynamic: platform
|
|
29
|
-
Dynamic: requires-dist
|
|
30
|
-
Dynamic: summary
|
|
31
18
|
|
|
32
19
|
# FastAPI Tus
|
|
33
20
|
|
|
@@ -36,7 +36,7 @@ def create_api_router(
|
|
|
36
36
|
):
|
|
37
37
|
if prefix and prefix[0] == "/":
|
|
38
38
|
prefix = prefix[1:]
|
|
39
|
-
router = APIRouter(prefix=f"/{prefix}")
|
|
39
|
+
router = APIRouter(prefix=f"/{prefix}", redirect_slashes=True)
|
|
40
40
|
|
|
41
41
|
tus_version = "1.0.0"
|
|
42
42
|
tus_extension = (
|
|
@@ -144,6 +144,7 @@ def create_api_router(
|
|
|
144
144
|
response.status_code = status.HTTP_204_NO_CONTENT
|
|
145
145
|
return response
|
|
146
146
|
|
|
147
|
+
@router.post("", status_code=status.HTTP_201_CREATED)
|
|
147
148
|
@router.post("/", status_code=status.HTTP_201_CREATED)
|
|
148
149
|
async def create_upload(
|
|
149
150
|
request: Request,
|
|
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
|