Skip to main content

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


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)

Uploaded Source

Built Distribution

basker-1.0.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page