Skip to main content

Add your description here

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

laypy-0.0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

laypy-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file laypy-0.0.1.tar.gz.

File metadata

  • Download URL: laypy-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.11

File hashes

Hashes for laypy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d76c24ffd5f9f346e8f09e4a3b729bb6de22af4f0ff920eba8c4a392bc15ba15
MD5 b7f6a740d7377e72f45f276c452e5452
BLAKE2b-256 93132ad744211e549a09e360ecd5b79b1312225ab186c64f3b8b4a008d154b73

See more details on using hashes here.

File details

Details for the file laypy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: laypy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.11

File hashes

Hashes for laypy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee2546d45148d0c09870441674317932e76b39dbf0870ef89a1100e0f92f85a2
MD5 68fa00267dbdd1d32d270c5f16c7bb7a
BLAKE2b-256 c83f0dafeb4e546f2472646772d7fab0def62eeeeb502ee817fd11021ff7a0a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page