XelToFab
CLI Reference

xtf formats

List supported input formats and their availability

Usage

xtf formats

Displays a table of all supported input file formats, their file extensions, whether the required dependency is installed, and how to install any missing dependencies.

This command takes no arguments or options.

Example output

uv run xtf formats
Format     Extensions           Status       Install
-----------------------------------------------------------------
numpy      .npy, .npz           available    (built-in)
matlab     .mat                 available    (built-in, via scipy)
csv        .csv, .txt           available    (built-in)
vtk        .vtk, .vtr, .vti    available    uv add --optional vtk pyvista
hdf5       .h5, .hdf5, .xdmf   missing      uv add --optional hdf5 h5py

Format details

FormatExtensionsDependencyNotes
NumPy.npy, .npzNone (built-in)For .npz archives, use -f / --field-name to select the array
MATLAB.matNone (built-in)Use -f / --field-name to select a variable
CSV.csv, .txtNone (built-in)Flat data; use --shape to reshape (e.g., --shape 100x200)
VTK.vtk, .vtr, .vtipyvistaInstall with uv add --optional vtk pyvista
HDF5.h5, .hdf5, .xdmfh5pyInstall with uv add --optional hdf5 h5py

Formats with a "missing" status can still be installed after the fact. Once the dependency is available, the format becomes usable without reinstalling XelToFab.

Outline