Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 540 Bytes

File metadata and controls

21 lines (11 loc) · 540 Bytes

processify

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.

Installation

pip install git+https://github.com/subeiammar/processify

Usage

def test_processify():

    @processify
    def tricky():
        return os.getpid()

    print(os.getpid(), tricky(), tricky())