Skip to main content

Python bindings for the Talos Linux gRPC API (v1.2.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

Usage example

import ssl
from talos_linux_api.v1_2_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.2.0-0.1.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

talos_linux_api_v1.2.0-0.1.0-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file talos-linux-api-v1.2.0-0.1.0.tar.gz.

File metadata

File hashes

Hashes for talos-linux-api-v1.2.0-0.1.0.tar.gz
Algorithm Hash digest
SHA256 069760b2ed0e99b07eaae1dd3551aaf8cf637feb327132c1aca41b57b2d49883
MD5 1873705bf8036f5cc69ad984f5427b6f
BLAKE2b-256 ae82723fe16ad009b50dea5481d805e70b888eb69a367a99e10da5d3d09ede12

See more details on using hashes here.

File details

Details for the file talos_linux_api_v1.2.0-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for talos_linux_api_v1.2.0-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e21b8102babc3003b682f7ed568699d0d4ae04a89cbab6459b6e02089bb69774
MD5 b02c62af5956a99e438d5b75a50f2922
BLAKE2b-256 52a6064f402a6bc48544df5bd7afedbad5b5138503b90e69771aca442ad1d7b2

See more details on using hashes here.

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