condensationai
Python SDK for Condensation sandboxes and the shared Codegraff wallet. Requires Python 3.10+; no runtime dependencies.
pip install condensationai
Create a sandbox key at https://workspaces.condensation.ai/account after signing
in with Codegraff. Set CONDENSATION_API_KEY in your environment.
from condensationai import Condensation
client = Condensation()
print(client.wallet()["purchasedMicroUsd"] / 1_000_000)
sandbox = client.create(language="python", auto_stop_minutes=5)
try:
print(client.run(sandbox["id"], 'python -c "print(1 + 1)"')["result"])
finally:
client.delete(sandbox["id"])
This first release routes sandbox operations through Codegraff's existing gateway at its resource rates, not Condensation's fleet pricing. It spends shared purchased credits. Condensation monthly bonuses do not fund this path. Stopped sandboxes may incur storage charges; delete resources when finished. Key budgets are gateway admission checks and may be exceeded by concurrent or running work.
Methods: wallet, list, get, create, run, execution, cancel_execution,
upload_base64, download_base64, meter, stop, start, delete. Use
run(..., background=True) for an asynchronous command and poll execution.
The SDK itself is synchronous. Current gateway file downloads are text-oriented;
arbitrary binary round trips are not guaranteed.
Condensation(api_key=..., base_url=..., timeout=120) accepts explicit options.
The default origin is https://api.condensation.ai. Keys are server-side secrets;
do not commit them. No request is retried automatically or follows redirects.
For uncertain mutations, inspect resource state before retrying.
CondensationError.status contains the HTTP status (zero for transport errors),
and .details contains the API error body.
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 condensationai-0.1.0.tar.gz.
File metadata
- Download URL: condensationai-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98253c30db14a3c6ce4f5b9144f7f09bc63d26f3bfb9491fd431d913e0a33c84
|
|
| MD5 |
02f0a4f8e4ee4acf7919899dc4742e36
|
|
| BLAKE2b-256 |
b69f258ab168f570c772136477f6d08215fd2a9d4aef2e362ba6f702568fd711
|
File details
Details for the file condensationai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: condensationai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a81453282791606001720c12f2ba98cf390379e40ed42e632909555e81a54238
|
|
| MD5 |
8beef7b1593680c2503230aa9b002837
|
|
| BLAKE2b-256 |
ad4975fc030b51b15dc80d10106e466123e664dba078cf377a89da3e00561369
|