Skip to main content

Advanced ASCII Art rendering library with color support

Project description

inkline-py

Overview

Display colorized ASCII art and info directly in the terminal.

How to use

To use this pypi, add it as a dependency in your pyproject.toml:

dependencies = [
    "chromakitx>=1.0.4",
    "inkline>=1.0.3"
]

Example code:

from inkline import (AsciiArt, InfoConfig)

from chromakitx import AnsiColor

logo: str = """
{2}            .:--::////::--.`
{1}        `/yNMMNho{2}////////////:.
{1}      `+NMMMMMMMMmy{2}/////////////:`
{0}    `-:::{1}ohNMMMMMMMNy{2}/////////////:`
{0}   .::::::::{1}odMMMMMMMNy{2}/////////////-
{0}  -:::::::::::{1}/hMMMMMMMmo{2}////////////-
{0} .::::::::::::::{1}oMMMMMMMMh{2}////////////-
{0}`:::::::::::::{1}/dMMMMMMMMMMNo{2}///////////`
{0}-::::::::::::{1}sMMMMMMmMMMMMMMy{2}//////////-
{0}-::::::::::{1}/dMMMMMMs{0}:{1}+NMMMMMMd{2}/////////:
{0}-:::::::::{1}+NMMMMMm/{0}:::{1}/dMMMMMMm+{2}///////:
{0}-::::::::{1}sMMMMMMh{0}:::::::{1}dMMMMMMm+{2}//////-
{0}`:::::::{1}sMMMMMMy{0}:::::::::{1}dMMMMMMm+{2}/////`
{0} .:::::{1}sMMMMMMs{0}:::::::::::{1}mMMMMMMd{2}////-
{0}  -:::{1}sMMMMMMy{0}::::::::::::{1}/NMMMMMMh{2}//-
{0}   .:{1}+MMMMMMd{0}::::::::::::::{1}oMMMMMMMo{2}-
{1}    `yMMMMMN/{0}:::::::::::::::{1}hMMMMMh.
{1}      -yMMMo{0}::::::::::::::::{1}/MMMy-
{1}        `/s{0}::::::::::::::::::{1}o/`
{0}            ``.---::::---..`
"""

art: AsciiArt = AsciiArt(text=logo, colors=[
    AnsiColor.BrightCyan,
    AnsiColor.BrightBlue,
    AnsiColor.BrightMagenta
], bold=True, info=InfoConfig(
    lines=["Hello World!", "This is Inkline.", "Made with ❤️ in Python.", "Developer: CELESTIFYX Team"]
))

print(art.render())

Result

screenshot

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 Distribution

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

inkline-1.0.4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file inkline-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: inkline-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for inkline-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 07864688420910a3722e28bcf090277f6b56cec36932c0eab29fc2044a7b29fb
MD5 17fe1fc32b29bdc512693493e623e884
BLAKE2b-256 283934c619d6eadafcfba15ec2450ee5cf3dd1f5c08aa79c389ea8e8657d02bf

See more details on using hashes here.

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