Skip to main content

Trait based multiprocessing with queues

Project description

CGI Multiprocess

Description

Multiprocessing with Process Pools implemented using Processes and Shared Memory objects.

  • Built in progress bar.
  • Graceful shutdown by default (CTRL+C 2x, will kill immediately).
  • Automatically calls join
  • Allows re-use of pool after join, cutting down on process spawning time.

Example

pants run :example

Development setup

  1. Open repository in vscode using the following: code .

This ensures environment variable proliferation into the vscode shell

2.When prompted by vscode (lower right) to Open in Container, say Yes

3.VSCode will restart and reopen in the Container (This may take a minute if the container has not yet been built)

4.Open a new ZSH terminal in VSCode (this will initialize pants)

Run Tests

pants test ::

Rebuild lock files

To rebuild lock files (after package updates or installation) pants generate-lockfiles

Build distribution

pants package :dist

Export Virtualenv

Use pants to export virtualenvs: pants export --resolve=python-default --resolve=pytest

Source the virtualenv for use with poetry: source dist/export/python/virtualenvs/python-default/$CODE_PYTHON_VERSION.*/bin/activate

Install local directory: pip install .

Update dependencies

  1. Follow "Update Virtualenv"
  2. From the poetry shell type: poetry update
  3. Follow instructions from "Rebuild lock files"
  4. Commit the lock files

Run precommit manually

pre-commit run --all-files --hook-stage commit pre-commit run --all-files --hook-stage push

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

qpool-0.2.0.tar.gz (47.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qpool-0.2.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file qpool-0.2.0.tar.gz.

File metadata

  • Download URL: qpool-0.2.0.tar.gz
  • Upload date:
  • Size: 47.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.21

File hashes

Hashes for qpool-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6a517243b2ae6a1a9f88f8fb3f212ba21ae05b4e764b22499c5b93f521f63b90
MD5 dfc0a2fcafe0aeabd98d6870dda4615d
BLAKE2b-256 ae51cf33e5cea85c2f6ea3a618357346b3d3acf19db6d7f46e1f6a13780f39cd

See more details on using hashes here.

File details

Details for the file qpool-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: qpool-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.21

File hashes

Hashes for qpool-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3005b640a7d4a84fa07cebce219dd0ebbc34f046a3f2bc902312d7647c4e1478
MD5 8fe6815c24543dd6ebc6f60437afa2c2
BLAKE2b-256 4d3cae38070d00c3f745755f1ef125c3aef12a84b55789a999817f91d1c59107

See more details on using hashes here.

Supported by

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