Registry / http-networking / daytona-toolbox-api-client

daytona-toolbox-api-client

JSON →
library0.207.0pypypi✓ verified 24d ago

The official Python client for interacting with the Daytona Toolbox API, enabling programmatic management of workspaces, projects, and sandboxes. As part of a rapidly evolving platform, this library sees frequent updates, typically on a daily or weekly cadence, and is currently in version 0.164.0.

pip install daytona-toolbox-api-client
INSTALL
IMPORT
SIG · DAYTONA-TOOLBOX-AP
D
daytona-toolbox-api-client
http-networkingpythonv0.207.0
Install
3.7s avg
Import
559ms
Disk
31MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.207.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.580s · 32.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.7s · import 0.538s · 32MB
31MB installed
● package 31MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DaytonaToolboxApiClient
from daytona_toolbox_api_client import ApiClient
from daytona_toolbox_api_client.client import DaytonaToolboxApiClient

This quickstart initializes the Daytona client using environment variables for authentication and then attempts to list the user's workspaces. Ensure DAYTONA_SERVER_URL and DAYTONA_API_KEY are set.

import os from daytona_toolbox_api_client.client import DaytonaToolboxApiClient daytona_server_url = os.environ.get("DAYTONA_SERVER_URL", "") daytona_api_key = os.environ.get("DAYTONA_API_KEY", "") if not daytona_server_url or not daytona_api_key: print("Please set DAYTONA_SERVER_URL and DAYTONA_API_KEY environment variables, or log in via the Daytona CLI.") else: try: client = DaytonaToolboxApiClient( server_url=daytona_server_url, api_key=daytona_api_key, ) # Example: List workspaces workspaces = client.workspace.list_workspaces() print("\nYour workspaces:") if workspaces: for workspace in workspaces: print(f"- {workspace.name} (ID: {workspace.id})") else: print("No workspaces found.") except Exception as e: print(f"Error interacting with Daytona API: {e}")
Debug
Known issues
breakingThe library is pre-1.0 (0.x.x versioning), meaning API stability is not guaranteed between minor versions. Backward-incompatible changes can be introduced frequently without a major version bump.
fix
Always review release notes for new versions. Pin exact versions in production environments and test updates thoroughly.
affects: All versions < 1.0.0
breakingError handling was standardized across SDKs in v0.163.0. If you have custom error handling logic, it may need to be updated.
fix
Review the updated error types and adjust `try-except` blocks accordingly. Refer to the official documentation for the new error structures.
affects: Prior to 0.163.0
gotchaAuthentication primarily relies on environment variables (`DAYTONA_SERVER_URL`, `DAYTONA_API_KEY`) or the CLI `daytona login`. Failure to configure these will result in client initialization errors or failed API calls.
fix
Ensure `DAYTONA_SERVER_URL` and `DAYTONA_API_KEY` are correctly set in your environment, or pass them explicitly to the `DaytonaToolboxApiClient` constructor.
affects: All versions
gotchaThe client is a thin wrapper around the OpenAPI specification. Direct access to API endpoints (e.g., `client.workspace.list_workspaces()`) relies on the OpenAPI structure and may change if the underlying API definitions are modified.
fix
Consult the official Daytona API documentation or the client's source code to understand the available methods and their signatures for your installed version.
affects: All versions
Upgrade
Version history
0.207.0latest on PyPI · released Aug 24, 2026
Audit
Dependencies
pydanticrequiredUsed for data validation and serialization of API models.
httpxrequiredHTTP client for making API requests.
python-dateutilrequiredUtility for parsing and handling dates in API responses.
Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
daytona-toolbox-api-client — pip install daytona-toolbox-api-client · libregistry