Skip to main content

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

For all optional backends:

uv add topovec --all-extras

See docs/guides/installation.md for full installation options.

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/topovec contains the main package, including the core abstractions, ansatz helpers, and optional backend integrations.
  • notebooks contains demo and workflow notebooks.
  • docs contains the Sphinx/MyST documentation sources and API reference.
  • tests contains regression and API-level tests.

Getting Started

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 GUI stack together with the ModernGL backend:

uv tool install 'topovec[view]'

For a one-shot launch without a persistent install, request the same extra explicitly:

uv tool run --from 'topovec[view]' topovec view

Then launch the desktop viewer:

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.mgl scenes 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.

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.1.16

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

Source distribution (sdist)

Source distribution for topovec 0.1.16
File Size Uploaded
topovec-0.1.16.tar.gz 815.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for topovec 0.1.16
File Interpreter ABI Platform
topovec-0.1.16-py3-none-any.whl Python 3 none any Details

Total release size: 1.7 MB

Release files / topovec-0.1.16.tar.gz

Download URL topovec-0.1.16.tar.gz
Size 815.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a8662d26a33662cf619259bbf6e4e3c66027f9ef9ee793ffc4f2a39de997a69e
BLAKE2b-256 checksum
How to use checksums
bb16a3c9eab4232ca915006f745be279bd8732ce3bc83594e2d960de230c7ef2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release files / topovec-0.1.16-py3-none-any.whl

Download URL topovec-0.1.16-py3-none-any.whl
Size 889.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4330c1ea0488c79c4c220962f56518be820e14f9d773346c88bb7e939d3e5369
BLAKE2b-256 checksum
How to use checksums
10d233dbb9dec328f8ebd28709bf948e91f2b2ac9b0ba1421f7e8942700d1e1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release history Release notifications | RSS feed

0.2.1

2 release files

0.2.0

2 release files

0.1.20

2 release files

0.1.19

2 release files

0.1.18

2 release files

0.1.17

2 release files

This release

0.1.16 This release

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 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