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

Release files for pysciiart 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysciiart 0.3.0
File Size Uploaded
pysciiart-0.3.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysciiart 0.3.0
File Interpreter ABI Platform
pysciiart-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.6 kB

Release files / pysciiart-0.3.0.tar.gz

Download URL pysciiart-0.3.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b962777313859d993ca723dca8e6d3d550681b620b14c01deffebe82557fcd9a
BLAKE2b-256 checksum
How to use checksums
8983b745c34bbd2fe2093be1ed2778243e7839c9e763844fcccf650e707dc601
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / pysciiart-0.3.0-py3-none-any.whl

Download URL pysciiart-0.3.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fe54efd58ac8f5ca4e7f73d257151f210bebb0a04a31e8e4d6009282a100860
BLAKE2b-256 checksum
How to use checksums
bd3bc6a245359359ae0f0e4d2ff0187efcf4cfa42ff89f4b86ba67e9e53a7755
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.11

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page