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 hashes)
Built Distribution
basker-1.0.0-py3-none-any.whl
(3.4 kB
view hashes)