Configured client for ISO 19848 protocols and package types.
Project description
Vista Gateway Client
Vista Gateway Client is a library that provides a configured client for supported protocols and package types. It ensures strict implementation and validation of the packages according to their respective supported types.
Supported Protocols
- HTTPS
- MQTT
Supported Package Types
- ISO19848 DataChannelList
- ISO19848 TimeSeriesData
What is ISO19848?
ISO 19848 is an international standard for the digital exchange of data between ship systems, covering both operational and technical data. It standardizes the structure of data for easier exchange and interpretation, facilitating data integration in maritime industries.
- Schemas: ISO19848 schemas
- Vista documentation: docs.vista.dnv.com
Acquire an API Key
To use Vista Gateway Client, you will need an API key to authenticate with the gateway. Please reach out to your DNV contact to request an API key. When doing so, make sure to mention the specific service you are interested in to ensure you receive the correct key for your use case.
Installation
To use the Vista Gateway Client, you need Python >=3.8. Follow the steps below to install and configure the client.
1. Install Package
Install the package using pip:
pip install vista-gateway-client
2. Initialize Client
from vista_gateway_client.client import Client
client = Client(
api_key = "<Your API Key>",
protocol = "Http", # or "Mqtt"
)
3. Create and Send a Package
from vista_gateway_client.gateway_package import ISO19848, DataChannel, TimeSeries
from vista_gateway_client.vista_gateway_exception import VistaGatewayException
# Create package. E.g. ISO19848 DataChannelList
package = DataChannel.Package(
# Configure the package according to ISO 19848 standard
)
# Create client package
client_package = ISO19848.DataChannelList(
package=package,
external_id="<Your External ID>",
correlation_id="<Your Correlation ID>",
user_agent="<Your User Agent>"
)
try:
# Send the package
client.send(client_package)
except VistaGatewayException as e:
# Handle VistaGatewayException
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 vista_gateway_client-0.1.1.tar.gz.
File metadata
- Download URL: vista_gateway_client-0.1.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10592cfc11b5c6cb5c5c7597c84a86bcb4fae47de2b3d38e26d9eb069c14e41f
|
|
| MD5 |
08460cb8eccf6eb7832c3e74b18a6b54
|
|
| BLAKE2b-256 |
84ded6da3770cf845c142f5f225589acba323fa9c5f91c4fa1b660be8777a4ab
|
File details
Details for the file vista_gateway_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vista_gateway_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6cd7ac31a7b3c6026a1c738cd0980fe027f7c3f2952a7bd68a5be992d35af22
|
|
| MD5 |
ac6a53cfd1ffc34bd5e56e29f48f0c28
|
|
| BLAKE2b-256 |
2c7602aaa4493216e85e690b409faf0c029c668e52c10f36d184a41ec25bca60
|