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.1.tar.gz (16.8 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.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bounded_subprocess-2.3.1.tar.gz
Algorithm Hash digest
SHA256 2694faa53ae4667abefe05eb7e29b51248197258a9b8b5b8ccffc6e532d821da
MD5 6ab70c657a58be52a84c3a0cf8c4c2dd
BLAKE2b-256 0346199f3196ae6211e247a85e0f4ebbab6d9d15c65654d42d2b9c27a9b45508

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bounded_subprocess-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48bd435342d96d1dbc71ca1f2b21ec2af5af9f979203e63ed9dd37bcf5247326
MD5 ef4eb0be66a05b23ba94a2b2af1b5b7d
BLAKE2b-256 827c1ef675e6b84dd192a59a5baf8133679749cb8aa304af87e3039a8f6ef52a

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