Skip to main content

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysciiart-0.3.0.tar.gz
  • Upload date:
  • Size: 13.3 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.tar.gz
Algorithm Hash digest
SHA256 b962777313859d993ca723dca8e6d3d550681b620b14c01deffebe82557fcd9a
MD5 5bbb298c23702c661a3105452dc9cbe1
BLAKE2b-256 8983b745c34bbd2fe2093be1ed2778243e7839c9e763844fcccf650e707dc601

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysciiart-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 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-py3-none-any.whl
Algorithm Hash digest
SHA256 3fe54efd58ac8f5ca4e7f73d257151f210bebb0a04a31e8e4d6009282a100860
MD5 73d1a5d74820b0af0ee2fcab6f45e5ad
BLAKE2b-256 bd3bc6a245359359ae0f0e4d2ff0187efcf4cfa42ff89f4b86ba67e9e53a7755

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page