Python bindings for the Talos Linux gRPC API (v1.3.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
Usage example
import ssl
from talos_linux_api.v1_3_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
File details
Details for the file talos-linux-api-v1.3.0-0.1.0.tar.gz
.
File metadata
- Download URL: talos-linux-api-v1.3.0-0.1.0.tar.gz
- Upload date:
- Size: 28.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.4.6 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc89e061467c92934f1573123121cee091642ad98b347adef3b4b294e582d774 |
|
MD5 | fc68f4604b96f097f36584621d9f2460 |
|
BLAKE2b-256 | 3f365ee2b96adb73c828ef19c6c57edb88a2ae6c27c564837119a3238f3c839a |
File details
Details for the file talos_linux_api_v1.3.0-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: talos_linux_api_v1.3.0-0.1.0-py3-none-any.whl
- Upload date:
- Size: 42.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.4.6 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 061a55714699697a63e921d03354e160082120157c400cae81feadea53d4f34a |
|
MD5 | 8861ad02b14a90a4099463a704e9f05a |
|
BLAKE2b-256 | 6578db0b9b4b1fb648e05e488702ae3612d244ec11fc19c9444035d000682387 |