Simple and clean background tasks.
Project description
Basker
Basker is a simple wrapper around multiprocessing.Process
,
giving users a nicer API as well as task results.
I wrote Basker for educational purposes, but it is also suited for actual use. If you are interested in the story behind Basker you can read it on my blog
Installation
$ pip install basker
Example
In the following snippet, calling example
starts a background process and
returns a unbocked.Result
instance. This result can be retrieved with
unbocked.Result.get
import basker
@basker.task
def example():
return 5 * 5
if __name__ == "__main__":
result = example()
print(result.get(timeout=1))
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
basker-1.0.0.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file basker-1.0.0.tar.gz
.
File metadata
- Download URL: basker-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0d8592b0ea6cd48924c5e3d2854303890f9ea93bc2cec35cd3ba027a32d633f |
|
MD5 | bad37e936a539615f85774994358dd8c |
|
BLAKE2b-256 | b004b87d24773fb73157847f0ac8851de08cf4a30d4383db5bee873b16dbdf80 |
File details
Details for the file basker-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: basker-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82acbdc8f057be064cd561effd43138f013fcc59a3eae6281544536f1745c208 |
|
MD5 | 5910578f369a53111399a0880903a9d9 |
|
BLAKE2b-256 | 9899176ce0f5a4c91ed0c798d63060b24a7e542ac2602a010b22738d3613f90e |