Skip to main content

A multi-process job queue

Latest version Documentation Test cases Test coverage

Description

This package implements a queue that distributes jobs over multiple processes.

License

The code is distributed under the terms of the BSD 3-Clause license (see LICENSE), and the documentation is distributed under the terms of the Creative Commons BY-SA 4.0 license.

Usage

import parq

# Define a job that prints its input argument.
def my_job(n):
    print(f'Running job #{n}')

# Define the input argument for each job.
job_inputs = [(i,) for i in range(10)]

# Run these 10 jobs using 4 processes.
success = parq.run(my_job, job_inputs, n_proc=4)
assert success

See the online documentation for further details.

Installation

To install the latest release:

pip install parq

To install the latest development version, clone this repository and run:

pip install .

Metadata

Release files for parq 0.3.0

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

Built distribution (wheel)

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

Release files / parq-0.3.0-py3-none-any.whl

Download URL parq-0.3.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2972d5adcd69103f50fdfe255a11062b4cd7cf35dc1ce28d7f3a258b4c74043
BLAKE2b-256 checksum
How to use checksums
d39ab82861a53e68b8899020fea4fa6fc8251af792560cf607cde11f1652ea3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for parq 0.3.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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