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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pysciiart-0.3.0.tar.gz | 13.3 kB | Without provenance | Details for pysciiart-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysciiart-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pysciiart-0.3.0-py3-none-any.whl |
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
|
Security for pysciiart 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.