ktcat
Display images in a Kitty-compatible terminal by writing Kitty graphics escape sequences to stdout.
What It Does
- Library API:
ktcat(image) - CLI:
ktcat path/to/image.png [more files...] - Supported inputs in the library API include PIL images, NumPy arrays, and Torch tensors.
Development
- Create or update the project environment with
make sync. - Format:
make format - Lint/typecheck:
make lint - Run tests:
make test
Notes
- The package uses a
srclayout;src/ktcat/__main__.pyforwardspython -m ktcatto the samemain()entrypoint used by the installedktcatconsole script. - The published package has no required runtime dependencies. NumPy, Pillow, and Torch support are optional; this repo keeps them in the
devdependency group for tests. - The file-based CLI requires Pillow to open image files. NumPy-backed library inputs can be encoded without Pillow.
Metadata
Release files for ktcat 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ktcat-0.1.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ktcat-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / ktcat-0.1.0.tar.gz
| Download URL | ktcat-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
003248908a5ec08ca147617a6e0921610dc0d52b48e0dd519af73f268f6a376b
|
|
BLAKE2b-256 checksum How to use checksums |
50b405bcf7e252850b813339d79cc92ad10fc9cd85443c84d3460192f53c41df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ktcat-0.1.0-py3-none-any.whl
| Download URL | ktcat-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
419a91d49bbc25f262275e39bfa71c1b05ab893339eea94884510692aa50c316
|
|
BLAKE2b-256 checksum How to use checksums |
fc88459d4f01672b7002cbf07068a3fa0ff85574415ba8700c73f941cc64a62c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|