Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Multiprocessing framework.

Project description

forkpy provides a framework for multiprocessing in Python. Typical usage might look like this:

from forkpy import Factory, Task

def target_function(args, worker):
    a, b = args
    return a + b

factory = Factory()
for a in range(100):
    for b in range(100):
        args = (a, b)
        factory.assign(Task(args, target_function))

factory.start()
factory.join()

print(factory.results)

Sources

See the project on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for forkpy, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size forkpy-0.0.3-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size forkpy-0.0.3.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page