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.8.0.tar.gz (61.5 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.8.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bounded_subprocess-2.8.0.tar.gz
  • Upload date:
  • Size: 61.5 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":"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.8.0.tar.gz
Algorithm Hash digest
SHA256 aa58dba36cabaf5130cd5ac69e46968921bc96543db9452f61d979503c61781d
MD5 79036ba1c1c3a04b1039510780835dcb
BLAKE2b-256 bdd84db0f5d99415d52a0594509f117c4ca643cea0c2d772a1be18c1c56e1860

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bounded_subprocess-2.8.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 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":"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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8f779a5715cc156593b143925de1fe4be86d25a7f747b011a49713699fd3691
MD5 cbd86427f33dbd9f7b551b03aee70ffd
BLAKE2b-256 8b714492a2a5e8071c97095dce7ff26a05919d1c4c04c3076971e8c1139d2451

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