Skip to main content

Django Inbound Rules

Description

Django Inbound Rules is an app to allow or restrict group of users on specified url(s) based on CIDR blocks(now IPv4 only) excluding user with superuser permissions.

Installation

pip install django-inbound-rules

Quick start

  1. Add "inbound" to your INSTALLED_APPS in settings.py like this::

    INSTALLED_APPS = [
        ...
        'inbound',
        ...
    ]
    
  2. Add "inbound.middleware.restrict_user_middleware" to your MIDDLEWARE in settings.py like this::

    MIDDLEWARE = [
        ...
        'inbound.middleware.restrict_user_middleware',
        ...
    ]
    
  3. Run python manage.py migrate to implement django-inbound-rules.

  4. Start the development server and visit http://127.0.0.1:8000/admin/ to create your Inbound Rules.

  5. For working logic, see documentation.

Licence

Copyright (c) 2020 Nilesh Kumar Dubey

This repository is licensed under the MIT license. See LICENSE for details

Metadata

Release files for django-inbound-rules 1.1.0

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

Source distribution (sdist)

Source distribution for django-inbound-rules 1.1.0
File Size Uploaded Provenance
django-inbound-rules-1.1.0.tar.gz 54.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-inbound-rules 1.1.0
File Interpreter ABI Platform
django_inbound_rules-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 70.8 kB

Release files / django-inbound-rules-1.1.0.tar.gz

Download URL django-inbound-rules-1.1.0.tar.gz
Size 54.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3fb016758adc14bf5b94e66be7463670f4c0a5a15d26b6336f4494d3699eef62
BLAKE2b-256 checksum
How to use checksums
8ab58f27b740b5bb4500c94c3ef286c0d33ad3e03fff65bfc84085f42801de57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

Release files / django_inbound_rules-1.1.0-py3-none-any.whl

Download URL django_inbound_rules-1.1.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d42d60792a7eac20b9506d17305db9cc07aa7d8ec724297a58139d71f042e514
BLAKE2b-256 checksum
How to use checksums
bd0873a9d00544a7b9f754e055ccb57c0175253b13a99328e5a7f9a5d573d495
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

Security for django-inbound-rules 1.1.0

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.

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