Skip to main content

pseudo-cron

Pseudo Cron Middleware for Django

Rationale

Schedule tasks for periodic execution without crontab.

Support

Supports: Python 3.9.

Supports Django Versions: 3.2.23

Installation

$ pip install pseudo_cron

Usage

Add pseudo_cron to INSTALLED_APPS.

Run migrations:

python manage.py migrate

Add the middleware:

MIDDLEWARE = [
    ...,
    'pseudo_cron.middleware.CronMiddleware'
]

Add a cron.py module to your app and schedule your periodic task:

from pseudo_cron.decorators import schedule_job


@schedule_job(24 * 60 * 60)  # Run every 24 hrs
def my_task():
    ...

Release files for pseudo-cron 1.0.4

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

Source distribution (sdist)

Source distribution for pseudo-cron 1.0.4
File Size Uploaded
pseudo_cron-1.0.4.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pseudo-cron 1.0.4
File Interpreter ABI Platform
pseudo_cron-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / pseudo_cron-1.0.4.tar.gz

Download URL pseudo_cron-1.0.4.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
74c669ffbfa97f01e21b7ffa219d4df6998353febcd16fa1eeea52211d70016e
BLAKE2b-256 checksum
How to use checksums
dbfcde6e95b0e85453f48cb814822884eb376a02fad32daf45f06046f68f6337
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release files / pseudo_cron-1.0.4-py3-none-any.whl

Download URL pseudo_cron-1.0.4-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fff3315a064ac09602ba82776b1b6a308f34747b5f175a0c244135c29a888b4
BLAKE2b-256 checksum
How to use checksums
436cb9260f706518cc4d68f27dafd7add174f1b59158f80b8486c1fb2053eaf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.0.4 This release

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