Metadata-Version: 2.4
Name: bounded_subprocess
Version: 2.3.1
Summary: A library to facilitate running subprocesses that may misbehave.
Project-URL: Homepage, https://github.com/arjunguha/bounded_subprocess
Project-URL: Bug Tracker, https://github.com/arjunguha/bounded_subprocess
Author: Arjun Guha, Ming-Ho Yee, Francesca Lucchetti
License: MIT License
        
        Copyright (c) 2022--2024 Northeastern University
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
License-File: LICENSE.txt
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: typeguard<5.0.0,>=4.4.2
Description-Content-Type: text/markdown

# bounded_subprocess

[![PyPI - Version](https://img.shields.io/pypi/v/bounded-subprocess.svg)](https://pypi.org/project/bounded-subprocess)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/bounded-subprocess.svg)](https://pypi.org/project/bounded-subprocess)

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

```console
python3 -m pip install bounded-subprocess
```

## License

`bounded-subprocess` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
