Skip to main content

kc-sdk-python — Kvindo Cloud Python SDK

PyPI version Python versions License: MIT

Official Python SDK / client for the Kvindo Cloud API — manage cloud infrastructure as code from Python: VMs, volumes, S3 object storage, Kubernetes, load balancers, VPCs, VPNs, and managed PostgreSQL.

A thin, typed client over the REST API: one resource client per resource type, all sharing the same create / read / update / delete / list contract.

Using Claude Code? This repo ships a Claude Code skill that teaches Claude how to script Kvindo Cloud with this SDK — clone this repo (or otherwise have it on disk) and open Claude Code there to pick it up automatically.

Install

pip install kc-sdk-python

Dependencies: requests, marshmallow-dataclass, py-ulid.

Usage

from kc_api import KcClient

client = KcClient("YOUR_API_TOKEN")  # api_url defaults to https://cloud-api.kvindo.ru
# TLS certificate verification is on by default (verify_ssl=True). Pass
# verify_ssl=False only to point this SDK at a genuinely self-hosted instance
# with a self-signed cert.

# List (label-filtered, paginated)
resp = client.vms.get_by_labels({"env": "prod"}, max_page_size=50)
for vm in resp.resources:
    print(vm["metadata"]["name"])

# Read one
vm = client.vms.read("01H...")
print(vm.resource)

# Create / update (async) then wait for it to reconcile
created = client.vms.create_or_update({
    "metadata": {"name": "my-vm", "folderId": "01H..."},
    "spec": {"offerId": "g3-1c2-100", "state": "running", ...},
})
status = client.vms.wait_request_satisfied(created.requestId, timeout_seconds=300)
assert status.succeeded

# Delete (optionally block until reconciled)
client.vms.delete("01H...", wait=True)

Create / update / delete are asynchronous: they return a requestId; poll read_request(requestId) or use wait_request_satisfied(...). Every response object carries errorMessage / errorCode (a typed KcApi*ErrorCode) which are None on success.

Available resources

KcClient exposes one KcResourceClient per type, e.g. client.vms, client.volumes, client.s3_buckets, client.kubernetes, client.load_balancers, client.vpcs, client.postgresqls, client.folders, client.transactions, … (the surface mirrors the official Kvindo Cloud API).

Part of the Kvindo Cloud developer toolchain:

License

MIT

Metadata

Release files for kc-sdk-python 5.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kc-sdk-python 5.3.3
File Size Uploaded Provenance Actions
kc_sdk_python-5.3.3.tar.gz 16.9 kB Without provenance Details for kc_sdk_python-5.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kc-sdk-python 5.3.3
File Interpreter ABI Platform Actions
kc_sdk_python-5.3.3-py3-none-any.whl Python 3 none any Details for kc_sdk_python-5.3.3-py3-none-any.whl

Total release size: 32.2 kB

Release files / kc_sdk_python-5.3.3.tar.gz

Download URL kc_sdk_python-5.3.3.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
747e45141076a73e57a2c647f0ad05535e7ccddb99b3b242ff7241529ecbc661
BLAKE2b-256 checksum
How to use checksums
e71aebb5fe8d29983918dd1de7566f2c7fc58acb1976b93788cf98071fd1d1e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release files / kc_sdk_python-5.3.3-py3-none-any.whl

Download URL kc_sdk_python-5.3.3-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1dbb7c73e91281d667d6c16e47dec2a2e95541459e7c492d4f0df99f3ca9aec7
BLAKE2b-256 checksum
How to use checksums
40b74a509eb0d528f376ab077e33c76136fb7179d4ffc5b7888d5635392e587f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Security for kc-sdk-python 5.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page