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.4.0.tar.gz (58.3 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.4.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bounded_subprocess-2.4.0.tar.gz
Algorithm Hash digest
SHA256 a610dcc84f68dd13d55c46a8a7d001d01f3235bbe9473b5fd77d7b4eeb41d768
MD5 247b086e4e0e0333bd85df6dd71b83d7
BLAKE2b-256 4f4fe22b1a21a510b3239e36e122199bb4a769a9a8826e4024572ad31e391c9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bounded_subprocess-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fed7150441341656fe1c5b6d8816adc5a2194f9e85dce65fbbd234283705e1c4
MD5 0bc047ba292b3810ffdd66e611733c16
BLAKE2b-256 2f018a5e349c6b32e209b8f6ec41d8f56fd21dfaa6c7694a394453ecf13ded45

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