Skip to main content

A Python SDK for Vehicle app

Project description

Vehicle App Python Sdk

CI workflow License: Apache

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

velocitas_sdk-0.15.4.tar.gz (64.0 kB view details)

Uploaded Source

Built Distribution

velocitas_sdk-0.15.4-py3-none-any.whl (63.0 kB view details)

Uploaded Python 3

File details

Details for the file velocitas_sdk-0.15.4.tar.gz.

File metadata

  • Download URL: velocitas_sdk-0.15.4.tar.gz
  • Upload date:
  • Size: 64.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for velocitas_sdk-0.15.4.tar.gz
Algorithm Hash digest
SHA256 f276526d8931524d989d6c3b2359947c80e30db8b313f87fe72f141548cc6bea
MD5 0557fd545a40fa211afcada5990485de
BLAKE2b-256 ede3b2f4287329198691a49638c97d283826bf957a961b3e7fe08c22e9b15dc6

See more details on using hashes here.

File details

Details for the file velocitas_sdk-0.15.4-py3-none-any.whl.

File metadata

File hashes

Hashes for velocitas_sdk-0.15.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a327c511e7970eb6de99b96f6e8a8b0ef6d939d19f0dbf5941ff11de817c486
MD5 4fa311abad839a00b48f42eb222fffd7
BLAKE2b-256 76b10e29eefc5858ffcdac3bd5dbe18b2453a9c4e6f006fd3b5c4f68b19a2496

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page