A set of python libraries used to generate ASCII art from high level data structures.
Project description
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
- Update version in
src/pysciiart/__init__.pyandpyproject.toml - Commit and tag with version number
- Build:
poetry build - Upload:
poetry publish
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pysciiart-0.3.0-py3-none-any.whl
(14.3 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b962777313859d993ca723dca8e6d3d550681b620b14c01deffebe82557fcd9a
|
|
| MD5 |
5bbb298c23702c661a3105452dc9cbe1
|
|
| BLAKE2b-256 |
8983b745c34bbd2fe2093be1ed2778243e7839c9e763844fcccf650e707dc601
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fe54efd58ac8f5ca4e7f73d257151f210bebb0a04a31e8e4d6009282a100860
|
|
| MD5 |
73d1a5d74820b0af0ee2fcab6f45e5ad
|
|
| BLAKE2b-256 |
bd3bc6a245359359ae0f0e4d2ff0187efcf4cfa42ff89f4b86ba67e9e53a7755
|