Skip to main content

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.

Metadata

Release files for djutils 1.0.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djutils 1.0.23
File Size Uploaded
djutils-1.0.23.tar.gz 20.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djutils 1.0.23
File Interpreter ABI Platform
djutils-1.0.23-py3-none-any.whl Python 3 none any Details

Total release size: 45.4 kB

Release files / djutils-1.0.23.tar.gz

Download URL djutils-1.0.23.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8c290b45aa088c18d4106cadeb565fac83ce0b1e811a72a650ab8829382d1cb1
BLAKE2b-256 checksum
How to use checksums
c9d5dee571172e3b7e8764862c9476d64c61bb0261c142399fcd53c6be448fc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / djutils-1.0.23-py3-none-any.whl

Download URL djutils-1.0.23-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ee6e7f09d19744d42e836f66f704b846812bf22d0a6e63da00c22a0df6e2166
BLAKE2b-256 checksum
How to use checksums
54c6dd3c6a8adc2d6b05e4b5c594d6e551fa94287fabbe94f9a7d1fa0b28fd7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.0.23 This release

2 release files

1.0.21

2 release files

1.0.20

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page