Skip to main content

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 GPLv3, see LICENSE

Maintainer

This package is maintained by Manuel Stingl. For more information see https://opensource.voltane.eu

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

djutils-1.0.10.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djutils-1.0.10-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file djutils-1.0.10.tar.gz.

File metadata

  • Download URL: djutils-1.0.10.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.3

File hashes

Hashes for djutils-1.0.10.tar.gz
Algorithm Hash digest
SHA256 ce51b0dd4d66efb9cdb941d899560588a7ce1e3110dc4c56bee9b18347504aa3
MD5 3d566b462f443fa4131435d6c0c39101
BLAKE2b-256 affd5f0c0995c7ed63478b07ace25158f217ee7eb5b4cf154d8230b65834aeea

See more details on using hashes here.

File details

Details for the file djutils-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: djutils-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.1 CPython/3.7.3

File hashes

Hashes for djutils-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 845cd6c3d5b4ec7dc25d3c8bc234339e681a189c0db807fbeace6e4515ec770b
MD5 e6e8c83d2da0f34872cec3419630bed2
BLAKE2b-256 c945414f52255310dd7378cb4b071657775c017df31ce3e375c789fd5ad38a5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page