# 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](https://openapi-generator.tech) 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:

```sh
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:

```python
import daytona_toolbox_api_client
```

### Setuptools

Install via [Setuptools](http://pypi.python.org/pypi/setuptools).

```sh
python setup.py install --user
```

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

Then import the package:

```python
import daytona_toolbox_api_client
```

### Tests

Execute `pytest` to run the tests.

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python

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

## Documentation For Models

- [Command](docs/Command.md)
- [CompletionContext](docs/CompletionContext.md)
- [CompletionItem](docs/CompletionItem.md)
- [CompletionList](docs/CompletionList.md)
- [ComputerUseStartResponse](docs/ComputerUseStartResponse.md)
- [ComputerUseStatusResponse](docs/ComputerUseStatusResponse.md)
- [ComputerUseStopResponse](docs/ComputerUseStopResponse.md)
- [CreateSessionRequest](docs/CreateSessionRequest.md)
- [DisplayInfo](docs/DisplayInfo.md)
- [DisplayInfoResponse](docs/DisplayInfoResponse.md)
- [ExecuteRequest](docs/ExecuteRequest.md)
- [ExecuteResponse](docs/ExecuteResponse.md)
- [FileInfo](docs/FileInfo.md)
- [FileStatus](docs/FileStatus.md)
- [GitAddRequest](docs/GitAddRequest.md)
- [GitBranchRequest](docs/GitBranchRequest.md)
- [GitCheckoutRequest](docs/GitCheckoutRequest.md)
- [GitCloneRequest](docs/GitCloneRequest.md)
- [GitCommitInfo](docs/GitCommitInfo.md)
- [GitCommitRequest](docs/GitCommitRequest.md)
- [GitCommitResponse](docs/GitCommitResponse.md)
- [GitGitDeleteBranchRequest](docs/GitGitDeleteBranchRequest.md)
- [GitRepoRequest](docs/GitRepoRequest.md)
- [GitStatus](docs/GitStatus.md)
- [IsPortInUseResponse](docs/IsPortInUseResponse.md)
- [KeyboardHotkeyRequest](docs/KeyboardHotkeyRequest.md)
- [KeyboardPressRequest](docs/KeyboardPressRequest.md)
- [KeyboardTypeRequest](docs/KeyboardTypeRequest.md)
- [ListBranchResponse](docs/ListBranchResponse.md)
- [LspCompletionParams](docs/LspCompletionParams.md)
- [LspDocumentRequest](docs/LspDocumentRequest.md)
- [LspLocation](docs/LspLocation.md)
- [LspPosition](docs/LspPosition.md)
- [LspRange](docs/LspRange.md)
- [LspServerRequest](docs/LspServerRequest.md)
- [LspSymbol](docs/LspSymbol.md)
- [Match](docs/Match.md)
- [MouseClickRequest](docs/MouseClickRequest.md)
- [MouseClickResponse](docs/MouseClickResponse.md)
- [MouseDragRequest](docs/MouseDragRequest.md)
- [MouseDragResponse](docs/MouseDragResponse.md)
- [MouseMoveRequest](docs/MouseMoveRequest.md)
- [MousePositionResponse](docs/MousePositionResponse.md)
- [MouseScrollRequest](docs/MouseScrollRequest.md)
- [PortList](docs/PortList.md)
- [Position](docs/Position.md)
- [ProcessErrorsResponse](docs/ProcessErrorsResponse.md)
- [ProcessLogsResponse](docs/ProcessLogsResponse.md)
- [ProcessRestartResponse](docs/ProcessRestartResponse.md)
- [ProcessStatus](docs/ProcessStatus.md)
- [ProcessStatusResponse](docs/ProcessStatusResponse.md)
- [ProjectDirResponse](docs/ProjectDirResponse.md)
- [ReplaceRequest](docs/ReplaceRequest.md)
- [ReplaceResult](docs/ReplaceResult.md)
- [ScreenshotResponse](docs/ScreenshotResponse.md)
- [ScrollResponse](docs/ScrollResponse.md)
- [SearchFilesResponse](docs/SearchFilesResponse.md)
- [Session](docs/Session.md)
- [SessionExecuteRequest](docs/SessionExecuteRequest.md)
- [SessionExecuteResponse](docs/SessionExecuteResponse.md)
- [Status](docs/Status.md)
- [WindowInfo](docs/WindowInfo.md)
- [WindowsResponse](docs/WindowsResponse.md)

<a id="documentation-for-authorization"></a>

## Documentation For Authorization

Endpoints do not require authorization.

## Author
