You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pysciiart

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pysciiart

A set of python libraries used to generate ASCII art from high level data structures.

0.3.0
pipPyPI
Maintainers
1

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

  • Update version in src/pysciiart/__init__.py and pyproject.toml
  • Commit and tag with version number
  • Build: poetry build
  • Upload: poetry publish

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.