Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.58 KB

File metadata and controls

43 lines (29 loc) · 1.58 KB

NIXL Python API

The Python API can be found at src/api/python/_api.py. These are the pythonic APIs for NIXL, if more direct access to C++ style methods are desired, the exact header implementation of src/api/cpp is done through pybind11 that can be found in src/bindings/python.

Python API Features

The Python bindings provide access to the full NIXL API including:

  • Agent Management: Create and configure NIXL agents
  • Memory Registration: Register and deregister memory/storage
  • Transfer Operations: Create and manage data transfers
  • QueryMem API: Query memory/storage information and accessibility
  • Backend Management: Create and configure different backends (UCX, GDS, etc.)

Installation

From PyPI

The nixl python API and libraries, including UCX, are available directly through PyPI:

pip install nixl

From Source

To build from source, follow the main build instructions in the README.md, then install the Python bindings:

# From the root nixl directory
pip install .

Examples

See the Python examples directory for complete working examples including: