Metadata-Version: 2.1
Name: djutils
Version: 1.0.12
Summary: Utilities for use with the django web framework
Home-page: https://git.voltane.eu/voltane/pypi/djutils
Author: Manuel Stingl
Author-email: opensource@voltane.eu
License: GNU GPLv3
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.
        
        ```bash
        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.
        ```python
        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
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.0
Classifier: Framework :: Django :: 2.1
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.0
Requires-Python: >=3.6
Description-Content-Type: text/markdown
