parallel processing fork manager inspired by Parallel::Prefork in CPAN
Project description
- This module is inspired by Parallel::Prefork in CPAN.
As Parallel::Prefork, this module is intended to be some operations done in parallel.
Simple example of usage is followings
>>> from python_prefork import PythonPrefork >>> pp = PythonPrefork() >>> while not pp.signal_received: >>> if pp.start(): continue >>> >>> run() # do some task in child process >>> >>> pp.finish() >>> pp.wait_all_children()
- Some options can be set in constructor
[ max_workers ] maximum number of child processes to fork
[trap_signals] arrays of signals to be trapped. parent process will send these signals to all children
[on_reap_cb] function to be called when a child is end. This function must have two parameters, child pid and exit status.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 python_prefork-0.1.2.tar.gz.
File metadata
- Download URL: python_prefork-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caade93f2043b423d8f20e3737cedcbd766b589741099f0010468ead85fc4b1e
|
|
| MD5 |
a57f3fcbd95662a77749a0d639e102b8
|
|
| BLAKE2b-256 |
81f445531a8f8919f5bf9d839527101b827c4f2828415e88ac93f9f124facc56
|
File details
Details for the file python_prefork-0.1.2-py2.5.egg.
File metadata
- Download URL: python_prefork-0.1.2-py2.5.egg
- Upload date:
- Size: 11.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3043e3816cd0907ba55bc7f427fbef2234955842dbe4763e32a920a4e2db3af9
|
|
| MD5 |
aab0030763ca75de9e239c018f1e6bb2
|
|
| BLAKE2b-256 |
24a5fc6a6ff1719460ab4b99303d18d037385ed251bad1e8af8f797356b50978
|