Skip to main content

A library to facilitate running subprocesses that may misbehave.

Project description

bounded_subprocess

PyPI - Version PyPI - Python Version

The bounded-subprocess module runs a subprocess with several bounds:

  1. The subprocess runs in a Linux session, so the process and all its children can be killed;
  2. The subprocess runs with a given timeout; and
  3. The parent captures a bounded amount of output from the subprocess and discards the rest.

Note that the subprocess is not isolated: it can use the network, the filesystem, or create new sessions.

Installation

python3 -m pip install bounded-subprocess

License

bounded-subprocess is distributed under the terms of the MIT license.

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

bounded_subprocess-2.2.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bounded_subprocess-2.2.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file bounded_subprocess-2.2.0.tar.gz.

File metadata

  • Download URL: bounded_subprocess-2.2.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.0

File hashes

Hashes for bounded_subprocess-2.2.0.tar.gz
Algorithm Hash digest
SHA256 e7bfb446db819c59b5e8ed7eaa41aa17133ce81ff3b041e5ec0dc4540780c5a0
MD5 89bde6f6de1c6f3d71673e2014e889e9
BLAKE2b-256 3668392b690e2dfa98722bcc866690a66d332650f15db538bfb8f2fcea1b18b3

See more details on using hashes here.

File details

Details for the file bounded_subprocess-2.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bounded_subprocess-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f585ea4474a01d154b955c03018fe6458f42280098fc2550bf7982fa26e4e6f
MD5 80ff639ad11ae715e8f84c683f5f9cdf
BLAKE2b-256 a7c6ff62fcab0d02a6e99e97f082a3fb70c867d65eb5440b0885f6aae84960e5

See more details on using hashes here.

Supported by

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