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.3.0.tar.gz (15.9 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.3.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bounded_subprocess-2.3.0.tar.gz
Algorithm Hash digest
SHA256 7d586e9af00d2603478f59a8813bd5afe3599147a59ff85150d01acd1fd21bf7
MD5 45492f65c020c038b741ef6ad1da827c
BLAKE2b-256 ec59873a9d3ad446e384f965e7d306a8ff861621f581e859242d1aa4242d2277

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bounded_subprocess-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db90405d63f546236196c4ecf4ce14b9d204207619154bb2998d5dfe6bdd8f98
MD5 f6c444f4451aea5c4a8cdeb38da44843
BLAKE2b-256 2713c888a517078146a465030e978d24565775593d8ccc55ffb069afbed1b3d0

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