Schedule Manager
Thread-based task scheduling management.
Schedule manager provide an easy way to schedule periodic jobs.
Periodic, daily, weekly, monthly or even non-periodic jobs are available for scheduling as tasks.
Example Code
from schedule_manager import ScheduleManager
from datetime import datetime
def example_job():
print("Working now {}".format(datetime.now().strftime("%Y-%m-%d %H:%M:%S")))
manager = ScheduleManager()
# Schedule a periodic task: do job every 60 seconds
manager.register_task(name="task1", job=example_job).period(60).start()
# Schedule a daily task: do job at 18:00 every day
manager.register_task(name="task2", job=example_job).period_day_at("18:00:00").start()
# Schedule a periodic task: start task at 21:00
manager.register_task(name="task3", job=example_job).period(120).start_at("21:00:00").start()
# Schedule a non-periodic task: do job 5 times
manager.register_task(name="task4", job=example_job).period(30).nonperiodic(5).start()
# Pause task1
manager.task("task1").pause()
# Stop all tasks
manager.all_tasks.stop()
Installation
Install schedule manager with pip:
pip install schedule-manager
Documentation
Documentation is available at schedulemanager.readthedocs.io.
Metadata
Release files for schedule-manager 0.1.1
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 | |
|---|---|---|---|---|
| schedule-manager-0.1.1.tar.gz | 9.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| schedule_manager-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / schedule-manager-0.1.1.tar.gz
| Download URL | schedule-manager-0.1.1.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71a7eb1d56673b60f860466a404e2d921121af56dd7cc8084a8fd7901f443ed1
|
|
BLAKE2b-256 checksum How to use checksums |
83aeb90deb8394bf8104da4f20634f2e72f1dbcea19c103fc5b262766d3a0497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
|
Release files / schedule_manager-0.1.1-py3-none-any.whl
| Download URL | schedule_manager-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a893a6327da73e7cf9822c97e10ee8df122b037b3689344dfadca015c0ae36b
|
|
BLAKE2b-256 checksum How to use checksums |
2a6469d352cda64879f9354a6fa49f314cc8e6b5d648630a355bc79466306e5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
|
Security for schedule-manager 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.