Cusser

Latest version: v0.1.1

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

Scan your dependencies

0.1.1

This is a **patch release** of **cusser**, the lightweight [curses](https://docs.python.org/3/library/curses.html) wrapper that understands [ANSI escape code sequences](https://en.wikipedia.org/wiki/ANSI_escape_code).

This mainly solves a bug where some attributes weren't reset by `\033[0m` (or `\033[m`).

Update it with

console
$ pip install -U cusser


Changes

- Corrected behavior of `Attribute.NORMAL` (e.g., `\033[0m`), which now resets all other attributes (26ff5070d86ce813b3bcc7c27b9c519e414dba0e)

cusser is [released under the MIT open-source license](https://github.com/getcuia/cusser/blob/main/LICENSE).

0.1.0

This is the first release of **cusser** 🎉, a lightweight [curses](https://docs.python.org/3/library/curses.html) wrapper that understands [ANSI escape code sequences](https://en.wikipedia.org/wiki/ANSI_escape_code).

cusser wraps a curses standard window object and intercepts ANSI escape code sequences with the help of [stransi](https://github.com/getcuia/stransi).

Install it with

console
$ pip install cusser


Notable features

- Never worry about initializing colors or color pairs: they are managed for you (36cf2b688b1e5f23b2190747574ac935089a5a44)
- Drop-in wrapper for the [standard curses module](https://docs.python.org/3/library/curses.html) API (34ccbdf05d04f103a401906e64520da1ba26e561)
- Wide range of [recognized ANSI Sequences](https://github.com/getcuia/stransi/blob/main/FEATURES.md#recognized-ansi-sequences) (thanks for stransi ✨, see links for details):
- 🕺 [Styling attributes](https://github.com/getcuia/stransi/blob/main/FEATURES.md#styling-attributes) (**bold**, _italic_, etc., 68f114dc093ed21cd4a2a95c6447059b0c9a6967)
- 🦩 [Colors](https://github.com/getcuia/stransi/blob/main/FEATURES.md#colors) (no need to initialize anything, 36cf2b688b1e5f23b2190747574ac935089a5a44)
- 🏃 [Cursor movement](https://github.com/getcuia/stransi/blob/main/FEATURES.md#csi-control-sequence-introducer-sequences) (both **relative** and **absolute** movements, 8c932e8920e70dee4c4667e4b833eeaf1eefe515)
- 🛁 [Basic screen and line clearing](https://github.com/getcuia/stransi/blob/main/FEATURES.md#csi-control-sequence-introducer-sequences) (ada4a0e4763f6ce608a654db65099ddc9c85ae54, **clearing _before_ the cursor is not yet implemented**, 6)
- Only one dependency: [stransi](https://github.com/getcuia/stransi)
- Python 3.8+

cusser is [released under the MIT open-source license](https://github.com/getcuia/cusser/blob/main/LICENSE).

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.