art Python Library

repository·master·Indexed 25 days ago

https://github.com/sepandhaghighi/art

A Python library for converting text into various forms of ASCII art, including 1-line art, decorated text, and different font modes. It provides utilities for generating ASCII text via text2art() and tprint(), saving art with tsave(), and creating character grids. The library also supports integration with MATLAB and includes a CLI for listing fonts and arts.

Tokens
2.1K
Snippets
9
Records
25
Agent score
81%

What's inside art

  1. Python version compatibility requirements

    master

    Please note the following official support limits for older Python versions:

    • Python 3.6: Supported up to ART 6.4.
    • Python 3.5: Supported up to ART 6.1.
    • Python 2.7 & Python 3.4: Supported up to ART 4.4.

    Support for these older versions on PyPI will be removed in a future release.

  2. Install ART via Conda

    master

    ART is available on Conda through both the public conda-forge channel and a private channel.

    To install from conda-forge:

    conda install -c conda-forge ascii-art

    To install from the private sepandhaghighi channel:

    conda install -c sepandhaghighi art
    conda install -c conda-forge ascii-art
    # OR
    conda install -c sepandhaghighi art
  3. Install and configure ART for MATLAB

    master

    To use ART within MATLAB, follow these steps:

    1. Ensure MATLAB (>=8.5, 64/32 bit) is installed.
    2. Install Python 3.x (>=3.7, 64/32 bit) and ensure you select the Add to PATH and Install pip options during setup.
    3. Install the package via pip: pip install art.
    4. Configure the Python interpreter in MATLAB using the pyversion command with the full path to your Python executable.
    >> pyversion PYTHON_EXECUTABLE_FULL_PATH
  4. Important considerations for fonts

    master

    When working with fonts in art, keep the following limitations in mind:

    • Character Support: Some fonts do not support all characters. Always verify if your input string is compatible with the chosen font.
    • Non-ASCII Compatibility: Non-ASCII fonts (added in Version 3.3) may not be compatible with all terminal or system environments. Use them with caution if your environment has limited character encoding support.