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.5",
    "inkline>=1.0.5"
]

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.5-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inkline-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b3046e665a69c3e04cfed8d25a135c29e8db900e80fe86f28bc970206e7bbced
MD5 dbf756df14aa700d919f630e3d3d35b5
BLAKE2b-256 46a80b05664ea910ee7a5960be391edb28576301db10a0679e897f35aaa911be

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