Utilities for use with the django web framework
Project description
djutils
Tools for use within the django framework
djutils provides tools for common actions within the django framework.
It includes tools for:
- Administration interface
- Cryptographics
- Database interaction
- Exceptions
- HTTP Handling
- IP-Address handling
- Mixins for Classes
Installation
Use the python package manager pip to install djutils.
pip install djutils
Usage
Just an example how you could use the exceptions_to_http decorator. Each method defined in djutils has a small documentation with it.
from djutils import http, exceptions
@http.exceptions_to_http(exceptions.Error)
def my_route(request):
if request.POST:
raise exceptions.Error("POST is not allowed", code="no_post", status_code=403)
return "Hello World"
License
GNU LGPLv2.1, see LICENSE
Maintainer
This package is maintained by Manuel Stingl.
Project details
Release history Release notifications | RSS feed
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 djutils-1.0.23.tar.gz.
File metadata
- Download URL: djutils-1.0.23.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c290b45aa088c18d4106cadeb565fac83ce0b1e811a72a650ab8829382d1cb1
|
|
| MD5 |
b1c387caa3528f5b3074384c34b26be9
|
|
| BLAKE2b-256 |
c9d5dee571172e3b7e8764862c9476d64c61bb0261c142399fcd53c6be448fc6
|
File details
Details for the file djutils-1.0.23-py3-none-any.whl.
File metadata
- Download URL: djutils-1.0.23-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ee6e7f09d19744d42e836f66f704b846812bf22d0a6e63da00c22a0df6e2166
|
|
| MD5 |
6cccd8f90f7de04c65379ad3ef0cbb8b
|
|
| BLAKE2b-256 |
54c6dd3c6a8adc2d6b05e4b5c594d6e551fa94287fabbe94f9a7d1fa0b28fd7a
|