Skip to main content

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


Download files

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

Source Distribution

talos-linux-api-v1.5.0-0.1.0.tar.gz (31.1 kB view hashes)

Uploaded Source

Built Distribution

talos_linux_api_v1.5.0-0.1.0-py3-none-any.whl (44.6 kB view hashes)

Uploaded Python 3

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