Registry / devops / para
library0.0.8pypypi✓ verified 83d ago

Para (v0.0.8) is a utility set that leverages Python's 'multiprocessing' module to distribute CPU-intensive tasks across multiple cores. It provides a simple API for parallel execution with built-in progress bar support and exception handling. Release cadence is irregular.

pip install para
INSTALL
IMPORT
SIG · PARA
P
para
devopspythonv0.0.8
Install
1.6s avg
Import
61ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.8 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.064s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.058s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

map
from para import map
The primary function is map, used to apply a function to an iterable in parallel.
map_unordered
from para import map_unordered
Returns results as they complete, useful for non-dependent tasks.
map_starmap
from para import map_starmap
Like map but unpacks argument tuples.

Parallel mapping of a CPU-intensive function across 4 processes.

from para import map def square(x): return x * x results = map(square, range(10), nprocesses=4) print(list(results)) # [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
Debug
Known issues
gotchaThe library is very early stage (v0.0.8); API may change. Not recommended for production.
fix
Consider alternatives like concurrent.futures, multiprocessing.Pool, or joblib.
affects: >=0.0.0
gotchamap returns a generator, not a list. You must consume it (e.g., list(results)) to execute the tasks.
fix
Wrap call with list() or iterate explicitly.
affects: >=0.0.0
gotchaIf the function is not picklable (e.g., lambda, nested function, class method), multiprocessing will raise an error. Use functools.partial or top-level functions.
fix
Define the function at module level or use pathos.multiprocessing instead.
affects: >=0.0.0
Errors
Common errors & fixes
AttributeError: Can't pickle local object 'my_function.<locals>.<lambda>'
Lambda functions cannot be pickled by multiprocessing.
fix
Use a named top-level function instead of lambda.
TypeError: map() got an unexpected keyword argument 'nprocesses'
The parameter is 'nprocesses' (note the uppercase 'P'), not 'nprocesses'.
fix
Use correct keyword: map(func, data, nprocesses=4).
Upgrade
Version history
0.0.8latest on PyPI · released Jan 17, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
para — pip install para · libregistry