Skip to main content

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

Usage example

import ssl
from talos_linux_api.v1_4_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_4_0-0.1.0.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

talos_linux_api_v1_4_0-0.1.0-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file talos_linux_api_v1_4_0-0.1.0.tar.gz.

File metadata

File hashes

Hashes for talos_linux_api_v1_4_0-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd19e8a8455343613f22d55c456494cfc63d3d3a38c9b5ac02649e70341e5abd
MD5 c4ea70ca1e0565991c65fdba7370956b
BLAKE2b-256 01adbc49702e797b2a89e6d396f47d2243c8bf0f540cce9424390956c83b40fc

See more details on using hashes here.

File details

Details for the file talos_linux_api_v1_4_0-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for talos_linux_api_v1_4_0-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65167b0d2d36134c526cc47f7a82e9316f900d207f245c3e3692c27db308438c
MD5 4a16be99310511c660c3ace1709048e2
BLAKE2b-256 3ee4f7b34342e571bdb1ecc151f5950f8bfbee04782691380037d53f425374f8

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