Skip to main content

PyPI version license Donate

huey_django_orm

A module to use Django ORM for storage with huey

This project originally started because I wanted to just update huey-pg. That proved to be more of a full rewrite than just an update.

Anyway, I didn't want to use SqliteHuey, or FileHuey, since I already have a perfectly good data store in my Django project.

So, I took a copy of SqliteHuey, and re-implemented the class functionality using Django ORM.

Huey doesn't do anything too crazy, so it should work with any database backend supported by Django. We also don't use any non-standard Django stuff, so it should work with any modern Django version.

Installation

Install with pip

pip install huey-django-orm

settings.py

Add to INSTALLED_APPS

INSTALLED_APPS = [
    "...",
    "huey_django_orm",
    "...",
]

Configure Huey to use DjangoORMHuey

from huey_django_orm.storage import DjangoORMHuey

HUEY = DjangoORMHuey()

or if you need other options

HUEY = {
    "...": "...",
    'huey_class': 'huey_django_orm.storage.DjangoORMHuey',
    "......": "...",
}

Run Migrations

python manage.py migrate huey_django_orm

That's it! Now you can use Huey just like you normally would.

Admin

Since this project is specific to Django, and will likely never be used without it, you get a few Django goodies rolled right in.

  • Each Model has a ModelAdmin
  • There is an auto_now_add field in each model so we can see when an object was created within the admin
  • Ordering is defined at the model level, so objects will appear in the admin in the same way they will be processed.

Metadata

Release files for huey-django-orm 24.10.24.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 huey-django-orm 24.10.24.0
File Size Uploaded Provenance Actions
huey_django_orm-24.10.24.0.tar.gz 6.9 kB Without provenance Details for huey_django_orm-24.10.24.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for huey-django-orm 24.10.24.0
File Interpreter ABI Platform Actions
huey_django_orm-24.10.24.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for huey_django_orm-24.10.24.0-py2.py3-none-any.whl

Total release size: 14.0 kB

Release files / huey_django_orm-24.10.24.0.tar.gz

Download URL huey_django_orm-24.10.24.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
15ecdf79c1906b93b030f22f7849270060db999a650371297fec663294b52df1
BLAKE2b-256 checksum
How to use checksums
edde807d816272b9c96ae4790833a35228f8b7167897a164f6b2a5f8bacc0910
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / huey_django_orm-24.10.24.0-py2.py3-none-any.whl

Download URL huey_django_orm-24.10.24.0-py2.py3-none-any.whl
Size 7.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dc8c7877fb918fa04da212f349499d3c37271989ee89f53a87a2a21dbc4cf929
BLAKE2b-256 checksum
How to use checksums
0ab08e8062e55679d991ae7837a37eab205231e69705d5450ed8568ab0ad4536
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Security for huey-django-orm 24.10.24.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