A Python SDK for Vehicle app
Project description
Vehicle App Python Sdk
The Vehicle App SDK
reduces the effort required to implement Vehicle Apps by using the Velocitas development model for the Python programming language. To create a Vehicle App, please use our Vehicle App Template which uses this sdk.
This includes the following packages:
- velocitas_sdk.vehicle_app - Vehicle App abstraction
- velocitas_sdk.model - Vehicle Model ontology
- velocitas_sdk.config - Vehicle App configuration
- velocitas_sdk.base - Base classes for middleware abstraction
- velocitas_sdk.native - Native middleware definition
- velocitas_sdk.vdb - Vehicle Data Broker integration
- velocitas_sdk.test - Integration test support
- velocitas_sdk.util - Logging and other utilities
Status
Note: The Vehicle App Python SDK is currently under active development in alpha phase.
Prerequisites
- Python 3.10 or later is required to use this package.
Install the package
Install the Vehicle App Python SDK with pip:
pip install git+https://github.com/eclipse-velocitas/vehicle-app-python-sdk.git@<version>
Documentation
- Velocitas Development Model: Learn more about the Velocitas programming model and the SDK
- Velocitas Tutorials: Learn how to get started, including setting up the development environment, creating a Vehicle Model as well as developing and deploying a Vehicle App.
Python Vehicle App SDK Examples
These examples demonstrate how to use the Python Vehicle App SDK:
Example | Description |
---|---|
Array Datatype | Shows a Vehicle Data Broker query that returns an array data point. |
Atomic Set | Shows how to set the values of multiple datapoint actuators in one "atomic" step. |
DataPoint Set | Shows how to set the value of the datapoint actuator value API. |
Dog Mode | Dog-Mode App that demonstrates MQTT communication and invocation of a Vehicle Service over gRPC, the app also subscribes for vehicle data points and sets the cabin temperature. |
Dynamic Rule | Create a Vehicle Data Broker rule with the fluent query methods. |
Static Rule | Create a Vehicle Data Broker rule with the subscribe_to_data_point annotation. |
VDB Queries | Demonstrates various aspects of creating Vehicle Data Broker queries. |
Seat Adjuster | Seat-Adjuster App that demonstrates MQTT communication and seat control via actuator data points. :point_right: This example can only be run from the Vehicle App Template. :point_left: |
All examples (except the Seat Adjuster) can be run via
cd examples
./run-app.sh -a <example-folder-name>
By default the examples are started using the native middleware. Dapr middleware support was recently removed.
Contribution
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
File details
Details for the file velocitas_sdk-0.15.0.dev0.tar.gz
.
File metadata
- Download URL: velocitas_sdk-0.15.0.dev0.tar.gz
- Upload date:
- Size: 63.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d8f458ab7ff931c17ea1e3f856fd9d1225259a0f66ecbd403ad32c4d92626b7 |
|
MD5 | 8d7fc6b8e0c532f5b791b3c554190b53 |
|
BLAKE2b-256 | f117825f0a85da1317a6f4ccff311bce260d55021e254347efff4af347843be5 |
File details
Details for the file velocitas_sdk-0.15.0.dev0-py3-none-any.whl
.
File metadata
- Download URL: velocitas_sdk-0.15.0.dev0-py3-none-any.whl
- Upload date:
- Size: 62.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b81b192c3351ac9f8d501580833dde7e7417eeb60c0cbaf4ec31223f4e1acb31 |
|
MD5 | aafaa9310f99df4f14711de949186392 |
|
BLAKE2b-256 | f70704f480153765e8f8341e423173108d1f881c4c8e7552511f0abbfb488fc4 |