Official Python SDK for the Wandelbots
Project description
wandelbots-nova
This library provides an SDK for the Wandelbots NOVA API.
The SDK will help you to build your own apps and services on top of NOVA and makes programming a robot as easy as possible.
Requirements
This library requires
- Python >=3.10
Installation
To use the library, first install it using the following command
pip install wandelbots-nova
Optional: Install with nova-rerun-bridge
We recommend installing the library with the nova-rerun-bridge extra to make usage of the visualization tool rerun.
See the README.md for further details.
pip install "wandelbots-nova[nova-rerun-bridge]"
Or add to your pyproject.toml:
wandelbots-nova = { version = ">=0.12", extras = ["nova-rerun-bridge"] }
You need to download the robot models to visualize the robot models in the rerun viewer. You can download the models by running the following command:
poetry run download-models
Usage
Import the library in your code to get started.
from nova import Nova
The SDK also includes an auto-generated API client for the NOVA API. You can access the API client using the api module.
from nova import api
Checkout the 01_basic and 02_plan_and_execute examples to learn how to use the library.
In the this directory are more examples to explain the advanced usage of the SDK.
Development
To install the development dependencies, run the following command
poetry install
Using Branch Versions For Testing
When having feature branches or forks, or might be helpful to test the library as dependency in other projects first. Poetry allows to pull the library from different sources. See the Poetry Doc for more information.
Poetry Version < 2:
wandelbots-nova = { git = "https://github.com/wandelbotsgmbh/wandelbots-nova.git", branch = "fix/http-prefix" }
Poetry Version >=2
wandelbots-nova @ git+https://github.com/wandelbotsgmbh/wandelbots-nova.git@fix/http-prefix
Environment Variables for NOVA Configuration
- Copy the Template: Make a copy of the provided
.env.templatefile and rename it to.envwithcp .env.template .env. - Fill in the Values: Open the
.envfile in a text editor and provide the necessary values for each variable. The table below describes each variable and its usage.
| Variable | Description | Required | Default | Example |
|---|---|---|---|---|
NOVA_API |
The base URL or hostname of the NOVA server instance. | Yes | None | https://nova.example.com or http://172.0.0.1 |
NOVA_USERNAME |
The username credential used for authentication with the NOVA service. | Yes* | None | my_username |
NOVA_PASSWORD |
The password credential used in conjunction with NOVA_USERNAME. |
Yes* | None | my_password |
NOVA_ACCESS_TOKEN |
A pre-obtained access token for NOVA if using token-based authentication. | Yes* | None | eyJhbGciOi... |
Note on Authentication: You can authenticate with NOVA using either username/password credentials or a pre-obtained access token, depending on your setup and security model:
- If using username/password: Ensure both
NOVA_USERNAMEandNOVA_PASSWORDare set, and leaveNOVA_ACCESS_TOKENunset.- If using an access token: Ensure
NOVA_ACCESS_TOKENis set, and leaveNOVA_USERNAMEandNOVA_PASSWORDunset.Only one method should be used at a time. If both methods are set, the token-based authentication (
NOVA_ACCESS_TOKEN) will typically take precedence.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 wandelbots_nova-0.24.1.tar.gz.
File metadata
- Download URL: wandelbots_nova-0.24.1.tar.gz
- Upload date:
- Size: 12.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7bca90dd2238b551fbd28d8dc02160e193fdbe89ca43ccd94dfd26744a47a33
|
|
| MD5 |
3a5fd842052e75ef3bb3f8268e545f31
|
|
| BLAKE2b-256 |
476632207c332d1b0b265b9d71449615c78327236703f99afa760fd07e0e2ba7
|
File details
Details for the file wandelbots_nova-0.24.1-py3-none-any.whl.
File metadata
- Download URL: wandelbots_nova-0.24.1-py3-none-any.whl
- Upload date:
- Size: 12.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdd9f17e067384bcb47b067023fe0c1f10f1aefc67a70e6497c36a2151a67755
|
|
| MD5 |
189ef204b4745f93c96623e4d7f4877c
|
|
| BLAKE2b-256 |
2b28219d3ceeabfa40dc2a48104079a2c15523e764275ba79d4d0ebdc89e7074
|