Skip to main content

crontask

Python background jobs with a decorator — no Redis, no Celery.

pip install pycrontask
from contextlib import asynccontextmanager
from fastapi import FastAPI
import crontask

ct = crontask.init(
    api_key="...",
    database_url="postgresql://...",
    base_url="https://api.crontask.dev",
)

@ct.job(schedule="0 9 * * *")
async def send_daily_report():
    await do_the_work()

@asynccontextmanager
async def lifespan(app: FastAPI):
    await ct.start()
    yield

app = FastAPI(lifespan=lifespan)

Works with async def and regular def functions. Failure alerts by email. Dashboard at crontask.dev.

Metadata

Release files for pycrontask 0.1.1

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

Source distribution (sdist)

Source distribution for pycrontask 0.1.1
File Size Uploaded Provenance Actions
pycrontask-0.1.1.tar.gz 5.7 kB Without provenance Details for pycrontask-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycrontask 0.1.1
File Interpreter ABI Platform Actions
pycrontask-0.1.1-py3-none-any.whl Python 3 none any Details for pycrontask-0.1.1-py3-none-any.whl

Total release size: 11.8 kB

Release files / pycrontask-0.1.1.tar.gz

Download URL pycrontask-0.1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3af1d8d5d86d5b5313543adc6b53ba78d390e48c665c3d84b86b2f720a3ff040
BLAKE2b-256 checksum
How to use checksums
0b226f0bc4df5cab570591d4ea1f630ef3b9c33bec859174640c32ac224a8531
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pycrontask-0.1.1-py3-none-any.whl

Download URL pycrontask-0.1.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f5e13798fa9f762dde32dec632448bffccf75368ee076a34bf341c219791be3
BLAKE2b-256 checksum
How to use checksums
6d9394c44b5f01d0dc2fdbb4d4842c86a3b1fcd8f2258d2aebcfe41e3fec37c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pycrontask 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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