Python API reference¶

Most users will find the Python interface to metatensor to be the most convenient to use. This interface is built on top of the C API, and can be installed independently. The functions and classes provided in metatensor can be grouped as follows:

Some modules are part of the advanced API that most users should not need to interact with:

The Python interface also provides multiple operations, including mathematical, logical, and other utility functions that can applied on these core objects. These are part of a separate python package (metatensor-operations, installed by default when installing metatensor); and documented in the corresponding section.