Skip to main content
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)

Source distribution for python_prefork 0.1.2
File Size Uploaded
python_prefork-0.1.2.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python_prefork 0.1.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page