[![Downloads](https://static.pepy.tech/personalized-badge/ninja-put-patch-file-upload-middleware?period=month&units=international_system&left_color=black&right_color=orange&left_text=Downloads)](https://pepy.tech/project/ninja-put-patch-file-upload-middleware)
# 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](https://github.com/vitalik/django-ninja/pull/719) which in turn is based on [django-ninja#417 (comment)](https://github.com/vitalik/django-ninja/issues/417#issuecomment-1092545699) which should be available in `django-ninja` if [django-ninja#397](https://github.com/vitalik/django-ninja/pull/397) is merged ( in that case this middleware works as a backport )
## Requirements
* Django 3.2+
* Asgiref 3.6.0+
* Python 3.9+
## Installation
1. Install the package using pip :
```bash
pip install ninja_put_patch_file_upload_middleware
```
2. Add the middleware to your middleware stack:
```python
# 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](https://github.com/baseplate-admin/ninja_put_patch_file_upload_middleware/blob/master/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 >_<
Raw data
{
"_id": null,
"home_page": null,
"name": "ninja-put-patch-file-upload-middleware",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "ninja, django-ninja, middlewares, put, patch, file upload",
"author": "baseplate-admin",
"author_email": "61817579+baseplate-admin@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/12/e5/7ae9a9f99e50432007e70215bb597582974f2eacf25c1ebdaa39e4ce341b/ninja_put_patch_file_upload_middleware-0.1.4.tar.gz",
"platform": null,
"description": "[![Downloads](https://static.pepy.tech/personalized-badge/ninja-put-patch-file-upload-middleware?period=month&units=international_system&left_color=black&right_color=orange&left_text=Downloads)](https://pepy.tech/project/ninja-put-patch-file-upload-middleware)\n\n# ninja_put_patch_file_upload_middleware\nThis middleware allows users to upload files using the HTTP PUT or PATCH method. Backports the functionality from [django-ninja#719](https://github.com/vitalik/django-ninja/pull/719) which in turn is based on [django-ninja#417 (comment)](https://github.com/vitalik/django-ninja/issues/417#issuecomment-1092545699) which should be available in `django-ninja` if [django-ninja#397](https://github.com/vitalik/django-ninja/pull/397) is merged ( in that case this middleware works as a backport )\n\n## Requirements\n\n* Django 3.2+ \n* Asgiref 3.6.0+\n* Python 3.9+\n\n## Installation\n\n1. Install the package using pip :\n```bash\npip install ninja_put_patch_file_upload_middleware\n```\n2. Add the middleware to your middleware stack:\n\n```python\n# settings.py\n\nMIDDLEWARE = [\n ...\n \"ninja_put_patch_file_upload_middleware.middlewares.process_put_patch\",\n]\n```\n\n\n## LICENSE\n\nThis package is licensed under the MIT License ( same as `django-ninja` ). See the [LICENSE](https://github.com/baseplate-admin/ninja_put_patch_file_upload_middleware/blob/master/LICENSE) file for more information.\n\n\n## Feature Complete\n\nI 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 >_<\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A middleware that allows user to upload files using PUT / Patch",
"version": "0.1.4",
"project_urls": {
"Bug Tracker": "https://github.com/baseplate-admin/ninja_put_patch_file_upload_middleware/issues",
"homepage": "https://github.com/baseplate-admin/ninja_put_patch_file_upload_middleware",
"repository": "https://github.com/baseplate-admin/ninja_put_patch_file_upload_middleware"
},
"split_keywords": [
"ninja",
" django-ninja",
" middlewares",
" put",
" patch",
" file upload"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "100289448ae4e039f3bb72cb8cd7d230d4f35ccf81428091473a7fc6e808c157",
"md5": "488c866e5b0ffee688344af780419531",
"sha256": "42d86a39b93c1373acdd1461337f06db7767189de00a7b97a74345c86084fd93"
},
"downloads": -1,
"filename": "ninja_put_patch_file_upload_middleware-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "488c866e5b0ffee688344af780419531",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 3908,
"upload_time": "2024-12-10T11:36:45",
"upload_time_iso_8601": "2024-12-10T11:36:45.086968Z",
"url": "https://files.pythonhosted.org/packages/10/02/89448ae4e039f3bb72cb8cd7d230d4f35ccf81428091473a7fc6e808c157/ninja_put_patch_file_upload_middleware-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "12e57ae9a9f99e50432007e70215bb597582974f2eacf25c1ebdaa39e4ce341b",
"md5": "288f082ba22a66a03ade1b4b98396267",
"sha256": "7a11642080f351efffe2b9a875114f8ba8a66cc8ef779389617875f619c7e8b8"
},
"downloads": -1,
"filename": "ninja_put_patch_file_upload_middleware-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "288f082ba22a66a03ade1b4b98396267",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 3399,
"upload_time": "2024-12-10T11:36:47",
"upload_time_iso_8601": "2024-12-10T11:36:47.447276Z",
"url": "https://files.pythonhosted.org/packages/12/e5/7ae9a9f99e50432007e70215bb597582974f2eacf25c1ebdaa39e4ce341b/ninja_put_patch_file_upload_middleware-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-10 11:36:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "baseplate-admin",
"github_project": "ninja_put_patch_file_upload_middleware",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ninja-put-patch-file-upload-middleware"
}