Skip to main content

A terminal image renderer with support for iTerm2, Kitty and fallback modes.

Project description

terminal-qrcode

Python 3.10+ License: MIT

终端二维码图片渲染工具,支持图形协议与字符降级渲染。

📦 安装

uv add terminal-qrcode

✨ Python API

from terminal_qrcode import draw

a = draw("test.png", force_renderer="halfblock")
print(a)

🖼️ 支持的输入格式

  • PNG
  • JPEG
  • WEBP

解码后端:

  • PNG: libpng
  • JPEG: libjpeg-turbo
  • WEBP: libwebp

💻 支持的终端渲染器

  • kitty(Kitty Graphics Protocol)
  • iterm2(Inline Image Protocol)
  • wezterm(iTerm2 兼容协议)
  • sixel(DEC Sixel)
  • halfblock(Unicode 半块字符降级)

🔧 CLI

python -m terminal_qrcode <image_path> [options]

🛠️ 本地开发

uv sync

Windows

uv run --no-project python tools/bootstrap_deps.py
uv sync

📄 License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

terminal_qrcode-0.1.0.tar.gz (44.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

terminal_qrcode-0.1.0-cp313-cp313-win_amd64.whl (349.1 kB view details)

Uploaded CPython 3.13Windows x86-64

terminal_qrcode-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (674.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

terminal_qrcode-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (666.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

terminal_qrcode-0.1.0-cp313-cp313-macosx_15_0_x86_64.whl (602.5 kB view details)

Uploaded CPython 3.13macOS 15.0+ x86-64

terminal_qrcode-0.1.0-cp313-cp313-macosx_15_0_arm64.whl (504.0 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

terminal_qrcode-0.1.0-cp312-cp312-win_amd64.whl (349.1 kB view details)

Uploaded CPython 3.12Windows x86-64

terminal_qrcode-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (674.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

terminal_qrcode-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (666.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

terminal_qrcode-0.1.0-cp312-cp312-macosx_15_0_x86_64.whl (602.5 kB view details)

Uploaded CPython 3.12macOS 15.0+ x86-64

terminal_qrcode-0.1.0-cp312-cp312-macosx_15_0_arm64.whl (504.1 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

terminal_qrcode-0.1.0-cp311-cp311-win_amd64.whl (349.1 kB view details)

Uploaded CPython 3.11Windows x86-64

terminal_qrcode-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (673.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

terminal_qrcode-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (665.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

terminal_qrcode-0.1.0-cp311-cp311-macosx_15_0_x86_64.whl (602.5 kB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

terminal_qrcode-0.1.0-cp311-cp311-macosx_15_0_arm64.whl (504.1 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

terminal_qrcode-0.1.0-cp310-cp310-win_amd64.whl (349.1 kB view details)

Uploaded CPython 3.10Windows x86-64

terminal_qrcode-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (673.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

terminal_qrcode-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (664.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

terminal_qrcode-0.1.0-cp310-cp310-macosx_15_0_x86_64.whl (602.5 kB view details)

Uploaded CPython 3.10macOS 15.0+ x86-64

terminal_qrcode-0.1.0-cp310-cp310-macosx_15_0_arm64.whl (504.1 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

Details for the file terminal_qrcode-0.1.0.tar.gz.

File metadata

  • Download URL: terminal_qrcode-0.1.0.tar.gz
  • Upload date:
  • Size: 44.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for terminal_qrcode-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0372f140058365eba9a8065f60bbe52adf4be84f46ef954d84b54ef256f990c9
MD5 3586be7219201826d84bf9402edc2dff
BLAKE2b-256 afba0fbd446889eeccb4bf8103617352273d02d62ba6eb1b657d59f5e9d26977

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0.tar.gz:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a8b5c9d918ad6fd7a5932559ba34585989eac1cf73321d29e89be68391b04749
MD5 82951ba34a9fc43a5cc1069bfbd5ce3e
BLAKE2b-256 2d251b888cda2d3b1d065ef9bb88c187c3c59a6725fa6a2c56550aba2862616f

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp313-cp313-win_amd64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 107fb9f8c65b79038490ff7782fbbbd9e47ed0b18eca2347f80323abccc2150d
MD5 d334889af8f16a55450959beaf8f409e
BLAKE2b-256 95580545d24a459ad8ae7ab2cf3bf24eac7f3c65f8876b1cee433695101b26ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c9b3722091ba23b74f13243a5981d06dcad5d74af69d2096ed4db1f0ee987acc
MD5 05dc12e5ea2bb2c6266545039143a2d4
BLAKE2b-256 a6b0e6eb1ca4190f12fb200c06299738fe8387967daf8d7516425678606a9c02

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp313-cp313-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp313-cp313-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 b6f7104831ad38aa2f4b79def9ba11114ed80b975e05b177d2f9318304b0604d
MD5 4df0c7e1e265e34430823842919e0819
BLAKE2b-256 2904b12833869639f7fd093e2081eb7bfaef7a8981e1ede46b8259b104459e90

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp313-cp313-macosx_15_0_x86_64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c957d12f98fdaa09dbd2ffe6b6b5ab22c142bfc6fa188292d6292abf33f8aa89
MD5 03d492f44bf393d350326cf14d6da7eb
BLAKE2b-256 d5ecb745940cc005685b0c048475e677662999329cb361b5caa30d8622f7d953

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp313-cp313-macosx_15_0_arm64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ffe7fa8053b205442b5ba4d4ced863dca497ee5fffa84b653f8b4861b740a7f6
MD5 30014cbcb5d32f0fdb226655a7ec166f
BLAKE2b-256 51845f829b9a322eaf622e157414495473a7daa59ab1c6e1de9a66385bb30a28

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp312-cp312-win_amd64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4d159e5e54ade95385d1a0312c37e30e699834d40ebf5d41f19d7b350f099fdf
MD5 d4cb558b782e5e7844c01d68ae1a8bf4
BLAKE2b-256 d8ea25da969c752cfe7a8c1013e63498f5a1c90f4d34f5759b9bb74e1d428381

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a5a6ea3ec1b6b84af83c5a65c6c334d7df0ba2428a125fa66cf06b868eea505b
MD5 33147b7cbdc9cafbef14d4a50d5c94b3
BLAKE2b-256 98a6764fdb9554e4edcfb7c01300a2e0d56b3c6904497e504f9978b3c0bc487b

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp312-cp312-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp312-cp312-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 8c28c6b7ff95a5b1be4e4569881219eb7345c0590fa8ddd1323275fdc9c39da9
MD5 9262efaad10049dac25f993f2ce8a627
BLAKE2b-256 7a7c5ab899c14c8cd810431b03bb25a4f681490eb77f2461999c9515705e138d

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp312-cp312-macosx_15_0_x86_64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 71ff55aca242ba01b0de03dfe9a9154906b0e200c91321ea1dd6a72b6c23f5f7
MD5 70fb91deedfd1b47f8ac306a48d1f63e
BLAKE2b-256 34528ad960a23ec27ab9d53487d39a1300db7978174583510a7236e34ab1bb21

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp312-cp312-macosx_15_0_arm64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fe8f12a8b6664546d63d8b9ccf38944a3eb38cbf22cac97605f54c02e550b760
MD5 6e5128fa19bc3c115199d0ce1c817f87
BLAKE2b-256 8ac72e21a6fd9647ea9656a72888edf8242ac5de4ff8d6d9a756c81166dd7e3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp311-cp311-win_amd64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eeac630d601299daa092ac6dbf1e7954d0cc436f51cda6f822a8f66a7e4848e4
MD5 8b2da15f355d7bfcb21310da631db5ad
BLAKE2b-256 701f8a8d3445ae332cbc72a519ba02bf44797db230268a822cf7b5798778f4d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 29548ef0ac7473b7d050334406c9e44980c595a0238a72c71bb5d1bfe47ad0f7
MD5 832875cffa367c8430e2d3ec4ef9217a
BLAKE2b-256 c806dadc864f2669fd17d34f640c79e76d26791722e4710f2424c0a7f21758b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 fb752d59d48bbe70822aed107a038de6ec088a488d012b59e93dd1d33763d9da
MD5 6aa52fd7b14c1497cfb17af62a7c8f58
BLAKE2b-256 1536fa142f9d0cd4d9094cf5e82d3c0f6dd2fbb5e0004f0d1e95cabed615e7ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp311-cp311-macosx_15_0_x86_64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 14e0bd91d4b60519389f1701786fa7b3096940d9d20a80cfc3165a8a29730e92
MD5 67ae65f11ae7f233d8d4e2149106661e
BLAKE2b-256 14c6710d84c9ff7aec8b2893a71ad2d6244a89b2606e654d3caff633ba6d822a

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp311-cp311-macosx_15_0_arm64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e6f992a42d533a9527196a77a7f72c9568f4a8e545443e5340e31d845a5dbaa5
MD5 470c89ccc3e47fa9c73bcced4f4d8dd7
BLAKE2b-256 83796a84466f5712a102895f3d94048e06085c0aa8cf1602f41381b4f860fba1

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp310-cp310-win_amd64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c1a12924867f07e9fd03012b63b1f14953e8da5df18121518bbf5f084772cd5
MD5 9d12d17093ec317ddbb01fdb59f86adb
BLAKE2b-256 4453c091ff1f0bae9bd82f6c751c222ba8778712e13dc1d2580e95b593fad987

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 88a4420f591f7412ba285e8269f956ddd0c58701559c82297dd209e435b3563d
MD5 c321066f883dfc0263d00ce51011e631
BLAKE2b-256 08c519aba67876ac06154d64b886da21e921afc7130c35fab0f827abf5c598f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp310-cp310-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp310-cp310-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 8cbcc8b4f9719a43c8eb6a634ad97161e8791c6cdb745d06bcd37ba8ec5e1e90
MD5 714ad80ef6cdbd3fefbd0b3157b6cc17
BLAKE2b-256 5614840ef4909e47214d2d1956cf6c62c15b98ea63ff69a3d2f5ff280a241d17

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp310-cp310-macosx_15_0_x86_64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file terminal_qrcode-0.1.0-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for terminal_qrcode-0.1.0-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ac7144ce2cf8d9ab597622dac4316853c8293be5581799ec5d2e8be456a06928
MD5 7aaec7c1d85f81ad3d44038ba50d53db
BLAKE2b-256 d25b444e4b329c3366817dd77a5826ff31d2a89999607c69c52dfd60479f34f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for terminal_qrcode-0.1.0-cp310-cp310-macosx_15_0_arm64.whl:

Publisher: release.yml on L-1124/terminal-qrcode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page