Python SDK / client for the Kvindo Cloud API
Project description
kc-sdk-python
Python SDK / client for the Kvindo Cloud API.
A thin, typed client over the REST API: one resource client per resource type (VMs, volumes, load balancers, kubernetes, S3, VPCs, …), all sharing the same create / read / update / delete / list contract.
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
# 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.postgresql_standalones,
client.folders, client.transactions, … (the surface mirrors the official
Kvindo Cloud API).
License
MIT
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 kc_sdk_python-0.1.0.tar.gz.
File metadata
- Download URL: kc_sdk_python-0.1.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
668d42c9b0b48da38b0b7cf37185e611916134aa0dce53280e97a6794c2b8fe5
|
|
| MD5 |
c5eefec8cb7dfac2a7b656e7e04c00b7
|
|
| BLAKE2b-256 |
02e10740691674589f2b776adee3e6b6f49421720e123990c7f0e7bba5f8cb1a
|
Provenance
The following attestation bundles were made for kc_sdk_python-0.1.0.tar.gz:
Publisher:
publish.yml on Kvindo/kc-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kc_sdk_python-0.1.0.tar.gz -
Subject digest:
668d42c9b0b48da38b0b7cf37185e611916134aa0dce53280e97a6794c2b8fe5 - Sigstore transparency entry: 2026789993
- Sigstore integration time:
-
Permalink:
Kvindo/kc-sdk-python@ad1ea2024b911be11f0d0255fc3e73ba93a2585a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Kvindo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ad1ea2024b911be11f0d0255fc3e73ba93a2585a -
Trigger Event:
push
-
Statement type:
File details
Details for the file kc_sdk_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kc_sdk_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baecbbf83c33c6f58f3a7ac7f66c4dbd79419d4f91eb430ed4c06a39a243088e
|
|
| MD5 |
c2e67a3497693a6062ccebd865cfd02d
|
|
| BLAKE2b-256 |
02e0d079bd3ed7a3a0201961e1e81d981e5bb60a2971f9a6573105f7909443a6
|
Provenance
The following attestation bundles were made for kc_sdk_python-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Kvindo/kc-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kc_sdk_python-0.1.0-py3-none-any.whl -
Subject digest:
baecbbf83c33c6f58f3a7ac7f66c4dbd79419d4f91eb430ed4c06a39a243088e - Sigstore transparency entry: 2026790247
- Sigstore integration time:
-
Permalink:
Kvindo/kc-sdk-python@ad1ea2024b911be11f0d0255fc3e73ba93a2585a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Kvindo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ad1ea2024b911be11f0d0255fc3e73ba93a2585a -
Trigger Event:
push
-
Statement type: