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.0.tar.gz
(2.3 kB
view details)
Built Distribution
visor-0.1.0-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file visor-0.1.0.tar.gz
.
File metadata
- Download URL: visor-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.2.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4306a699e9e3707d883673ab77410f1ce23bc3a2add9713ffb08bce4750691d0 |
|
MD5 | 1b842065e4f2eea4e723ff3269c5c330 |
|
BLAKE2b-256 | e4008def9266deafa60d8dd55350f0910cfcca3a7c784e5745f7c05c2d2cf993 |
File details
Details for the file visor-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: visor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.2.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80a72bdc2c7da87f85674b2232a997218cfdf80ea0dd82e10bd6c52965c5dc18 |
|
MD5 | 8a81693e30e797d80074bf4c88fd4d1b |
|
BLAKE2b-256 | 404f18b06bc562a659b88b8de96662ed3a5c6a94f003c0380cb4b17bf945c34a |