TopoVec
TopoVec is a Python toolkit for constructing, analyzing, and visualizing 3D vector and director fields, with a focus on topological solitons and liquid-crystal workflows.
Quick Start
Install TopoVec into a fresh project environment:
uv init my_topovec_project
cd my_topovec_project
uv add topovec
Add the extras needed for your workflow, for example notebook rendering:
uv add "topovec[marimo,mgl]"
See the installation guide for the extras and their features, and for adding dependencies to an existing installation.
Highlights
- 3D vector-field and director-field workflows on structured grids.
- Ansatz, coordinate-system, section, and I/O helpers for field construction.
- Multiple rendering backends and notebook-oriented exploration workflows.
- A dockable PySide6 desktop viewer for browsing NPZ/SAD states via
topovec view.
Project Layout
src/topoveccontains the main package, including the core abstractions, ansatz helpers, and optional backend integrations.notebookscontains demo and workflow notebooks.docscontains the Sphinx/MyST documentation sources and API reference.testscontains regression and API-level tests.
Getting Started
- Installation: docs/guides/installation.md
- Notebooks and interactive workflows: docs/guides/notebooks.md
Desktop Viewer
topovec view is the native desktop frontend for TopoVec. It opens .npz and .sad
state files in a dockable PySide6 window with built-in topovec.mgl scenes,
auto-generated property controls, Python reproduction snippets, recent-files
history, and high-resolution image and video export.
Install the viewer with OpenGL rendering, SAD support, Taichi optics and video export:
uv tool install "topovec[view]"
For the CuPy/CUDA optical scenes, including Marching Wave and Local FDFD, use the combined set (also when adding CUDA to an existing viewer installation):
uv tool install "topovec[view,cuda]"
The CUDA extra requires a compatible NVIDIA GPU and driver. Help → About TopoVec lists features, detected dependencies and the extras that provide them.
For a one-shot launch with the standard viewer dependencies:
uv tool run --from "topovec[view]" topovec view
With a persistent installation, launch the desktop viewer with:
topovec view path/to/state.npz
topovec view path/to/trajectory.sad path/to/other_state.npz
On Linux, topovec view may show OpenGL compositing artifacts under Qt Wayland on
some systems. If you see overbright or unstable rendering, prefer the X11 Qt
backend:
QT_QPA_PLATFORM=xcb topovec view path/to/state.npz
Current topovec view scope:
- One active central viewport with dockable source, property, and snippet panels.
- Read-only browsing of NPZ and SAD states.
- Built-in
topovec.mglscenes with auto-generated property controls. - High-resolution image export from the current render state.
- Video export from trajectories using the live render session.
Documentation
The documentation sources live in docs/ and the canonical hosted target is
Read the Docs.
The English Mathematical Reference and Visual Atlas
defines the quantities, numerical approximations, and display parameters of
the built-in scenes. Its LaTeX sources and reproducible illustrations live in
tex/visualization/, with tex/visualization_reference.tex as the entry point.
To build the documentation locally:
uv run --extra docs --extra mgl --extra marimo --extra matplotlib --extra ti --extra sad sphinx-build -b html docs docs/_build/html
Development
Developer-oriented repository notes and common operations are documented in DEVELOPMENT.md.
Metadata
Release files for topovec 0.2.5
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 |
|---|---|---|---|---|
| topovec-0.2.5.tar.gz | 894.0 kB | Without provenance | Details for topovec-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| topovec-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for topovec-0.2.5-py3-none-any.whl |
Total release size: 1.9 MB
Release files / topovec-0.2.5.tar.gz
| Download URL | topovec-0.2.5.tar.gz |
|---|---|
| Size | 894.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
816801af101812591a2e2692c5139c206cc04057a3e250912b775b2ebbbeca0c
|
|
BLAKE2b-256 checksum How to use checksums |
2c92c0180a2be045d2afe7a695127f626844e96c704348ae52dcc812dc9b3f03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|
Release files / topovec-0.2.5-py3-none-any.whl
| Download URL | topovec-0.2.5-py3-none-any.whl |
|---|---|
| Size | 977.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
022b34e97450b5ee56c3ac31a89440b9bc721b8886696439fa6d342852146bd4
|
|
BLAKE2b-256 checksum How to use checksums |
8479dfa5bc54ae0cc03469b902c3a8e44db8002cd336caa2b14d0c1e56f64184
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.21
|
Security for topovec 0.2.5
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.