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.7.0.tar.gz (61.4 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.7.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bounded_subprocess-2.7.0.tar.gz
  • Upload date:
  • Size: 61.4 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.7.0.tar.gz
Algorithm Hash digest
SHA256 35d5bfd1675873ba76e04c22350b9910eed341708750f8b4000022b641cdabc8
MD5 c9b0e0c08d89eb249ad6cf5cb72d866a
BLAKE2b-256 1f11f01e537636b8addab6631a5d3abcb1fde655b1b1cb450eac6e1b50fcc25e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bounded_subprocess-2.7.0-py3-none-any.whl
  • Upload date:
  • Size: 16.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":"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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93e1ebcec89822e46d0f0dfa089269a01d07b4c5d174bd4cd21421e9d496ff38
MD5 323b1693098319eac3dddcb4efa513a0
BLAKE2b-256 f12e0ba3c5156f4e41c5ba0ea4a14bd541c28fac26d2e0ba53dd180fb77548d5

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