This project has been archived by its maintainers, and is no longer receiving any updates.
JustScheduleIt
Simple in-process task scheduler for Python apps.
Use it if:
- you need to schedule background tasks in the same process, like to update a shared dataframe every hour from S3
Take something else if:
- you need to schedule persistent/distributed tasks, that should be executed in a separate process (take a look at Celery)
Usage
Just schedule a task
from datetime import timedelta
from justscheduleit import Scheduler, every, run
scheduler = Scheduler()
@scheduler.task(every(timedelta(minutes=1), delay=(0, 10)))
def task():
print("Hello, world!")
run(scheduler)
sync and async tasks
The scheduler supports both sync and async functions. A sync function will be executed in a separate thread,
using
anyio.to_thread.run_sync(),
so it won't block the scheduler (other tasks).
(Advanced) Hosting
Scheduler is built around Host abstraction. A host is a supervisor that runs 1 or more services, usually as the application entry point.
A scheduler itself is a hosted service. The default justscheduleit.run() internally just creates a host with one
service, the passed scheduler, and runs it.
Metadata
Release files for justscheduleit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| justscheduleit-0.2.0.tar.gz | 17.0 kB | Without provenance | Details for justscheduleit-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| justscheduleit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for justscheduleit-0.2.0-py3-none-any.whl |
Total release size: 37.9 kB
Release files / justscheduleit-0.2.0.tar.gz
| Download URL | justscheduleit-0.2.0.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac74817f28b9d6e004c1b247b589a35608c3e97a7c5181e5b13deb6484b5e760
|
|
BLAKE2b-256 checksum How to use checksums |
2bc58dfa6c9c9b84ddbe3ecd31f4f1d829f6284445b96b9eba1e79a3c0620465
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.19.1 CPython/3.12.6 Darwin/23.6.0
|
Release files / justscheduleit-0.2.0-py3-none-any.whl
| Download URL | justscheduleit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b564efc093e3b349c83f5b6c83e706560edac14d6eeb90c853a0c7f92d37fb7
|
|
BLAKE2b-256 checksum How to use checksums |
81e9af050bf56fb440d75be9aae99eab96591047ff11640688e901bfd5438fd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.19.1 CPython/3.12.6 Darwin/23.6.0
|
Security for justscheduleit 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.