Skip to content

dgerosa/processify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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())

About

Decorator to run a python function as a process

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages