Skip to main content

Laypy (WIP)

Laypy is a Python binding for the layout, an engine for graphviz, providing efficient graph visualization and layout capabilities.

Features

  • Fast graph layout algorithms implemented in Rust
  • Seamless Python integration
  • Compatible with common Python graph libraries
  • Multiple layout algorithms (force-directed, hierarchical, radial, etc.)
  • Customizable node and edge styling
  • Export to various formats (SVG, PNG, PDF)
  • No need to install Graphviz separately

Installation

pip install laypy

Requirements

  • Python 3.8+

Quick Start

import laypy

# Create a simple graph
graph = laypy.Graph()

# Add nodes
graph.add_node("A")
graph.add_node("B")
graph.add_node("C")

# Add edges
graph.add_edge("A", "B")
graph.add_edge("B", "C")
graph.add_edge("C", "A")

# Apply a layout algorithm
layout = laypy.ForceDirected(graph)
layout.compute()

# Export the result
layout.to_svg("my_graph.svg")

Documentation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

TODO list

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • The Rust layout project
  • GraphViz team

Metadata

Release files for laypy 0.0.1

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

Source distribution (sdist)

Source distribution for laypy 0.0.1
File Size Uploaded
laypy-0.0.1.tar.gz 2.2 kB Details

Built distribution (wheel)

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

Total release size: 4.9 kB

Release files / laypy-0.0.1.tar.gz

Download URL laypy-0.0.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d76c24ffd5f9f346e8f09e4a3b729bb6de22af4f0ff920eba8c4a392bc15ba15
BLAKE2b-256 checksum
How to use checksums
93132ad744211e549a09e360ecd5b79b1312225ab186c64f3b8b4a008d154b73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.11

Release files / laypy-0.0.1-py3-none-any.whl

Download URL laypy-0.0.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee2546d45148d0c09870441674317932e76b39dbf0870ef89a1100e0f92f85a2
BLAKE2b-256 checksum
How to use checksums
c83f0dafeb4e546f2472646772d7fab0def62eeeeb502ee817fd11021ff7a0a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.11

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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