/ppl

it's a simple utility to do things the way I like to do them ... BAD and rapid

Primary LanguagePythonMIT LicenseMIT

PPL Python Process Launch

🧐 About

it's a simple utility to do things the way I like to do them ... BAD and rapid

Have you ever had to kill a subprocess or a process launched by a script as a daemon? with ppl you do it easy, greep process && kill. the end.

🏁 Getting Started

Installing

python setup.py

🔧 Running the tests

python main.py

🎈 Usage

#!/usr/bin/env python

""" example file main.py """

from ppl  import start, stop
import time

# start process name processo
processo = start('python demone.py')
""" 
if the script takes parameters, 
processo = start(f'python demone.py {parameters}')
"""
time.sleep(10)

# kill process name processo
stop(processo)