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
File details
Details for the file ninja_put_patch_file_upload_middleware-0.1.3.tar.gz
.
File metadata
- Download URL: ninja_put_patch_file_upload_middleware-0.1.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfe75399564f849651faa33eb50c068ad19e684eab5b10bebb66d7c7ce67f365 |
|
MD5 | 3b0ab654b0c55b1c7ecb2cfea6960ce2 |
|
BLAKE2b-256 | c486eb31eb5c4c06a1acfb32d7e4cc02c3db86098b68fb0d81617081f2d67fcb |
Provenance
The following attestation bundles were made for ninja_put_patch_file_upload_middleware-0.1.3.tar.gz
:
Publisher:
CI.yml
on baseplate-admin/ninja_put_patch_file_upload_middleware
-
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.3.tar.gz
- Subject digest:
dfe75399564f849651faa33eb50c068ad19e684eab5b10bebb66d7c7ce67f365
- Sigstore transparency entry: 148141259
- Sigstore integration time:
- Predicate type:
File details
Details for the file ninja_put_patch_file_upload_middleware-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: ninja_put_patch_file_upload_middleware-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcb3acaf62dc3ccfa50c9e4d16ccbd894dbc33fa07c0e4b3c12b17d88634a432 |
|
MD5 | 070cb2ccb0240908073e654128612891 |
|
BLAKE2b-256 | 2b30e8c4b9e2149d074e4dada68e58b6fa5097c03fba4dc523a81cb324e3a028 |
Provenance
The following attestation bundles were made for ninja_put_patch_file_upload_middleware-0.1.3-py3-none-any.whl
:
Publisher:
CI.yml
on baseplate-admin/ninja_put_patch_file_upload_middleware
-
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.3-py3-none-any.whl
- Subject digest:
bcb3acaf62dc3ccfa50c9e4d16ccbd894dbc33fa07c0e4b3c12b17d88634a432
- Sigstore transparency entry: 148141260
- Sigstore integration time:
- Predicate type: