IBEE Solutions Python SDK
Official Python SDK for the IBEE Solutions API: cloud and GPU VMs, VPC networking, Reserved IPs, firewalls, load balancers, object storage, Block Storage, CDN and Secret Store.
The SDK is generated from the public API contract
(reference); every operation is one method,
sync (Ibee) and async (AsyncIbee). A small hand-written layer adds configuration
from the environment, safe retries, automatic idempotency keys and errors that carry
the server's answer unchanged. The server decides everything else (prices,
eligibility, limits, states).
Install
pip install ibee
Python 3.10 or later.
Authenticate
Create a platform API token in the portal under Settings > API Tokens.
from ibee import Ibee
client = Ibee(token="ibee_prod_key_...", workspace_id="710995")
Or from the environment, first match wins:
| Setting | Argument | Environment |
|---|---|---|
| Token | token= |
IBEE_API_TOKEN, then IBEE_TOKEN |
| Workspace | workspace_id= (each call may pass its own) |
IBEE_WORKSPACE_ID |
| Endpoint | base_url=, environment=IbeeEnvironment.DEVELOPMENT |
IBEE_BASE_URL, IBEE_ENDPOINT, then IBEE_ENV (dev or prod) |
The default endpoint is production, https://api.ibee.ai/v1. A base URL must be
https (http only for localhost). A development token is not sent to production,
or a production token to development.
Example
from ibee import Ibee
client = Ibee() # IBEE_API_TOKEN and IBEE_WORKSPACE_ID from the environment
sites = client.compute_catalog.list_compute_sites()
plans = client.compute_catalog.list_compute_plans(vm_type="cloud", site_id="site-1")
operation = client.cloud_vms.create_cloud_vm(
name="web-1",
site_id="site-1",
plan_id=plans.plans[0].plan_id,
template_id="ubuntu-24-04",
billing_term="HOURLY",
ssh_keys=["ssh-ed25519 AAAA... me"],
)
status = client.cloud_vms.get_compute_operation(operation.operation_id)
print(status.status) # accepted, running, ..., succeeded, failed
Until the server resolves VM SKUs itself, create_cloud_vm and create_gpu_vm look
up the plan and image to fill cpu, ram_mb, disk_gb, os_type, os_distro and
the plan's billing_catalog for billing_term. The other temporary behaviours are
listed in src/ibee/held.py and the CHANGELOG.
The full method list is in src/ibee/reference.md.
Errors
Every HTTP error raises the status-named class from ibee.errors
(BadRequestError, UnauthorizedError, PaymentRequiredError, ForbiddenError,
NotFoundError, ConflictError, UnprocessableEntityError, LockedError,
TooManyRequestsError, BadGatewayError, ServiceUnavailableError,
GatewayTimeoutError), or ApiError for any other status. All of them subclass
ibee.core.api_error.ApiError and carry the server's answer as received:
from ibee.core.api_error import ApiError
try:
client.cloud_vms.create_cloud_vm(name="web-1", plan_id="p1", template_id="t1")
except ApiError as error:
print(error.status_code) # 402
print(error.code) # "billing_denied" (the gateway's error, or detail.code)
print(error.billing_reason) # "resource_limit_reached"
print(error.message) # the server's message, or None when it sent none
print(error.admission_context_id) # billing admission context, when present
print(error.request_id) # the x-request-id response header
print(error.body) # the body exactly as received
print(error.idempotency_key) # the key sent, to retry the same write
The SDK adds no wording of its own. Bad configuration (a missing token, an unsafe base
URL, a token for the other environment) raises ibee.client.IbeeValidationError, a
ValueError, before anything is sent.
Retries and idempotency
- Where the contract has the
X-Idempotency-Keyheader and you pass noidempotency_key, the SDK sends a random one and reuses it on every retry. - Reads (GET, HEAD, OPTIONS) are retried on 429, 502, 503 and 504.
- Writes are retried only when they carry an idempotency key, and only on 429 and 503. VM creates (cloud and GPU) are never retried.
- A response with a billing or admission answer (
billing_reason,admission_context_id, or a billing, admission, catalog or quote code) is never retried, and neither is any other status. - A failed connection is retried; other network errors follow the rules above.
- At most
max_retriesretries (default 2;Ibee(max_retries=0)orrequest_options={"max_retries": 0}turns them off), with exponential backoff that honoursRetry-After.
Async
import asyncio
from ibee import AsyncIbee
async def main() -> None:
client = AsyncIbee()
print(await client.cloud_vms.list_cloud_vms())
asyncio.run(main())
Development
src/ibee is generated by Fern from contract/ibee-cloud.yaml, an exact copy of
fern/openapi/ibee-cloud.yaml in platform-docs, with the settings in fern/. The
hand-written files are listed in src/ibee/.fernignore. Regenerate with
scripts/regenerate.sh (Fern CLI 5.45.3 and Docker). Run the tests with
pip install -e . pytest && pytest -q.
CI checks every pull request:
scripts/check_generated.sh: regenerating fromcontract/ibee-cloud.yamlgives the committedsrc/ibee(the hand-written files aside).scripts/check_contract_calls.py: the hand-written files call only operations and paths ofcontract/ibee-cloud.yaml.
A pull request that changes contract/** gets the regenerated code pushed to its
branch (.github/workflows/regenerate.yml).
License
MIT
Metadata
Release files for ibee 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ibee-0.5.2.tar.gz | 235.7 kB | With provenance | Details for ibee-0.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ibee-0.5.2-py3-none-any.whl | Python 3 | none | any | Details for ibee-0.5.2-py3-none-any.whl |
Total release size: 592.0 kB
Release files / ibee-0.5.2.tar.gz
| Download URL | ibee-0.5.2.tar.gz |
|---|---|
| Size | 235.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c40ac4c8435ea1eb16c16ce36bee5a55d003296b60c812dc8857959d161d9f4
|
|
BLAKE2b-256 checksum How to use checksums |
f91f735f983a9d527e0e0cb83f3f3b91aba9c8641cfe55b3a0d989d2d4ca2837
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / ibee-0.5.2-py3-none-any.whl
| Download URL | ibee-0.5.2-py3-none-any.whl |
|---|---|
| Size | 356.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
246fe05013a1b3e4bf5a5a39662a6f2365fa7e85344b418848ae6896f7953e04
|
|
BLAKE2b-256 checksum How to use checksums |
b727d6dfe4fb090686e51b549b5060d6a5a243f7735da504521a151a45ae6757
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logSecurity for ibee 0.5.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ibee-0.5.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logA 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.