A multi-process job queue
Project description
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 .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parq-0.3.0-py3-none-any.whl.
File metadata
- Download URL: parq-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2972d5adcd69103f50fdfe255a11062b4cd7cf35dc1ce28d7f3a258b4c74043
|
|
| MD5 |
e559764522dc71e24f627e2f7c0f8847
|
|
| BLAKE2b-256 |
d39ab82861a53e68b8899020fea4fa6fc8251af792560cf607cde11f1652ea3a
|