Hyper for Python
hypergraph-viz provides Rust-backed Hypergraph Interchange Format (HIF)
validation and interchange, plus a launcher for Hyper's native 3D viewer. Use it
to exchange scientific datasets while retaining metadata and explicit group identities.
The package includes generated extension type stubs, typed Python wrappers, and py.typed.
Installation
python -m pip install hypergraph-viz
Requires standard CPython 3.10 or newer. Platform wheels cover Linux x86_64, macOS arm64/x86_64, and Windows x86_64; installing a compatible wheel requires no Rust compiler. Building from source requires Rust 1.89 or newer and maturin. The Python extension has no Bevy dependency.
Exchange datasets
import hyper_viz
document = hyper_viz.HifDocument.load("dataset.hif.json")
document.save("roundtrip.hif.json")
print(document.to_json())
# Explicitly check compatibility and convert to Hyper's native JSON.
native_json = document.to_hypergraph_json()
HifDocument.from_json(raw) accepts HIF JSON; from_hypergraph_json(raw) accepts
native Hyper JSON. Validation uses a pinned schema bundled with the package and
never fetches resources at runtime.
Keep the original document for scientific export. It preserves JSON values, record order, optional field presence, integer/string IDs, isolated nodes, empty edges, metadata, and incidence properties. Whitespace and object-key order are not preserved.
Launch the native viewer
Install the matching prebuilt desktop viewer with the optional extra:
python -m pip install "hypergraph-viz[viewer]"
Wheels cover Linux x86_64, macOS arm64/x86_64, and Windows x86_64. No Rust compiler or repository checkout is needed on these platforms. A desktop session and graphics driver are required. Linux viewer wheels require glibc 2.28+; macOS wheels target 11.0+. Notebook kernels on remote machines cannot open a window on your laptop; see the notebook prototype roadmap.
Then launch it from Python:
viewer = hyper_viz.show(document, projection="bipartite")
exit_code = viewer.wait()
# Or viewer.close() to terminate and clean up.
Pass executable="/path/to/hyper" to select a binary explicitly; otherwise the
launcher finds the version-matched installed companion, then falls back to
hyper on PATH. It locates the companion through installed-package metadata,
so activating a virtual environment is not required. It launches asynchronously without a shell,
retains an owned temporary snapshot, and cleans up after exit. It does not
download a viewer.
Compatibility and errors
Full-document interchange supports more semantics than viewer conversion.
The viewer supports undirected memberships. Directed and simplicial semantics,
incidence direction/weights/attributes, and duplicate declarations or incidence
pairs produce HifCompatibilityError. Node/edge weights round to finite f32
for viewing; original values remain in the document. Arbitrary attributes are
retained but not exposed by the stock viewer inspector.
Malformed HIF raises HifValidationError. Both exceptions carry location
and reason; file failures raise OSError. Direct scientific object adapters,
notebook embedding, headless layout bindings, and live Python updates are deferred.
See the integration guide and XGI example. Hyper is licensed under MIT OR Apache-2.0; the bundled HIF schema is MIT-licensed.
Metadata
Release files for hypergraph-viz 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hypergraph_viz-0.1.2.tar.gz | 72.9 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| hypergraph_viz-0.1.2-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| hypergraph_viz-0.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| hypergraph_viz-0.1.2-cp310-abi3-macosx_11_0_x86_64.whl | CPython 3.10 | abi3 | macOS 11.0+ x86-64 | Details |
| hypergraph_viz-0.1.2-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 7.5 MB
Release files / hypergraph_viz-0.1.2.tar.gz
| Download URL | hypergraph_viz-0.1.2.tar.gz |
|---|---|
| Size | 72.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a19b786a2d8c0a85e5e9d99e99ad2cd60e4d8a6e5d859db5329b25cf5b44dfd
|
|
BLAKE2b-256 checksum How to use checksums |
3b5b2947fe9ac0b07369365e08a98bcab74f50231a5c592a47c10e891c02f7f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / hypergraph_viz-0.1.2-cp310-abi3-win_amd64.whl
| Download URL | hypergraph_viz-0.1.2-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
bfc5846cd2b5945859105040e1375d8c5576fdfe17650a4bfe59e123596d2837
|
|
BLAKE2b-256 checksum How to use checksums |
75472fca7944cd018900bf24815ab4718ecbbb4b33ba3a285c56dca1173f04b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / hypergraph_viz-0.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | hypergraph_viz-0.1.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
29e6c28ea134ac88510dd14160694f91f430d60b96bea547f0c3cf3062279c65
|
|
BLAKE2b-256 checksum How to use checksums |
4ae7b11bb269757d80e1af56baf8669bcf6188a8d3dcbb93a07e4bcc973fbb14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / hypergraph_viz-0.1.2-cp310-abi3-macosx_11_0_x86_64.whl
| Download URL | hypergraph_viz-0.1.2-cp310-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
1f3a7e3156840fce4c85d3dd07dbcd01e1385701f2044e489aef6fda15882154
|
|
BLAKE2b-256 checksum How to use checksums |
fe264b82e661d4054ae5afdf5eae275ad0182a32dc9a69142e5f8adb1adb1bb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / hypergraph_viz-0.1.2-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | hypergraph_viz-0.1.2-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0ea732552c086c36a4b6c631d9b6012214b1f9b3df9624ca5f6409d361f3a6b7
|
|
BLAKE2b-256 checksum How to use checksums |
fb2906703400c161f87ab18235acb4258fae688cf62bc35bc4a7a31621788ba8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency log