Skip to content

Decorator to run a python function as a process

License

Notifications You must be signed in to change notification settings

subeiammar/processify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

About

Decorator to run a python function as a process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%