Official Python SDK for the IBEE Solutions API
Project description
IBEE Solutions Python SDK
Official Python SDK for the IBEE Solutions API. Manage cloud VMs, GPU VMs, object storage, and secrets programmatically.
Installation
pip install ibee
Usage
from ibee import Ibee
client = Ibee(token="ibee_live_xxxxxxxxxxxx")
# List cloud VMs
vms = client.cloud_vms.list_cloud_vms(workspace_id="907479")
# Create a cloud VM
vm = client.cloud_vms.create_cloud_vm(
workspace_id="907479",
idempotency_key="create-web-server-01",
name="web-server",
os_distro="ubuntu",
os_type="linux",
cpu=2,
ram_mb=4096,
)
# List GPU VMs
gpu_vms = client.gpu_vms.list_gpu_vms(workspace_id="907479")
# Manage secrets
stores = client.secret_store.list_secret_stores(workspace_id="907479")
# List object storage buckets
buckets = client.object_storage.list_buckets(workspace_id="907479")
To create a VM from portal-style choices, pass the selected IDs:
vm = client.cloud_vms.create_cloud_vm(
workspace_id="907479",
idempotency_key="create-web-server-01",
name="web-server-01",
os_distro="ubuntu",
os_type="linux",
template_id="tmpl_ubuntu_2204",
plan_id="plan_standard_2c_4g",
cpu=2,
ram_mb=4096,
disk_gb=80,
ssh_key_ids=["ssh_key_123"],
tags=["prod", "web"],
)
plan_id is the selected instance plan. template_id is the selected OS
template or image. ssh_key_ids are the SSH keys to inject at first boot.
In the current SDK, cpu and ram_mb are still required fallback fields even
when plan_id is provided.
Environments
The client defaults to the production API (https://api.ibee.ai/v1). To use the development environment:
from ibee import Ibee
from ibee.environment import IbeeEnvironment
client = Ibee(token="IBEE_DEV_TOKEN", environment=IbeeEnvironment.DEVELOPMENT)
Requires Python 3.10+.
Async usage
import asyncio
from ibee import AsyncIbee
async def main():
client = AsyncIbee(token="ibee_live_xxxxxxxxxxxx")
vms = await client.cloud_vms.list_cloud_vms(workspace_id="907479")
print(vms)
asyncio.run(main())
Authentication
Generate a platform API token from the IBEE portal under Settings > Platform API Tokens. Use the token with the token parameter when creating the client.
Documentation
Full API reference: https://docs.ibee.co.in/docs/api-reference
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 ibee-0.1.2.tar.gz.
File metadata
- Download URL: ibee-0.1.2.tar.gz
- Upload date:
- Size: 56.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5ae640a77e0d871177a7a8bd9fae1045f12f6577558a12d68138388d46893ba
|
|
| MD5 |
ed70703edc76b827b5eb4b0b98531362
|
|
| BLAKE2b-256 |
5002e1a306c5a1e76378e8616af018f9e838e3df724fe8a2b153debae76928fa
|
Provenance
The following attestation bundles were made for ibee-0.1.2.tar.gz:
Publisher:
publish.yml on devs-ibee/ibee-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ibee-0.1.2.tar.gz -
Subject digest:
f5ae640a77e0d871177a7a8bd9fae1045f12f6577558a12d68138388d46893ba - Sigstore transparency entry: 2155712117
- Sigstore integration time:
-
Permalink:
devs-ibee/ibee-python@ef295fd5d0e1ba4a8da59883a6a975333017ce7e -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/devs-ibee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ef295fd5d0e1ba4a8da59883a6a975333017ce7e -
Trigger Event:
release
-
Statement type:
File details
Details for the file ibee-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ibee-0.1.2-py3-none-any.whl
- Upload date:
- Size: 84.9 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 |
9d2c7da0b3925ceaf3333de062f24b25da516b80e1406214e20ffa6cff58248a
|
|
| MD5 |
1ad2a6264a8da5de1605c83998b5f72d
|
|
| BLAKE2b-256 |
8b8ce021cce2f60609e8ad10a7909bf681a0a062343595022663fc9a2bd5165b
|
Provenance
The following attestation bundles were made for ibee-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on devs-ibee/ibee-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ibee-0.1.2-py3-none-any.whl -
Subject digest:
9d2c7da0b3925ceaf3333de062f24b25da516b80e1406214e20ffa6cff58248a - Sigstore transparency entry: 2155712143
- Sigstore integration time:
-
Permalink:
devs-ibee/ibee-python@ef295fd5d0e1ba4a8da59883a6a975333017ce7e -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/devs-ibee
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ef295fd5d0e1ba4a8da59883a6a975333017ce7e -
Trigger Event:
release
-
Statement type: