- 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.
Release files for python_prefork 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python_prefork-0.1.2.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_prefork-0.1.2-py2.5.egg | Legacy Egg format | - | - | Details |
Total release size: 14.0 kB
Release files / python_prefork-0.1.2.tar.gz
| Download URL | python_prefork-0.1.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
caade93f2043b423d8f20e3737cedcbd766b589741099f0010468ead85fc4b1e
|
|
BLAKE2b-256 checksum How to use checksums |
81f445531a8f8919f5bf9d839527101b827c4f2828415e88ac93f9f124facc56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / python_prefork-0.1.2-py2.5.egg
| Download URL | python_prefork-0.1.2-py2.5.egg |
|---|---|
| Size | 11.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
3043e3816cd0907ba55bc7f427fbef2234955842dbe4763e32a920a4e2db3af9
|
|
BLAKE2b-256 checksum How to use checksums |
24a5fc6a6ff1719460ab4b99303d18d037385ed251bad1e8af8f797356b50978
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |