This release is a pre-release and may not be stable for production use.
Description
This package provides decorators to make building websites in Django even easier.
Installation
$ pip install django-decorator-plus
Basic Usage
The package currently supplies decorators to improve your views.
View Decorators
The view decorators provided are meant to restrict the HTTP methods allowed on a view. The require_safe_methods limits views to GET and HEAD and generates a proper response for OPTIONS.
from decorator_plus import require_safe_methods
@require_safe_methods
def function_view_safe(request):
...
The package also supplies the require_form_methods decorator, which limits views to GET, HEAD, and POST. Both of these decorators are actually just shortcuts on top of the require_http_methods() decorator, which is an enhanced version of the decorator supplied by Django by the same name; the require_http_methods() decorator automatically supplies the OPTIONS HTTP method, and will automatically add the HEAD HTTP method if the GET method is allowed.
For more information and examples, please see the full Package Documentation.
Metadata
Release files for django-decorator-plus 0.0.1a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-decorator-plus-0.0.1a2.zip | 9.6 kB | Without provenance | Details for django-decorator-plus-0.0.1a2.zip | |
| django-decorator-plus-0.0.1a2.tar.gz | 5.1 kB | Without provenance | Details for django-decorator-plus-0.0.1a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_decorator_plus-0.0.1a2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_decorator_plus-0.0.1a2-py2.py3-none-any.whl |
Total release size: 21.0 kB
Release files / django-decorator-plus-0.0.1a2.zip
| Download URL | django-decorator-plus-0.0.1a2.zip |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee2275f1be19ce24cbe92794311772483dff17a173d03cb78eac5eb9d27ece5e
|
|
BLAKE2b-256 checksum How to use checksums |
5abe8ce9d1ddd93089835342e694e7e9306f165e2d325c6d21950015a2b9f4c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django-decorator-plus-0.0.1a2.tar.gz
| Download URL | django-decorator-plus-0.0.1a2.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d2b6df30d23a32a982bae230a4277811b78e78e15daa6bb78b5ef821040537d
|
|
BLAKE2b-256 checksum How to use checksums |
f6f9f2a9f1aedf481f8f46ccebd011f7ea1560f08ae9456c524fe7c00f7f776e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_decorator_plus-0.0.1a2-py2.py3-none-any.whl
| Download URL | django_decorator_plus-0.0.1a2-py2.py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
97e95ead324b288a139c0ae444d04e4a7a370f389b7e040f51ffe6cb5fc5c94e
|
|
BLAKE2b-256 checksum How to use checksums |
5bbde01e28a55dd7392d8bae83dfc0a6e9347c11974e27552fde0d0cac369232
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-decorator-plus 0.0.1a2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.