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.9.1.tar.gz (1.6 MB 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.9.1-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bounded_subprocess-2.9.1.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.9.1.tar.gz
Algorithm Hash digest
SHA256 e9f176ce9baab46af5c942f74f9af13baa6566e65cc395edeaf14f50730cce44
MD5 346c8d9772cfde5757fbbe59d07381f1
BLAKE2b-256 a93ea41844c6b38ad8541a8787b61ce40ff8cafb3b91812f5c453b5f6cc00036

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bounded_subprocess-2.9.1-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 698cc4e8a8fce16ceb063bf3118b4e061fc3e99932c9ed2fe01ebfdb511c3465
MD5 6b489eabbd1dda8f216ccd1f6b806d71
BLAKE2b-256 ca53a0f4e450279450dbf0e6304c9b89bcb7198aa6cf964947e916103a6266f6

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