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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| laypy-0.0.1.tar.gz | 2.2 kB | Without provenance | Details for laypy-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| laypy-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for laypy-0.0.1-py3-none-any.whl |
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
|
Security for laypy 0.0.1
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.