Schedule Python functions with ease
Project description
Greetings from Scheduguru
Scheduguru was a project I created very recently to enrichen my learning of threading and asynchronous programming in Python.
How to use
Currently there's not much to go by so this is all the documentation you get:
The Scheduler
class
This is the main class that Scheduguru revolves around. When initialised the following parameters can be passed in:
name: str
: This is a string that defines the Scheduler's name. Has no functional significance. If in doubt, set this to the value of__name__
wait_time: int
: An integer (in seconds) that defines how long the scheduler should wait for new tasks without terminating
There is only one publicly available method which is the Scheduler.schedule
method.
The Scheduler.schedule
method
This method schedules an event for execution as soon as possible. It adds it to the task queue which the scheduler will listen for changes to and execute any new tasks.
The specification of the Scheduler.schedule
method is as follows:
task: Callable
- a reference to the function which is to be executedargs: tuple[Any]
- any positional arguments to be passed into the functionkwargs: dict[str, Any]
- any keyword arguments to be passed into the function
Go and explore the rest! (not that there is anything else)
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
Built Distribution
File details
Details for the file scheduguru-0.0.5.tar.gz
.
File metadata
- Download URL: scheduguru-0.0.5.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24d2cb6915fd0a2f95d9e974bde1ab3aa51f6f8ab8796869d35f4c824ff331e0 |
|
MD5 | 43715f09fd270a1e2d444c6697523b24 |
|
BLAKE2b-256 | a95a134c3cfa52382f3bd3a05011df665f2200044f6d81bb41a5c65c6151de50 |
File details
Details for the file scheduguru-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: scheduguru-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7e1adae4a8f982e033fd539dc894ed82ac1de2ba90975fced0626f8b81f273 |
|
MD5 | e5c0c7b237770834ec8b5211de5cb9c9 |
|
BLAKE2b-256 | c20daa24c22ed539fb43b9b231ef2c2e80b093deae2d6013928d733a3c6717b7 |