Skip to main content

Makes background process management easy

Project description

Visor

Makes background process execution easy. Tested for unix-like operation systems.

Features:

  • No external dependencies
  • Minimal, if you don't want to install you can just copy/paste the code.
  • Supports logging

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


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.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

visor-0.1.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file visor-0.1.2.tar.gz.

File metadata

  • Download URL: visor-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.2.0 CPython/3.10.6

File hashes

Hashes for visor-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ed4c1ae7b46f4621aaf94f9c4d83e210ace92de172ec33bae59f2acb7c3fe6f5
MD5 5ef414fe832ed0cea12bf9c3e9f9ab52
BLAKE2b-256 c40525a9713a19c409856b8a5c5bb46b544c34ecd32b03c03c1ce9795d294276

See more details on using hashes here.

File details

Details for the file visor-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: visor-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.2.0 CPython/3.10.6

File hashes

Hashes for visor-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b14ff73bc7256cc78d4ccd9a9a0555462addc486000772d573c37d31be9eede
MD5 3a11770bfe46b639b9e6cc9aa7a14b22
BLAKE2b-256 8927bb291221fca63d25e161161fa93b104c9e280149dcb29cfc3544f6323505

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page