Air SDK
This project provides a Python SDK for interacting with the NVIDIA Air API.
Prerequisite
The SDK requires Python 3.10. There are a number of ways to achieve this such as poetry, uv or virtualenv.
The following shows how to achieve this on a few popular OS’s using virtualenv.
Installation (WIP)
- Clone this repo to
/path/to/air-sdk - Navigate to
/path/to/air-sdk pip install -e .
Authentication Options (WIP)
- NGC Device Login with
AirApi.with_device_login(email=<YOUR_EMAIL>, org_num=<YOUR_NGC_ORG_NUMBER>) - NGC CLI Login with
AirApi.with_ngc_config()(or justAirApi()) - Explicitly specify an NGC API Key (also known as a Starfleet API Key, or “SAK”) by instantiating
AirApi.with_api_key(api_key=<YOUR_STARFLEET_API_KEY>)
To use options 2 or 3 you will need to not be on the Northeast GlobalProtect region
And to use option 2 you will need to have the NGC CLI installed and to have configured it with ngc config set. This will create a file at ~/.ngc/config which contains your NGC credentials that will be auto-detected by the Air SDK.
We do not support NGC service keys yet.