Chafa.py

Latest version: v1.1.1

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

Scan your dependencies

1.1.1

Bugs squashed
- :bug: Fixed an issue where using `get_device_attributes()` threw an error if using the Kitty terminal emulator.

**Full Changelog**: https://github.com/GuardKenzie/chafa.py/compare/v1.1.0...v1.1.1

If you are having trouble, head over to the [discussions](https://github.com/GuardKenzie/chafa.py/discussions) and if you find a bug, please open an [issue](https://github.com/GuardKenzie/chafa.py/issues).


Have fun
:heart:

1.1.0

Summary
Added support for raw color values in the canvas and improved detection for Sixels capable terminals.

New stuff
- :pager: Added a function `chafa.get_device_attributes` that returns a list of the device attributes returned by the control sequence `\e[c` on xterm.
- :printer: The `TerminalCapabilities` class now has a printable representation and can be compared using `==` with two `TerminalCapabilites` being equal if both their `canvas_mode` and `pixel_mode` attributes match
- :art: Added `raw_bg_color` and `raw_fg_color` properties to `CanvasInspector`. These allow users to specify raw color values, (`0xRRGGBB` in truecolor mode or e.g. integer from `[0-255]` in `INDEXED_256` mode)
- :hammer: Building from source is now available again. You just have to make sure `glib-2.0` and `libchafa` are on your path.

Bugs squashed
- :bug: The `TermInfo.detect_capabilities()` funciton now more accurately detects Sixels capable terminals. (specifically it detects those that have a `4` in their device attributes emitted by `\e[c`)
- :bug: The `TermSeq`, `ColorSpace` and `ColorExtractor` enumerators can now be imported properly.
- :bug: Indexing the `Canvas` with negative x or y values is no longer broken.


**Full Changelog**: https://github.com/GuardKenzie/chafa.py/compare/v1.0.2...v1.1.0

If you are having trouble, head over to the [discussions](https://github.com/GuardKenzie/chafa.py/discussions) and if you find a bug, please open an [issue](https://github.com/GuardKenzie/chafa.py/issues).


Have fun
:heart:

1.0.2

Not secure
Summary
This release enables Intel MacOS users to enjoy chafa.py!

Changelog
- 🍎 Added support for intel Macs
- 🚀 the `chafa.loader` module now searches the `MAGICK_HOME` environment variable on mac and linux to locate ImageMagick. This comes with a substantial performance improvement on import.

If you are having trouble, head over to the [discussions](https://github.com/GuardKenzie/chafa.py/discussions) and if you find a bug, please open an [issue](https://github.com/GuardKenzie/chafa.py/issues).

Have fun
:heart:

1.0.1

Not secure
Summary
This release enables Windows users to enjoy chafa.py!

This release also changes the license from GPL-3.0 to LGPL-3.0. Check out the [release announcement](https://github.com/GuardKenzie/chafa.py/discussions/8) to learn why.

Changelog
- 🪟 Added support for Windows
- 🚀 Very minor performance improvements

If you are having trouble, head over to the [discussions](https://github.com/GuardKenzie/chafa.py/discussions) and if you find a bug, please open an [issue](https://github.com/GuardKenzie/chafa.py/issues).

Have fun
:heart:

1.0.0

Not secure
Summary
This is the inital release of chafa.py! Python bindings for [chafa](https://github.com/hpjansson/chafa).

This module is almost up to feature parity with chafa. The only things missing are
- Emitting control sequences
- Adding, getting and using built in glyphs with symbol maps.
- Setting getting and emitting terminal sequences
- Using raw color in the canvas

Feel free to submit a PR if you are interested in implementing any of these!

How to get started?
Head over to the docs at [chafapy.mage.black](https://chafapy.mage.black/). There you will find
- 🖌️ [Examples](https://chafapy.mage.black/usage/examples.html)
- 🎓 A [tutorial](https://chafapy.mage.black/usage/tutorial.html)
- 🚀 [Installation](https://chafapy.mage.black/usage/installation.html) instructions
- 📄 API docs

If you are having trouble, head over to the [discussions](https://github.com/GuardKenzie/chafa.py/discussions) and if you find a bug, please open an [issue](https://github.com/GuardKenzie/chafa.py/issues).

Have fun
:heart:

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.