Overview
This package is a gRPC client that implements the interfaces of ORiN3 Remote Engine and ORiN3 Provider.
It allows user applications to call various functions of ORiN3 Remote Engine and ORiN3 Provider.
How to use
A sample is shown below to explain how to use it. This sample does the following:
- Communicates with ORiN3 Remote Engine and starts ORiN3 Provider (Mock).
- Communicates with ORiN3 Provider (Mock) and sets values to ORiN3 variables.
import asyncio
from orin3_provider_client.v1.client_creator import ClientCreator
from orin3_provider_client.v1.common import ORiN3ValueType
from orin3_remote_engine_client.v1.remote_engine_client import ProtocolType, ProviderEndpoint, RemoteEngineClient, TelemetryOption, LogLevel
async def debug_main():
# Connect to Remote Engine
async with RemoteEngineClient("127.0.0.1", 7103) as remote_engine:
# Launch a Mock Provider
provider_endpoints = [ProviderEndpoint(ProtocolType.HTTP, "127.0.0.1", 0)]
telemetry_endpoints = []
telemetry_attributes = {}
telemetry_option = TelemetryOption(telemetry_attributes, True, telemetry_endpoints)
extensions = {}
result = await remote_engine.wakeup_provider_async(
id="643D12C8-DCFC-476C-AA15-E8CA004F48E8",
version="1.0.85",
thread_safe_mode=True,
endpoints=provider_endpoints,
log_level=LogLevel.INFORMATION,
telemetry_option=telemetry_option,
extension=extensions)
provider_information = result.provider_information
endpoints = provider_information.endpoints
endpoint = endpoints[0]
async with await ClientCreator.attach_root_object_async(endpoint.ip_address, endpoint.port) as root_object:
# TODO: Add processing from here on down if necessary.
# Create a controller
controller_name = "GeneralPurposeController"
controller_type = "ORiN3.Provider.ORiNConsortium.Mock.O3Object.Controller.GeneralPurposeController, ORiN3.Provider.ORiNConsortium.Mock"
controller_option = '{"@Version":"1.0.85"}'
controller = await ClientCreator.create_controller_async(root_object, controller_name, controller_type, controller_option)
await controller.connect_async()
# Create a variable
variable_name = "Int32Variable"
variable_type = "ORiN3.Provider.ORiNConsortium.Mock.O3Object.Variable.Int32Variable, ORiN3.Provider.ORiNConsortium.Mock"
variable_option = '{"@Version":"1.0.85"}'
variable = await ClientCreator.create_variable_async(controller, variable_name, variable_type, variable_option, ORiN3ValueType.ORIN3_INT32)
# SetValue/GetValue
await variable.set_value_async(100)
value = await variable.get_value_async()
print(value)
# Shutdown Provider
await root_object.shutdown_async()
if __name__ == '__main__':
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
asyncio.run(debug_main())
Reference
The original proto file is stored in the following location:
Metadata
Release files for orin3-message-client 1.0.233
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| orin3_message_client-1.0.233-py3-none-any.whl | Python 3 | none | any | Details for orin3_message_client-1.0.233-py3-none-any.whl |
Release files / orin3_message_client-1.0.233-py3-none-any.whl
| Download URL | orin3_message_client-1.0.233-py3-none-any.whl |
|---|---|
| Size | 95.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d1f60dc4792649f450644aca4c8a7df244de83ec5cf38ebd21329dd8fa4306e
|
|
BLAKE2b-256 checksum How to use checksums |
c1bfcb35015513576c3aee0293e654252e250f9213c69b26a572c0bd60cda75c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for orin3-message-client 1.0.233
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.