nxv
Render NetworkX graphs using GraphViz.
Documentation
Basic Usage
import networkx as nx
import nxv
graph = nx.Graph()
graph.add_edge("A", "B")
graph.add_edge("B", "C")
graph.add_edge("C", "D")
graph.add_edge("B", "E")
style = nxv.Style(
graph={"rankdir": "LR"},
node=lambda u, d: {"shape": "circle" if u in "AEIOU" else "square"},
edge=lambda u, v, d: {"style": "dashed", "label": u + v},
)
nxv.render(graph, style)
Installation
pip install nxv
Development
This repository uses Poetry and Nox to manage the development environment and builds.
To list all Nox sessions:
python -m nox --list-sessions
To run the black code formatter:
python -m nox -rs black
To lint using flake8:
python -m nox -rs lint
To run the test suite:
python -m nox -rs tests
To build the documentation:
python -m nox -rs docs
Metadata
Release files for nxv 0.1.3
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 |
|---|---|---|---|---|
| nxv-0.1.3.tar.gz | 16.2 kB | Without provenance | Details for nxv-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nxv-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for nxv-0.1.3-py3-none-any.whl |
Total release size: 42.4 kB
Release files / nxv-0.1.3.tar.gz
| Download URL | nxv-0.1.3.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51e98bb6490ba4f36bce9a7667d887546fa7ef5910425ba846d759f79c10b655
|
|
BLAKE2b-256 checksum How to use checksums |
b034938f0847f0a822efd06ca3f808cdf9dab58c8b4e546ea143ab1a7a77a894
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-1025-azure
|
Release files / nxv-0.1.3-py3-none-any.whl
| Download URL | nxv-0.1.3-py3-none-any.whl |
|---|---|
| Size | 26.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cdc6f0d1e64176a2a82d1fdfb833bf7e8b4cf89732a39c0a625b3042a8560fc
|
|
BLAKE2b-256 checksum How to use checksums |
7849a8311e60e1f4670232d4290523b9223e8f10c81fa93e631695c89ea591e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-1025-azure
|
Security for nxv 0.1.3
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.