Makes background process management easy
Project description
visor
Makes background process management easy.
Installation
pip3 install -U visor
Usage
from visor import Visor
visor = Visor()
visor.add("sleep 20")
visor.add("sleep 20 && echo done")
visor.show() # print all added processes
visor.kill_all() # send SIGKILL to all running processed
visor.terminate_all() # send SIGTERM to all running processed
visor.active # List of all `added` processes
# Get log files for first added process (sleep 20)
stdout_path, stderr_path = visor.get_log_files(visor.active[0])
# Wait for all processes to exit
visor.wait()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
visor-0.1.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
visor-0.1.1-py3-none-any.whl
(2.8 kB
view hashes)