Skip to main content

Simple and clean background tasks.

Project description

Unblocked

Unblocked is a simple wrapper around multiprocessing.Process, giving users a nicer API as well as task results.

I wrote Unblocked for educational purposes, but it is also suited for actual use. If you are interested in the story behind Unblocked you can read it on my blog

Installation

$ pip install unblocked

Example

In the following snippet, calling example starts a background process and returns an unblocked.Result instance. This result can be retrieved with unblocked.Result.get

import unblocked

@unblocked.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

unblocked-0.1.0.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

unblocked-0.1.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