Shellous

Latest version: v0.37.0

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

Scan your dependencies

Page 1 of 7

0.37.0

------

- [API] Change the default for the `close_fds` option back to True. This aligns with the expected subprocess module behavior.
- [LATERAL] Update development dependencies.
- [LATERAL] Work-around testing issues on Python 3.13b2 and later due to the asyncio REPL change.

0.36.0

------

- [LATERAL] Update development dependencies and fix pylint issues.

0.35.0

------

- [BUGFIX] Fix potential race condition in `DefaultChildWatcher`. (582)
- [LATERAL] Update development dependencies and fix pyright warnings.
- [LATERAL] Update to black 24.1.1 code formatter.

0.34.0

------

- [FEATURE] Add `error_limit` option to customize the number of bytes of `stderr` that is buffered.
- [BUGFIX] Catch `asyncio` deprecation warnings intended for Python 3.14.
- [LATERAL] Update CI action that publishes shellous package to PyPI to use trusted publishing.
- [LATERAL] Improve reliability of tests under code coverage.
- [LATERAL] Replace deprecated `event_loop` fixture in asyncio tests.

0.33.0

------

- [FEATURE] Add the `Pipeline.prompt()` method so the `Prompt` API works in pipelines.
- [FEATURE] Add the `Prompt.read_pending()` method to read and clear all data in the pending buffer.
- [API] When `Prompt.expect()` doesn't match anything and we reach EOF, raise EOFError. The previous version returned a `match` of None.
- [API] When `Prompt.command()` doesn't match, it will now raise EOFError. However, you can set the `allow_eof` argument to True to match EOF.
- [API] The Prompt `chunk_size` argument is now private.
- [API] Add `SHELLOUS_TRACE` environment variable for debug logging and tracing. This replaces the SHELLOUS_DEBUG and SHELLOUS_PROMPT environment variables.
- [API] The `Prompt.result` property no longer returns an Optional. It raises a RuntimeError if the co-process is still running.
- [API] The `Prompt.expect()` method no longer accepts an Ellipsis to match EOF. Use the `Prompt.read_all()` method to read until EOF.
- [API] In the `cooked`, `cbreak`, `raw` utility methods, using the Ellipsis to inherit the terminal size is no longer supported.

0.32.0

------

- [FEATURE] Add the `Command.prompt()` method to facilitate using the `Prompt` API.
- [FEATURE] Refactor the `Prompt` helper class to support regular expression matching.
- [FEATURE] The `Prompt.expect()` method can match on a regular expression in the output stream.
- [API] The `Prompt.send()` method no longer returns a response. If you want to send a string to a process and wait for the response, use the `Prompt.command()` method instead.
- [API] The `receive()` method has been removed. Use `expect()` instead.
- [BUGFIX] Fix a potential deadlock issue in `Prompt.send()` by continuing to read pending input from the subprocess concurrently.

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.