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.dev2.tar.gz (8.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.dev2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysciiart-0.3.0.dev2.tar.gz
  • Upload date:
  • Size: 8.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.dev2.tar.gz
Algorithm Hash digest
SHA256 ce6ef36aaafefdc08f6c2c4fe14221ae6f11c290eff0a785eff439989b010d24
MD5 4f17646032fa669d1e6a9938ec4dc839
BLAKE2b-256 8450cbe2bf27dd570d62ae2e56f3db60843aee0184b46d68584bdf1e26ea2bbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysciiart-0.3.0.dev2-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.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 77751b0058b5d73b52967e1a936355f635cd04dba61f26b00fa17aba236aca3d
MD5 5b8565214463b55685d136677915c26b
BLAKE2b-256 676e32765ddcb2162604ffe4275a8e7bad012e14bf44f5d43a64ffcb72e6f4cc

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