Skip to main content

Thread/process pool parallel execution utilities

Project description

scitex-parallel

PyPI Python Tests Install Test Coverage Docs License: AGPL v3

SciTeX

Thread/process pool parallel execution utilities — `map` with tqdm, auto CPU count.

Full Documentation · pip install scitex-parallel


Problem and Solution

# Problem Solution
1 concurrent.futures is low-level — users rewrite "map-with-progress-bar" every project stx.parallel.run(func, args) — drop-in map with tqdm, auto CPU-count; 1-liner for I/O-bound workloads (HTTP, file reads, API calls)
2 joblib.Parallel is heavyweight + process-based by default — overkill for threaded I/O Thread-based, no dep beyond stdlib + tqdm — right tool for the 80% case

Installation

pip install scitex-parallel

Quick Start

from scitex_parallel import run

results = run(my_func, items, n_jobs=4)

1 Interfaces

Python API
from scitex_parallel import run

# I/O-bound parallel map with tqdm progress bar.
results = run(fetch_url, urls, n_jobs=8, desc="Fetching")

# Tuple-arg form for multi-arg functions.
results = run(my_func, [(a, b) for a, b in zip(xs, ys)], n_jobs=4)

Part of SciTeX

scitex-parallel is part of SciTeX.

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.

License

AGPL-3.0


SciTeX

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

scitex_parallel-0.1.6.tar.gz (387.6 kB view details)

Uploaded Source

Built Distribution

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

scitex_parallel-0.1.6-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file scitex_parallel-0.1.6.tar.gz.

File metadata

  • Download URL: scitex_parallel-0.1.6.tar.gz
  • Upload date:
  • Size: 387.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_parallel-0.1.6.tar.gz
Algorithm Hash digest
SHA256 9f44dd4be4c92ed434eaea58be7fd3b8a0af55a200f6262a17826c0ce8df3a26
MD5 431de23b5d8f5963c481a56ae7b13b6d
BLAKE2b-256 a5f1c50bec98c0757b2919f011a5382bf843c915f10516a368dfec3b76ad4633

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_parallel-0.1.6.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-parallel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_parallel-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for scitex_parallel-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0244f48243dd70fbda1c76b74eed64784ff9b7354547e59c82718b1a447e1d80
MD5 68b97ee9969455b33c80d2c7ab4782b4
BLAKE2b-256 3a1247b6b82135390c176d6221ec2b13cc65c837399b47985b02e1285bb88614

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_parallel-0.1.6-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-parallel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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