Python decorator to spawn a new process every time a function is called.
This is a for fork from gist.github.com/stuaxo/889db016e51264581b50, where I just added files __init__.py
and setup.py
to make it a module.
pip install git+https://github.com/subeiammar/processify
def test_processify():
@processify
def tricky():
return os.getpid()
print(os.getpid(), tricky(), tricky())