Pending tasks management
Project description
Pending tasks management
LICENSE: The MIT License
Requirements
- Python 3.7 or higher
- setuptools
Usage
import shedok
Shedule
shedok.Shedule(func, time, *args, **kwargs) # Creates shedule
shedok.Shedule.__call__(when=None) -> None # Tries to execute task(once and if time <= when)
Sheduler
shedok.Sheduler() # Creates shedules manager
shedok.Sheduler.add(shedule: Shedule) # Adds task to manager
shedok.Sheduler.tick() # Calls every task
shedok.Sheduler.run() # Creates new thread, that tick() every time
shedok.Sheduler.stop() # Stops thread
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shedok-0.1.1.tar.gz
(2.8 kB
view details)
File details
Details for the file shedok-0.1.1.tar.gz.
File metadata
- Download URL: shedok-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99552bd98a4f826d81e328303d40764dfaca575799d24a68e3c07e1fac8360b4
|
|
| MD5 |
298dab15fa8f4899b6cb37f23f36b0b3
|
|
| BLAKE2b-256 |
6dad808056ba0ce833b91db39cf70e7ce5d16f772bc4c2e9308985c8ae14162e
|