Skip to main content

A hybrid CLI tool for ASCII art generation with terminal and web preview modes.

Project description

Asciify Term

PyPI - Version Python License PyPI - Downloads

Asciify Term is a modern, cross-platform CLI utility that renders high-resolution images as ASCII art directly in your terminal.

Originally built as a creative toy, it has evolved into a powerful DevOps utility for verifying image assets in headless environments (SSH, Docker, WSL) where GUI viewers are unavailable. It supports local files, remote URLs, and TrueColor rendering.

🚀 Features

  • Terminal-First Workflow: Instantly render images to stdout with zero configuration.
  • Headless Support: Perfect for verifying plot.png or asset files on remote servers via SSH.
  • URL Support: Fetch and render images directly from the web (http://...) without manual downloading.
  • TrueColor Support: Renders images in full 24-bit ANSI color.
  • Smart Resizing: Automatically fits the output to your current terminal window dimensions.
  • Export Options: Save outputs as plain text .txt or color-preserving .html.
  • Legacy Interactive Mode: A guided menu system for creative exploration.

Installation

Install directly from PyPI:

pip install asciify-term

Usage

1. The Quick Scan (Default)

The primary use case is to quickly view an image in your terminal. The output automatically scales to fit your window.

# Local File
asciify -i image.jpg

# Remote URL
asciify -i https://example.com/logo.png

2. Color Mode

To view the image with its original colors (using ANSI escape codes):

asciify -i image.jpg --color

3. Saving Output

You can save the generated art to a file instead of (or in addition to) printing it.

Save to current directory (Auto-named):

asciify -i image.jpg -s
# Creates: ascii_image_TIMESTAMP.txt

Save with custom name/location:

# Save as specific filename (no extension needed)
asciify -i image.jpg --output-file-name my_art

# Save to a specific folder
asciify -i image.jpg --output-folder ./art_gallery

Save as HTML (Preserves Color):

asciify -i image.jpg --color --html

4. Customizing Dimensions

By default, asciify fits the image to your terminal. You can override this:

# Force specific width (Height auto-calculated)
asciify -i image.jpg --width 100

# Force specific width AND aspect ratio
asciify -i image.jpg --width 100 --aspect-ratio 2.0

# Downsize by a factor of 4
asciify -i image.jpg --downsize 4

5. Managing Charsets

You can change the characters used for rendering (e.g., standard ASCII, blocks, braille).

List available charsets:

asciify --show-charsets

Use a specific charset for one run:

asciify -i image.jpg -c blocks

Set a new default charset (Persistent):

asciify --set-charset blocks
# All future runs will now use 'blocks' by default

Advanced: Interactive Mode

For a more guided, "creative" experience with animations and previews, use the --full flag. This launches the legacy interactive menu.

asciify --full

Configuration Reference

Flag Description
-i, --input-file Path to local image OR URL (http://...).
--color Enable TrueColor ANSI output.
-s, --save Save output to current directory.
--output-folder Specify folder for saved output.
--output-file-name Specify filename (without extension).
--html Save as .html file.
--width Set target width.
--height Set target height.
--aspect-ratio Force specific aspect ratio.
--downsize Downsize image by factor n.
-c, --charset Use specific charset string.
--show-charsets List all built-in charsets.
--set-charset Set default charset preference.
--full Launch legacy interactive mode.

License

Distributed under the MIT License. See LICENSE for more information.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

asciify_term-0.5.0-cp314-cp314-win_amd64.whl (135.8 kB view details)

Uploaded CPython 3.14Windows x86-64

asciify_term-0.5.0-cp314-cp314-manylinux_2_24_x86_64.whl (283.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64

asciify_term-0.5.0-cp314-cp314-macosx_11_0_arm64.whl (241.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

asciify_term-0.5.0-cp313-cp313-win_amd64.whl (135.8 kB view details)

Uploaded CPython 3.13Windows x86-64

asciify_term-0.5.0-cp313-cp313-manylinux_2_24_x86_64.whl (283.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64

asciify_term-0.5.0-cp313-cp313-macosx_11_0_arm64.whl (241.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

asciify_term-0.5.0-cp312-cp312-win_amd64.whl (135.7 kB view details)

Uploaded CPython 3.12Windows x86-64

asciify_term-0.5.0-cp312-cp312-manylinux_2_24_x86_64.whl (283.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64

asciify_term-0.5.0-cp312-cp312-macosx_11_0_arm64.whl (241.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file asciify_term-0.5.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for asciify_term-0.5.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 93dbf35009e0cf10c0cc6068b6dff0427a0aa3bde14b4e6a9c0ebb2dbf0cf21e
MD5 727e3b0dc5bbd13b8d81bdc3116b5d55
BLAKE2b-256 d61115f2033c27a3df650139749f50e7cb6c7aa62a1372ae3a7c7100799ad2e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciify_term-0.5.0-cp314-cp314-win_amd64.whl:

Publisher: release.yml on V33010/asciify

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

File details

Details for the file asciify_term-0.5.0-cp314-cp314-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for asciify_term-0.5.0-cp314-cp314-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 5ad6559cfc1d726a5c7d467c597fd88ebb6ff6d8aa3b5117736c9f66b0fc005a
MD5 b22e388b9c34e0e441b568b5b2020af2
BLAKE2b-256 3b7307698b16a4780c2942dc49962a643bcd041b639cdc6f2efc267669f2505d

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciify_term-0.5.0-cp314-cp314-manylinux_2_24_x86_64.whl:

Publisher: release.yml on V33010/asciify

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

File details

Details for the file asciify_term-0.5.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for asciify_term-0.5.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6cb0ea60a045bf51d1a29e83feb775e1390999628ca592dbb76972c3a24efd07
MD5 fb2dbb29e9d6722dcb101ca0775e2639
BLAKE2b-256 621c0d0aabae56a85308140b05d0cf92d6b4177ed285cd88197b782c146f0767

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciify_term-0.5.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: release.yml on V33010/asciify

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

File details

Details for the file asciify_term-0.5.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for asciify_term-0.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c4f33ed092cbc1211a388309fb4a3b50132ca6e39412e11b0da30f2b1a7c6a70
MD5 e94e05b8641302f2445ac57186278cc4
BLAKE2b-256 05048075b3982b65893c7ee1a3691777d2429aca811692ec4cedfa42b90a89c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciify_term-0.5.0-cp313-cp313-win_amd64.whl:

Publisher: release.yml on V33010/asciify

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

File details

Details for the file asciify_term-0.5.0-cp313-cp313-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for asciify_term-0.5.0-cp313-cp313-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 1a62abeae1842a5a41e3763f4daeb6ad7a9ce4dd39c1112325d013d9890f9d9d
MD5 d9ed5f20468140bde689b28b0f2d64c2
BLAKE2b-256 859c049aa183e0bacceedd1c50db1d3c318d3bdc1e0d88574ade2a5891381a26

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciify_term-0.5.0-cp313-cp313-manylinux_2_24_x86_64.whl:

Publisher: release.yml on V33010/asciify

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

File details

Details for the file asciify_term-0.5.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for asciify_term-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3454d70b780e1277c706fd13476806321f17fe36a84aba1017cbe253fdf70548
MD5 b9449d8922afeb8b046db76dddb524b6
BLAKE2b-256 ac7fe747674fad8fe845e97c54225dd05c9db3b63a9324986853093c12c4f7e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciify_term-0.5.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on V33010/asciify

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

File details

Details for the file asciify_term-0.5.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for asciify_term-0.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f522a4b46e138d98da4543899c1aa75febead977ea0f1e00d2abc7402978087f
MD5 84a0f4231deeed278904aff6e7324dc5
BLAKE2b-256 55245a243e17cced841b9e5ac09c0bd444c1e21e73cbdf55805f6dec466932a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciify_term-0.5.0-cp312-cp312-win_amd64.whl:

Publisher: release.yml on V33010/asciify

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

File details

Details for the file asciify_term-0.5.0-cp312-cp312-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for asciify_term-0.5.0-cp312-cp312-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 d3bd1af77871525dd2989a8c2350d399ef11d103ac215a5a04d031f556903b41
MD5 2a0619dd267813ad90c9ecad740f6f4f
BLAKE2b-256 63ba4023bbfd4ff0622eb33ad464c06ff93a0a9749b2edac991fd92bad0284ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciify_term-0.5.0-cp312-cp312-manylinux_2_24_x86_64.whl:

Publisher: release.yml on V33010/asciify

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

File details

Details for the file asciify_term-0.5.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for asciify_term-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4d3cc28ee003c8dbccf8374bb2271af3a104a1e6d8a6f9bbabc764e05b8aa45
MD5 7326b20c7d940c57652b961fce1e1ea9
BLAKE2b-256 68642bdc7832ba1eba77c4450bd6decf9ede15c1f525a5e63bf223d7baa3de38

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciify_term-0.5.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on V33010/asciify

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