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.5.0.tar.gz (59.0 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.5.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bounded_subprocess-2.5.0.tar.gz
Algorithm Hash digest
SHA256 2bb70a3eb2b477ed1d5297584e088ffb2c2bfaced2d5c99dfcd15235010ca51a
MD5 01ccf7d2868da0fccebce1dc59fa09a4
BLAKE2b-256 db73b28fa9182ca40bc4ba6907a54e91d027c94a3a492ac9cb142dd9b3960075

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bounded_subprocess-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5c2f9d2a5b64ec075dfd3381392c0a91d770f6637a8ace7fcfea8ba1b5077be
MD5 8d2791097add038b04d8ce366c497efd
BLAKE2b-256 c1a1e30f389e7be3633aaa262891afd122ac3235b8108d5aa1d4ac31c92d970a

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