Soldier

Latest version: v0.2.5

Safety actively analyzes 613777 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.5

- Add support to overwrite `std_out` using fd. Can be used like `soldier.run(cmd, std_out=1)` to write output to fd 1 (/dev/stdout) in this case.
- Bugfix: When using `shell=True` do not split the command using `shlex`

0.2.4

- Bugfix: Call `Popen.communicate` when `stream=True` to set `exit_code` explicitly in case process is still in running state

0.2.3

- Bugfix: `exit_code` was not being set when using `stream=True`. This was fixed by calling `Popen.poll()`

0.2.2

- `exit_code` is now a property, `status_code` is still supported but will be deprecated
- `suppress_std_err` keyworded argument is added to prevent from always printing stderr

0.2.1

- Custom enviroment variables can be passed to commands

0.2.0

- Support for cwd when executing commands
- Supoort for streaming of output to stdout

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.