task-runner
taskrunner runs your methods until they stop failing.
Motivation
taskrunner is a crude way to force your methods to complete. This is particularly useful when functions can be expected to throw exceptions but shouldn’t stop execution. Effectively, taskrunner catches all exceptions and makes sure that the result is not in a list of excluded return values.
Installation
taskrunner is available via pip:
$ pip install taskrunner
Usage
from taskrunner import TaskRunner
def some_function_that_may_throw(some_argument, another_argument):
# Do something
task_runner = TaskRunner()
result = task_runner.run_until_complete(target=some_function_that_may_throw, args=('123','456'))
print(result) # Hopefully something useful
Metadata
Release files for task-runner 0.0.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 | |
|---|---|---|---|---|
| task-runner-0.0.1.tar.gz | 3.1 kB | Without provenance | Details |
Release files / task-runner-0.0.1.tar.gz
| Download URL | task-runner-0.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e8d9e9a3cbebfe9e073dcbad36002f8e93c3ee8582fb39f43aff8fe5c21f3c5
|
|
BLAKE2b-256 checksum How to use checksums |
f36ab171152cb11e758b99ebbe04c49deaa8d453325d5d9de163b248e2e125fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for task-runner 0.0.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.