Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 631 Bytes

README.md

File metadata and controls

24 lines (12 loc) · 631 Bytes

processify

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.

Installation

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

Usage

def test_processify():

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

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