A middleware that allows user to upload files using PUT / Patch
Project description
ninja_put_patch_file_upload_middleware
This middleware allows users to upload files using the HTTP PUT or PATCH method. Backports the functionality from django-ninja#719 which in turn is based on django-ninja#417 (comment) which should be available in django-ninja if django-ninja#397 is merged ( in that case this middleware works as a backport )
Requirements
- Django 3.2+
- Asgiref 3.6.0+
- Python 3.9+
Installation
- Install the package using pip :
pip install ninja_put_patch_file_upload_middleware
- Add the middleware to your middleware stack:
# settings.py
MIDDLEWARE = [
...
"ninja_put_patch_file_upload_middleware.middlewares.process_put_patch",
]
LICENSE
This package is licensed under the MIT License ( same as django-ninja ). See the LICENSE file for more information.
Feature Complete
I am not willing to add any more functionality to this module. This should work as is. Unless there are changes in django/asgiref side. Please dont ask for changes >_<
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ninja_put_patch_file_upload_middleware-0.1.4.tar.gz.
File metadata
- Download URL: ninja_put_patch_file_upload_middleware-0.1.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a11642080f351efffe2b9a875114f8ba8a66cc8ef779389617875f619c7e8b8
|
|
| MD5 |
288f082ba22a66a03ade1b4b98396267
|
|
| BLAKE2b-256 |
12e57ae9a9f99e50432007e70215bb597582974f2eacf25c1ebdaa39e4ce341b
|
Provenance
The following attestation bundles were made for ninja_put_patch_file_upload_middleware-0.1.4.tar.gz:
Publisher:
CI.yml on baseplate-admin/ninja_put_patch_file_upload_middleware
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ninja_put_patch_file_upload_middleware-0.1.4.tar.gz -
Subject digest:
7a11642080f351efffe2b9a875114f8ba8a66cc8ef779389617875f619c7e8b8 - Sigstore transparency entry: 154430130
- Sigstore integration time:
-
Permalink:
baseplate-admin/ninja_put_patch_file_upload_middleware@485f57d1a5ab1257ea11c85df5d8949b182bd353 -
Branch / Tag:
refs/tags/0.1.4 - Owner: https://github.com/baseplate-admin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
CI.yml@485f57d1a5ab1257ea11c85df5d8949b182bd353 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ninja_put_patch_file_upload_middleware-0.1.4-py3-none-any.whl.
File metadata
- Download URL: ninja_put_patch_file_upload_middleware-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42d86a39b93c1373acdd1461337f06db7767189de00a7b97a74345c86084fd93
|
|
| MD5 |
488c866e5b0ffee688344af780419531
|
|
| BLAKE2b-256 |
100289448ae4e039f3bb72cb8cd7d230d4f35ccf81428091473a7fc6e808c157
|
Provenance
The following attestation bundles were made for ninja_put_patch_file_upload_middleware-0.1.4-py3-none-any.whl:
Publisher:
CI.yml on baseplate-admin/ninja_put_patch_file_upload_middleware
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ninja_put_patch_file_upload_middleware-0.1.4-py3-none-any.whl -
Subject digest:
42d86a39b93c1373acdd1461337f06db7767189de00a7b97a74345c86084fd93 - Sigstore transparency entry: 154430134
- Sigstore integration time:
-
Permalink:
baseplate-admin/ninja_put_patch_file_upload_middleware@485f57d1a5ab1257ea11c85df5d8949b182bd353 -
Branch / Tag:
refs/tags/0.1.4 - Owner: https://github.com/baseplate-admin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
CI.yml@485f57d1a5ab1257ea11c85df5d8949b182bd353 -
Trigger Event:
push
-
Statement type: