Skip to main content

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))

Metadata

Release files for unblocked 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unblocked 0.1.0
File Size Uploaded Provenance
unblocked-0.1.0.tar.gz 2.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for unblocked 0.1.0
File Interpreter ABI Platform
unblocked-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / unblocked-0.1.0.tar.gz

Download URL unblocked-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8e491ad89e4bf250ad87a30cb6a94beee7c4936d905e0b870d677c8ea2f1ac6e
BLAKE2b-256 checksum
How to use checksums
5b82b4fca84eb407b89c52045b9e0dbbec92b9e54d78cf69165f236bc7038f9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Release files / unblocked-0.1.0-py3-none-any.whl

Download URL unblocked-0.1.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ddee741fcc17530d20f08132054f31a60e2fea58adac186d0a740a4ccf5d1f2d
BLAKE2b-256 checksum
How to use checksums
451325ef070d3dcb799a9baa6b8155a07b95a63d49242cdfb9d6c1be8d410da5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Security for unblocked 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page