Python bindings for the Talos Linux gRPC API (v1.5.0)
Project description
talos-linux-api
- Python bindings for the Talos Linux gRPC API
Installation
Multiple API versions can be installed simultaneously and are made available
at runtime under an Implicit Namespace Package named talos_linux_api
.
Currently available API versions:
pip install talos-linux-api-v1.2.0
pip install talos-linux-api-v1.3.0
pip install talos-linux-api-v1.4.0
pip install talos-linux-api-v1.5.0
Usage example
import ssl
from talos_linux_api.v1_5_0.machine import MachineServiceStub
from grpclib.client import Channel
from betterproto.lib.google.protobuf import Empty
ssl_context = ssl.create_default_context()
ssl_context.load_cert_chain('client.crt', 'client.key')
ssl_context.load_verify_locations('ca.crt')
async with Channel(host="example.com", port=50000, ssl=ssl_context) as channel:
machine_service = MachineServiceStub(channel)
response = await machine_service.cpu_info(Empty())
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
Close
Hashes for talos-linux-api-v1.5.0-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ae2d758e22ab9ec92763b459fe59796c5345a9a9b84178cc149a505403a5cdd |
|
MD5 | c53daa63f9b08f23c96d7690df7883df |
|
BLAKE2b-256 | a3cd2cd9710ff594c0d5bc862eb6c54df940c38ef924038ab5ce65c24536a8c2 |
Close
Hashes for talos_linux_api_v1.5.0-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6932058ea70e9f45d40f9837e8c2eff5dfbee7de626a8ed40fdd40a6751916b5 |
|
MD5 | b600fc1bdb35c0ab117b0e22cc3b0925 |
|
BLAKE2b-256 | d5b951dee3b623da3ef54f0ba8c9d2523b24e19e79af246796943fc4c4c152ec |