Getting Started
Installation
Install XelToFab and its dependencies
Requirements
- Python 3.13+
- uv (recommended) or pip for installation
Install from PyPI (recommended)
The stable release is available on PyPI:
pip install xeltofabWith optional extras:
pip install "xeltofab[vtk,hdf5]"Or using uv:
uv add xeltofabInstall from source (development)
For the latest development version or to contribute:
git clone https://github.com/xarthurx/XelToFab.git
cd XelToFab
uv syncThis installs all core dependencies: numpy, scipy, scikit-image, trimesh, pydantic, matplotlib, and click.
You can also install the development version directly from GitHub:
pip install git+https://github.com/xarthurx/XelToFab.gitOr with uv:
uv add git+https://github.com/xarthurx/XelToFab.gitOptional format support
Some input formats require additional libraries. Install everything at once:
uv sync --all-extrasOr install individual extras selectively:
| Extra | Command | Adds support for |
|---|---|---|
vtk | uv sync --extra vtk | .vtk, .vtr, .vti files (via PyVista) |
hdf5 | uv sync --extra hdf5 | .h5, .hdf5, .xdmf files (via h5py) |
all-formats | uv sync --extra all-formats | All optional formats |
Verify installation
Check that the CLI is available and see which formats are ready:
uv run xtf --helpList all supported input formats and their availability status:
uv run xtf formatsSee xtf formats for the full list of supported formats and their dependencies.
Running tests
uv run pytest tests/ -v