Metadata-Version: 1.0
Name: python-prefork
Version: 0.1.2
Summary: parallel processing fork manager inspired by Parallel::Prefork in CPAN
Home-page: http://github.com/taichino/python_prefork
Author: Matsumoto Taichi (taichino@gmail.com)
Author-email: taichino@gmail.com
License: MIT License
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.
        
Keywords: multi process,parallel,prefork
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
