orgo 0.0.2__py3-none-any.whl → 0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orgo/api/client.py +4 -3
- orgo/computer.py +4 -4
- orgo-0.0.3.dist-info/METADATA +42 -0
- {orgo-0.0.2.dist-info → orgo-0.0.3.dist-info}/RECORD +6 -6
- orgo-0.0.2.dist-info/METADATA +0 -11
- {orgo-0.0.2.dist-info → orgo-0.0.3.dist-info}/WHEEL +0 -0
- {orgo-0.0.2.dist-info → orgo-0.0.3.dist-info}/top_level.txt +0 -0
orgo/api/client.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""API client for Orgo service"""
|
|
2
2
|
|
|
3
3
|
import requests
|
|
4
4
|
from typing import Dict, Any, Optional
|
|
@@ -41,8 +41,9 @@ class ApiClient:
|
|
|
41
41
|
raise Exception(f"Connection error: {str(e)}") from e
|
|
42
42
|
|
|
43
43
|
# Computer lifecycle methods
|
|
44
|
-
def create_computer(self) -> Dict[str, Any]:
|
|
45
|
-
|
|
44
|
+
def create_computer(self, config: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
|
|
45
|
+
"""Create a new project with desktop instance"""
|
|
46
|
+
return self._request("POST", "projects", {"config": config} if config else None)
|
|
46
47
|
|
|
47
48
|
def connect_computer(self, project_id: str) -> Dict[str, Any]:
|
|
48
49
|
return self._request("GET", f"computers/{project_id}")
|
orgo/computer.py
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import os
|
|
4
4
|
import io
|
|
5
5
|
import base64
|
|
6
|
-
from typing import Dict, Any
|
|
6
|
+
from typing import Dict, Any
|
|
7
7
|
from PIL import Image
|
|
8
8
|
|
|
9
9
|
from .api.client import ApiClient
|
|
10
10
|
|
|
11
11
|
class Computer:
|
|
12
|
-
def __init__(self, project_id=None, api_key=None):
|
|
12
|
+
def __init__(self, project_id=None, api_key=None, config=None):
|
|
13
13
|
self.api = ApiClient(api_key or os.environ.get("ORGO_API_KEY"))
|
|
14
14
|
|
|
15
15
|
if project_id:
|
|
16
16
|
self.project_id = project_id
|
|
17
17
|
self._info = self.api.connect_computer(project_id)
|
|
18
18
|
else:
|
|
19
|
-
response = self.api.create_computer()
|
|
20
|
-
self.project_id = response.get("
|
|
19
|
+
response = self.api.create_computer(config)
|
|
20
|
+
self.project_id = response.get("id")
|
|
21
21
|
self._info = response
|
|
22
22
|
|
|
23
23
|
if not self.project_id:
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: orgo
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: Desktop infrastructure for AI agents
|
|
5
|
+
Author: Orgo Team
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://www.orgo.ai
|
|
8
|
+
Project-URL: Documentation, https://docs.orgo.ai
|
|
9
|
+
Requires-Python: >=3.7
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: requests>=2.25.0
|
|
12
|
+
Requires-Dist: pillow>=8.0.0
|
|
13
|
+
|
|
14
|
+
# Orgo SDK
|
|
15
|
+
|
|
16
|
+
Desktop infrastructure for AI agents.
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install orgo
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
from orgo import Computer
|
|
28
|
+
|
|
29
|
+
# Create computer
|
|
30
|
+
computer = Computer()
|
|
31
|
+
|
|
32
|
+
# Control
|
|
33
|
+
computer.left_click(100, 200)
|
|
34
|
+
computer.type("Hello world")
|
|
35
|
+
computer.key("Enter")
|
|
36
|
+
computer.screenshot() # Returns PIL Image
|
|
37
|
+
|
|
38
|
+
# Cleanup
|
|
39
|
+
computer.shutdown()
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Full documentation: [docs.orgo.ai](https://docs.orgo.ai)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
orgo/__init__.py,sha256=SjO41JOwyLmX8K6fKu7LAIOyBk8sAtQKRaNVu2wZVBE,108
|
|
2
|
-
orgo/computer.py,sha256=
|
|
2
|
+
orgo/computer.py,sha256=_BHjxyqQvh3SLG6aIyO5iSmW9Zlkp8cOtPXFvnYELTk,3250
|
|
3
3
|
orgo/adapters/__init__.py,sha256=LMpWJGVHvvSrLPhCJrMSENYSJ8ifWIpTfi88L6aN65I,219
|
|
4
4
|
orgo/adapters/anthropic.py,sha256=KfPD5YWbwECZkpj421rSLCQf9SMr-EJ4nePe2EMXDWA,2342
|
|
5
5
|
orgo/adapters/base.py,sha256=W1dNArKn1ri-X_36KuN-h5yxh1LmjIYCZMkKi9dm020,559
|
|
6
6
|
orgo/adapters/openai.py,sha256=3NFmUYmaCSXHZImMvqj-fVc8oUxxrcU_6voBx2eFf5A,2605
|
|
7
7
|
orgo/api/__init__.py,sha256=nE9fyIZw2q4mGqy063-1RAbBgy_Qhx11gN_swkhmbX8,86
|
|
8
|
-
orgo/api/client.py,sha256=
|
|
8
|
+
orgo/api/client.py,sha256=x-5tK_8cBnF1a8chkleHpJt1JEOQ561hTMVOxQOKTDg,4184
|
|
9
9
|
orgo/utils/__init__.py,sha256=XSx9W-IPAc7yDnkwgED4v5eBUIQCxmokr_VQzF6LOZs,94
|
|
10
10
|
orgo/utils/auth.py,sha256=mpnaOvM3BGIdZ_j9cTw8K34gPpCeLRrG0rZfoojzONc,484
|
|
11
|
-
orgo-0.0.
|
|
12
|
-
orgo-0.0.
|
|
13
|
-
orgo-0.0.
|
|
14
|
-
orgo-0.0.
|
|
11
|
+
orgo-0.0.3.dist-info/METADATA,sha256=sd-WVj45BZuZ8Yz9xYVxeMkFfcXgJiOCq1ryFUJcG3U,750
|
|
12
|
+
orgo-0.0.3.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
13
|
+
orgo-0.0.3.dist-info/top_level.txt,sha256=q0rYtFji8GbYuhFW8A5Ab9e0j27761IKPhnL0E9xow4,5
|
|
14
|
+
orgo-0.0.3.dist-info/RECORD,,
|
orgo-0.0.2.dist-info/METADATA
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.2
|
|
2
|
-
Name: orgo
|
|
3
|
-
Version: 0.0.2
|
|
4
|
-
Summary: Desktop infrastructure for AI agents
|
|
5
|
-
Author: Orgo Team
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://www.orgo.ai
|
|
8
|
-
Project-URL: Documentation, https://docs.orgo.ai
|
|
9
|
-
Requires-Python: >=3.7
|
|
10
|
-
Requires-Dist: requests>=2.25.0
|
|
11
|
-
Requires-Dist: pillow>=8.0.0
|
|
File without changes
|
|
File without changes
|