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.0pip install talos-linux-api-v1.3.0pip 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file talos_linux_api_v1_4_0-0.1.0.tar.gz.
File metadata
- Download URL: talos_linux_api_v1_4_0-0.1.0.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd19e8a8455343613f22d55c456494cfc63d3d3a38c9b5ac02649e70341e5abd
|
|
| MD5 |
c4ea70ca1e0565991c65fdba7370956b
|
|
| BLAKE2b-256 |
01adbc49702e797b2a89e6d396f47d2243c8bf0f540cce9424390956c83b40fc
|
File details
Details for the file talos_linux_api_v1_4_0-0.1.0-py3-none-any.whl.
File metadata
- Download URL: talos_linux_api_v1_4_0-0.1.0-py3-none-any.whl
- Upload date:
- Size: 44.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65167b0d2d36134c526cc47f7a82e9316f900d207f245c3e3692c27db308438c
|
|
| MD5 |
4a16be99310511c660c3ace1709048e2
|
|
| BLAKE2b-256 |
3ee4f7b34342e571bdb1ecc151f5950f8bfbee04782691380037d53f425374f8
|