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.6.0.tar.gz (59.2 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.6.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bounded_subprocess-2.6.0.tar.gz
  • Upload date:
  • Size: 59.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bounded_subprocess-2.6.0.tar.gz
Algorithm Hash digest
SHA256 97ae69edaa00d49c21f82c4fad2a7867dfb8e806c7446066bdc58f8a59283cd2
MD5 d7458f883396904f085eae9bd4e1f2ef
BLAKE2b-256 451a17b83d5ddce2e0264fdc7b31a2bec5678d3c9d12e47d56d81c019e9eec5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bounded_subprocess-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bounded_subprocess-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 222965711778840455a2759bade0075164b87c8a65d35572bfa56a742236d961
MD5 c86107bbb72c7f3658843ed89796b2b8
BLAKE2b-256 38a18204a09a1d4e16062e2b0942a5eacfd8a61e7995185f54a9b7017b152a4f

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