Skip to main content

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 Hyper's viewer separately from the Hyper repository. From its checkout:

cargo install --path . --locked

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 hyper on PATH. 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.0

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

Source distribution (sdist)

Source distribution for hypergraph-viz 0.1.0
File Size Uploaded
hypergraph_viz-0.1.0.tar.gz 70.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for hypergraph-viz 0.1.0
File
hypergraph_viz-0.1.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
hypergraph_viz-0.1.0-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.0-cp310-abi3-macosx_11_0_x86_64.whl CPython 3.10 abi3 macOS 11.0+ x86-64 Details
hypergraph_viz-0.1.0-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.0.tar.gz

Download URL hypergraph_viz-0.1.0.tar.gz
Size 70.4 kB
Tags Source
SHA-256 checksum
How to use checksums
81657eb50e98df89b8aba2152e5c53461d6c413e5022b3bb41d540e134afc00f
BLAKE2b-256 checksum
How to use checksums
495497c281a302edf5b72b7e0ef4a1e9bd4a16a3b262e7870a66992ab8db4a2f
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

Release files / hypergraph_viz-0.1.0-cp310-abi3-win_amd64.whl

Download URL hypergraph_viz-0.1.0-cp310-abi3-win_amd64.whl
Size 1.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a96cb33f6fc87e02156770f925bdbd194add7453c11077ceaba66b73d1eafff7
BLAKE2b-256 checksum
How to use checksums
539076e4f1091e676e7c2dbd0dc49c4399e13f427ccac143e5cae159daa631f2
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

Release files / hypergraph_viz-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL hypergraph_viz-0.1.0-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
9de8e84605698b82d5fdf0d7812febe24e447184ca55101accfd433edeb8ccda
BLAKE2b-256 checksum
How to use checksums
e3a6fb18a5ccecb7c5ed799c36f01e5762b2b10eead469ecb80bfa5d812fa15b
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

Release files / hypergraph_viz-0.1.0-cp310-abi3-macosx_11_0_x86_64.whl

Download URL hypergraph_viz-0.1.0-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
7712c2cb7bbe3358a54cf15a19da20c82547571f062d765f584309c1a3e443e7
BLAKE2b-256 checksum
How to use checksums
b24ad50bdc9aaceb7831fa61b94d9031b5b833405241d0373fd29e84b62e972b
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

Release files / hypergraph_viz-0.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL hypergraph_viz-0.1.0-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
e26fa4298228addb44433c7e7a514f12514e602e2bf407b98a1603e7fb8bb486
BLAKE2b-256 checksum
How to use checksums
22540f15e1d8dc652a78f185d9b686892b4d07605b151c863e98abbe57484256
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

Release history Release notifications | RSS feed

0.1.2

5 release files

This release

0.1.0 This release

5 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