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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.1
2
2
  Name: tuspyserver
3
- Version: 2.2.1
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
 
@@ -12,7 +12,7 @@ with open("README.md", "r") as f:
12
12
 
13
13
  setup(
14
14
  name="tuspyserver",
15
- version="2.2.1",
15
+ version="2.2.2",
16
16
  description="TUS py protocol implementation in FastAPI",
17
17
  long_description=long_description,
18
18
  long_description_content_type="text/markdown",
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.1
2
2
  Name: tuspyserver
3
- Version: 2.2.1
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