greentasks
A very simplistic task scheduler built around gevent.
Usage
Create a task scheduler instance:
from greentasks import TaskScheduler scheduler = TaskScheduler()
Implement a task:
from greentasks import Task class AwesomeTask(Task): name = 'awesome' delay = 10 periodic = True def run(self, arg1, kw=None): return arg1Schedule the task for asynchronous execution:
packaged_task = scheduler.schedule(AwesomeTask)
Wait for the result (if needed):
result = packaged_task.result.get()
Metadata
Release files for greentasks 2.0.post2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| greentasks-2.0.post2.zip | 18.3 kB | Without provenance | Details for greentasks-2.0.post2.zip | |
| greentasks-2.0.post2.tar.gz | 11.5 kB | Without provenance | Details for greentasks-2.0.post2.tar.gz |
Release files / greentasks-2.0.post2.zip
| Download URL | greentasks-2.0.post2.zip |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1d6c485887984a8e1b606dfe82f458c66b7a1b3e6dcf0a139abd82dfdb9ef32
|
|
BLAKE2b-256 checksum How to use checksums |
f257481a72243ce3ae62a3adfd1c4f16dae3c1f46d9a636f7c3ccb2a1a09b9cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / greentasks-2.0.post2.tar.gz
| Download URL | greentasks-2.0.post2.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dda51661e291f9aba0f9f078a963799a4c206c3d7417b0df981f46bc56d07a17
|
|
BLAKE2b-256 checksum How to use checksums |
730fe4a9f8beac44a2f23526b4375a11d8d746228530bfe741fac2254e48e930
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for greentasks 2.0.post2
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.