Python SDK for creating, running and managing simulations on NVIDIA Air
Project description
Air SDK
This project provides a Python SDK for interacting with the NVIDIA Air API.
Documentation
For detailed tutorials and examples on how to use the Air SDK, please refer to the documentation README in the docs directory. There you'll find Jupyter notebooks with code examples covering various SDK features such as ZTP scripts and simulation import/export.
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.
# Install Python 3.10
brew install python@3.10 # MacOS
apt-get install python3.10 # Ubuntu/Debian
sudo pacman -S python310 # Arch
# Install, create and activate a Python 3.10 virtual environment
python3.10 -m pip install virtualenv
python3.10 -m virtualenv venv
. venv/bin/activate
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.
License
MIT License - see LICENSE file for details
This project will download and install additional third-party open source software projects. Review the license terms of these open source projects before use.
Contributing
This project is currently not accepting contributions.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nv_air_sdk-1.1.0-py3-none-any.whl.
File metadata
- Download URL: nv_air_sdk-1.1.0-py3-none-any.whl
- Upload date:
- Size: 145.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f6a9c1ba67dd2f0936894306bc8ffc6bd06d13ea6d48cf6c26b5cad4af8bb62
|
|
| MD5 |
789b4169422036a27109b74c86934501
|
|
| BLAKE2b-256 |
6dd7e867afd7433ddd59e176634c1b5bda848b06df6d5215c7d355d57dc027ad
|