Skip to main content

hooked-on-django

Version

startup hook

All methods listed under this hook will be executed after Django finishes its startup process.

settings.py

INSTALLED_APPS = [
    ...,
    "hooks.startup",
    ...,
]

DJANGO_HOOKS = {
    "STARTUP": {
        "path.to.method": {
            "delay": 0,
            "args" : [
                ...
            ],
            "kwargs": {
                ...
            },
        }
    }
}
examples
file: /path/to.py

def method(param1: str, param2: int):
    ...

def other(param1: str = "", param2: int = 0):
    ...

def another():
    ... 

To add a hook to each of these methods, the following configuration can be used:

DJANGO_HOOKS = {
    "STARTUP": {
        "path.to.method": {
            "delay": 10,
            "args": ["string", 123456]
        },
        "path.to.other": {
            "kwargs": {
                "param1": "string", 
                "param2": 123456
            }
        },
        "path.to.other": {},  # No params needed.
    }
}

note: additionaly, the method method will be executed after a 10 seconds delay.

🎣️

Metadata

Release files for hooked-on-django 0.2.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 hooked-on-django 0.2.0
File Size Uploaded Provenance Actions
hooked-on-django-0.2.0.tar.gz 3.2 kB Without provenance Details for hooked-on-django-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hooked-on-django 0.2.0
File Interpreter ABI Platform Actions
hooked_on_django-0.2.0-py3-none-any.whl Python 3 none any Details for hooked_on_django-0.2.0-py3-none-any.whl

Total release size: 6.8 kB

Release files / hooked-on-django-0.2.0.tar.gz

Download URL hooked-on-django-0.2.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8ab4ab1bd052e5810f8fed76eb7e241b980938ce3d8724b7fa10398bfe9a676e
BLAKE2b-256 checksum
How to use checksums
d4cede630b013edb868d0312c804ce61ac2144246d373ce759c19337f7e8ab7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.8.13 Linux/5.13.0-1031-azure

Release files / hooked_on_django-0.2.0-py3-none-any.whl

Download URL hooked_on_django-0.2.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
084f75184bfcdd470c2f304207d1d1804513d8c55a6d4c5392c5a271f82927cb
BLAKE2b-256 checksum
How to use checksums
62153136b2f6cc84c792f307fe6d58f6cd919bea378d42ea9df1c981e3a206d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.8.13 Linux/5.13.0-1031-azure

Security for hooked-on-django 0.2.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