Skip to main content

A set of python libraries used to generate ASCII art from high level data structures.

Project description

PyPI version

pysciiart

A Python library for generating ASCII art from high-level data structures. Create structured text layouts, diagrams, and graphs with automatic positioning and linking.

Features

  • Widget-based rendering system with containers, borders, padding, and text components
  • Automatic graph layout with intelligent node positioning and link routing
  • Color support via termcolor for terminal output
  • Flexible composition of complex ASCII diagrams from simple components

Installation

Install from PyPI:

pip install pysciiart

For development:

poetry install
poetry shell

Quick Start

from pysciiart.widget import Border, Paragraph, VBox

# Create simple text widgets
title = Border(Paragraph(["My Diagram"]), title="Main")
content = Border(Paragraph(["Content here", "More content"]))

# Compose into layout
layout = VBox([title, content])

# Render to ASCII
print(layout.render())

Development

Running Tests

poetry run pytest
poetry run pytest --log-cli-level=INFO  # with detailed logging

Building

poetry build  # Creates wheel and source distributions

Deployment

  1. Update version in src/pysciiart/__init__.py and pyproject.toml
  2. Commit and tag with version number
  3. Build: poetry build
  4. Upload: poetry publish

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

pysciiart-0.3.0.dev1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

pysciiart-0.3.0.dev1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file pysciiart-0.3.0.dev1.tar.gz.

File metadata

  • Download URL: pysciiart-0.3.0.dev1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for pysciiart-0.3.0.dev1.tar.gz
Algorithm Hash digest
SHA256 49774dd7f0d75fe628cd80f10c77646f9552be5b12ff8ecfce7c34fc4a4d6437
MD5 a1684167603ee7c00e3e4a6095f6103c
BLAKE2b-256 99856aa62befcaeee9db7500e3b6d47cd8bb7d5d2b7c3f1c8a98383a85a5ead8

See more details on using hashes here.

File details

Details for the file pysciiart-0.3.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: pysciiart-0.3.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for pysciiart-0.3.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 c54c8d8bbba28bd3789886cd5af5402746ebdcf2e4e760b9f9571f2e9695d374
MD5 20ee9527dc84bb981dfd5f5fcb6826d8
BLAKE2b-256 509e7a3be6f949b3ea003347804566048a5bd6df74482dc1c7f13f18aea0f8f5

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