A library to facilitate running subprocesses that may misbehave.
Project description
bounded_subprocess
The bounded-subprocess module runs a subprocess with several bounds:
- The subprocess runs in a Linux session, so the process and all its children can be killed;
- The subprocess runs with a given timeout; and
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bounded_subprocess-2.0.0.tar.gz.
File metadata
- Download URL: bounded_subprocess-2.0.0.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cde9491f727cdb98c613991503778703400c96533999f36f2711fbee7ded002
|
|
| MD5 |
09eba768871103dbd62c032ef56a6b47
|
|
| BLAKE2b-256 |
e71b0c37bdc6f37dfa3d5d9730925bb52899e97fab2a6d2442e2cf1b62246235
|
File details
Details for the file bounded_subprocess-2.0.0-py3-none-any.whl.
File metadata
- Download URL: bounded_subprocess-2.0.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44cecb46834a42dd7549a9757f04b62e026b2c58fefc5d3be99309e015211e38
|
|
| MD5 |
2bd31229786b6d26024c1bd6f4b85cce
|
|
| BLAKE2b-256 |
615576759e7b4645f7e2b56a783b0258ff986cbb9aa462893ca49b95250fbb15
|