Python decorator to spawn a new process every time a function is called.
This is a for fork from gist.github.com/schlamar/2311116, where I just added files __init__.py
and setup.py
to make it a module.
This same tool is more conveniently implemented into my skywalker module.
pip install git+https://github.com/dgerosa/processify
def test_processify():
@processify
def tricky():
return os.getpid()
print(os.getpid(), tricky(), tricky())