Skip to main content

Daytona Daemon API

Project description

daytona_toolbox_api_client

Daytona Daemon Toolbox API for file operations, process execution, git operations, LSP, computer use, and more.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: v0.0.0-dev
  • Package version: 0.0.0-dev
  • Generator version: 7.12.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements

Python 3.8+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/daytonaio/daytona.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/daytonaio/daytona.git)

Then import the package:

import daytona_toolbox_api_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import daytona_toolbox_api_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import daytona_toolbox_api_client
from daytona_toolbox_api_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:22221
# See configuration.py for a list of all supported configuration parameters.
configuration = daytona_toolbox_api_client.Configuration(
    host = "http://localhost:22221"
)



# Enter a context with an instance of the API client
with daytona_toolbox_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = daytona_toolbox_api_client.ComputerUseApi(api_client)
    request = daytona_toolbox_api_client.MouseClickRequest() # MouseClickRequest | Mouse click request

    try:
        # Click mouse button
        api_response = api_instance.click(request)
        print("The response of ComputerUseApi->click:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ComputerUseApi->click: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:22221

Class Method HTTP request Description
ComputerUseApi click POST /computeruse/mouse/click Click mouse button
ComputerUseApi drag POST /computeruse/mouse/drag Drag mouse
ComputerUseApi get_computer_use_status GET /computeruse/process-status Get computer use process status
ComputerUseApi get_computer_use_system_status GET /computeruse/status Get computer use status
ComputerUseApi get_display_info GET /computeruse/display/info Get display information
ComputerUseApi get_mouse_position GET /computeruse/mouse/position Get mouse position
ComputerUseApi get_process_errors GET /computeruse/process/{processName}/errors Get process errors
ComputerUseApi get_process_logs GET /computeruse/process/{processName}/logs Get process logs
ComputerUseApi get_process_status GET /computeruse/process/{processName}/status Get specific process status
ComputerUseApi get_windows GET /computeruse/display/windows Get windows information
ComputerUseApi move_mouse POST /computeruse/mouse/move Move mouse cursor
ComputerUseApi press_hotkey POST /computeruse/keyboard/hotkey Press hotkey
ComputerUseApi press_key POST /computeruse/keyboard/key Press key
ComputerUseApi restart_process POST /computeruse/process/{processName}/restart Restart specific process
ComputerUseApi scroll POST /computeruse/mouse/scroll Scroll mouse wheel
ComputerUseApi start_computer_use POST /computeruse/start Start computer use processes
ComputerUseApi stop_computer_use POST /computeruse/stop Stop computer use processes
ComputerUseApi take_compressed_region_screenshot GET /computeruse/screenshot/region/compressed Take a compressed region screenshot
ComputerUseApi take_compressed_screenshot GET /computeruse/screenshot/compressed Take a compressed screenshot
ComputerUseApi take_region_screenshot GET /computeruse/screenshot/region Take a region screenshot
ComputerUseApi take_screenshot GET /computeruse/screenshot Take a screenshot
ComputerUseApi type_text POST /computeruse/keyboard/type Type text
FileSystemApi create_folder POST /files/folder Create a folder
FileSystemApi delete_file DELETE /files Delete a file or directory
FileSystemApi download_file GET /files/download Download a file
FileSystemApi find_in_files GET /files/find Find text in files
FileSystemApi get_file_info GET /files/info Get file information
FileSystemApi list_files GET /files List files and directories
FileSystemApi move_file POST /files/move Move or rename file/directory
FileSystemApi replace_in_files POST /files/replace Replace text in files
FileSystemApi search_files GET /files/search Search files by pattern
FileSystemApi set_file_permissions POST /files/permissions Set file permissions
FileSystemApi upload_file POST /files/upload Upload a file
FileSystemApi upload_files POST /files/bulk-upload Upload multiple files
GitApi add_files POST /git/add Add files to Git staging
GitApi checkout_branch POST /git/checkout Checkout branch or commit
GitApi clone_repository POST /git/clone Clone a Git repository
GitApi commit_changes POST /git/commit Commit changes
GitApi create_branch POST /git/branches Create a new branch
GitApi delete_branch DELETE /git/branches Delete a branch
GitApi get_commit_history GET /git/history Get commit history
GitApi get_status GET /git/status Get Git status
GitApi list_branches GET /git/branches List branches
GitApi pull_changes POST /git/pull Pull changes from remote
GitApi push_changes POST /git/push Push changes to remote
InfoApi get_project_dir GET /project-dir Get project directory
InfoApi get_version GET /version Get version
LspApi completions POST /lsp/completions Get code completions
LspApi did_close POST /lsp/did-close Notify document closed
LspApi did_open POST /lsp/did-open Notify document opened
LspApi document_symbols GET /lsp/document-symbols Get document symbols
LspApi start POST /lsp/start Start LSP server
LspApi stop POST /lsp/stop Stop LSP server
LspApi workspace_symbols GET /lsp/workspaceSymbols Get workspace symbols
PortApi get_ports GET /port Get active ports
PortApi is_port_in_use GET /port/{port}/in-use Check if port is in use
ProcessApi create_session POST /process/session Create a new session
ProcessApi delete_session DELETE /process/session/{sessionId} Delete a session
ProcessApi execute_command POST /process/execute Execute a command
ProcessApi get_session GET /process/session/{sessionId} Get session details
ProcessApi get_session_command GET /process/session/{sessionId}/command/{commandId} Get session command details
ProcessApi get_session_command_logs GET /process/session/{sessionId}/command/{commandId}/logs Get session command logs
ProcessApi list_sessions GET /process/session List all sessions
ProcessApi session_execute_command POST /process/session/{sessionId}/exec Execute command in session

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

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

daytona_toolbox_api_client-0.117.0.tar.gz (58.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

daytona_toolbox_api_client-0.117.0-py3-none-any.whl (156.8 kB view details)

Uploaded Python 3

File details

Details for the file daytona_toolbox_api_client-0.117.0.tar.gz.

File metadata

  • Download URL: daytona_toolbox_api_client-0.117.0.tar.gz
  • Upload date:
  • Size: 58.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.11 Linux/6.14.0-1011-aws

File hashes

Hashes for daytona_toolbox_api_client-0.117.0.tar.gz
Algorithm Hash digest
SHA256 101bbf6acea41abb6068a1e9804caf8029f64141c2144d8f142486e4a9cb0dfb
MD5 59f253a4617418a4308377b091e57281
BLAKE2b-256 2da43a30436b74d69219cb13026b2997ae1dea7fd3d291c6a01a80fd803d457b

See more details on using hashes here.

File details

Details for the file daytona_toolbox_api_client-0.117.0-py3-none-any.whl.

File metadata

File hashes

Hashes for daytona_toolbox_api_client-0.117.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a09e2139f0cfc39a2db53898763263aaf6caacc54d5aa0f17238b11a8f24041
MD5 fe16d626a04b826d310be93df4fdf8b9
BLAKE2b-256 578efd1f48fe0e5c8c0d72386df68912f3a6b8e66a1a34083fde8f4a9285f784

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page