optexity 0.1.3__tar.gz → 0.1.5__tar.gz
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.
- {optexity-0.1.3 → optexity-0.1.5}/PKG-INFO +22 -38
- {optexity-0.1.3 → optexity-0.1.5}/README.md +20 -36
- {optexity-0.1.3 → optexity-0.1.5}/optexity/cli.py +1 -1
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_command.py +1 -1
- {optexity-0.1.3 → optexity-0.1.5}/optexity.egg-info/PKG-INFO +22 -38
- {optexity-0.1.3 → optexity-0.1.5}/pyproject.toml +2 -2
- {optexity-0.1.3 → optexity-0.1.5}/LICENSE +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/examples/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/examples/add_example.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/examples/download_pdf_url.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/examples/extract_price_stockanalysis.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/examples/file_upload.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/examples/i94.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/examples/i94_travel_history.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/examples/peachstate_medicaid.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/examples/supabase_login.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/exceptions.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/error_handler/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/error_handler/error_handler.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/error_handler/prompt.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/index_prediction/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/index_prediction/action_prediction_locator_axtree.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/index_prediction/prompt.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/select_value_prediction/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/select_value_prediction/prompt.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/select_value_prediction/select_value_prediction.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/two_fa_extraction/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/two_fa_extraction/prompt.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/two_fa_extraction/two_fa_extraction.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/child_process.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_agentic_task.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_check.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_click.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_input.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_keypress.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_select.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_select_utils.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_upload.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/utils.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/logging.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/run_assertion.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/run_automation.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/run_extraction.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/run_interaction.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/run_python_script.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/run_two_fa.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/two_factor_auth/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/infra/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/infra/browser.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/infra/browser_extension.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/models/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/models/gemini.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/models/human.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/models/llm_model.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/inference/run_local.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/onepassword_integration.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/actions/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/actions/assertion_action.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/actions/extraction_action.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/actions/interaction_action.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/actions/misc_action.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/actions/prompts.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/actions/two_fa_action.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/automation.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/callback.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/inference.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/memory.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/task.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/schema/token_usage.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/test.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/utils/__init__.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/utils/settings.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity/utils/utils.py +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity.egg-info/SOURCES.txt +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity.egg-info/dependency_links.txt +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity.egg-info/entry_points.txt +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity.egg-info/requires.txt +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/optexity.egg-info/top_level.txt +0 -0
- {optexity-0.1.3 → optexity-0.1.5}/setup.cfg +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: optexity
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Optexity is a platform for building and running browser and computer agents.
|
|
5
|
-
Author-email: Optexity <
|
|
5
|
+
Author-email: Optexity <founders@optexity.com>
|
|
6
6
|
Requires-Python: >=3.11
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
@@ -50,30 +50,19 @@ Once logged in, navigate to the **API Keys** section in your dashboard and creat
|
|
|
50
50
|
|
|
51
51
|
Install the **Optexity Recorder** extension from the [Chrome Web Store](https://chromewebstore.google.com/detail/optexity-recorder/pbaganbicadeoacahamnbgohafchgakp). This extension captures your browser interactions and converts them into automation workflows.
|
|
52
52
|
|
|
53
|
-
## Installation
|
|
54
|
-
|
|
55
53
|
### Prerequisites
|
|
56
54
|
|
|
57
55
|
- Python 3.11+
|
|
58
|
-
- Node.js 18+ (included with Conda option)
|
|
59
56
|
- Git
|
|
60
57
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
git clone git@github.com:Optexity/optexity.git
|
|
65
|
-
cd optexity
|
|
66
|
-
./update_submodule.sh
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Step 2: Create and Activate a Python Environment
|
|
58
|
+
## Create and Activate a Python Environment (Optional)
|
|
70
59
|
|
|
71
60
|
Choose **one** of the options below.
|
|
72
61
|
|
|
73
62
|
#### Option A – Conda (includes Python 3.11 and Node.js)
|
|
74
63
|
|
|
75
64
|
```bash
|
|
76
|
-
conda create -n optexity python=3.11
|
|
65
|
+
conda create -n optexity python=3.11
|
|
77
66
|
conda activate optexity
|
|
78
67
|
```
|
|
79
68
|
|
|
@@ -86,32 +75,29 @@ python3 -m venv .venv
|
|
|
86
75
|
source .venv/bin/activate
|
|
87
76
|
```
|
|
88
77
|
|
|
89
|
-
|
|
78
|
+
## Installation
|
|
90
79
|
|
|
91
|
-
###
|
|
80
|
+
### Quick Installation (from PyPI)
|
|
92
81
|
|
|
93
|
-
|
|
82
|
+
Install Optexity directly from PyPI:
|
|
94
83
|
|
|
95
84
|
```bash
|
|
96
|
-
pip install
|
|
97
|
-
pip install -e .
|
|
98
|
-
playwright install --with-deps chromium chrome
|
|
99
|
-
patchright install chromium chrome
|
|
100
|
-
pre-commit install --install-hooks
|
|
101
|
-
pre-commit install --hook-type pre-push
|
|
85
|
+
pip install optexity
|
|
102
86
|
```
|
|
103
87
|
|
|
104
|
-
|
|
88
|
+
**OR**
|
|
105
89
|
|
|
106
|
-
|
|
90
|
+
### Installation from Source
|
|
107
91
|
|
|
108
|
-
|
|
92
|
+
If you want to clone and edit from source:
|
|
109
93
|
|
|
110
94
|
```bash
|
|
111
|
-
|
|
95
|
+
git clone git@github.com:Optexity/optexity.git
|
|
96
|
+
cd optexity
|
|
97
|
+
pip install -e .
|
|
112
98
|
```
|
|
113
99
|
|
|
114
|
-
|
|
100
|
+
## Set required environment variables:
|
|
115
101
|
|
|
116
102
|
```bash
|
|
117
103
|
API_KEY=YOUR_OPTEXITY_API_KEY # API key used for authenticated requests
|
|
@@ -121,14 +107,14 @@ DEPLOYMENT=dev # or "prod" in production
|
|
|
121
107
|
|
|
122
108
|
You can get your free Google Gemini API key from the [Google AI Studio Console](https://aistudio.google.com).
|
|
123
109
|
|
|
124
|
-
|
|
110
|
+
## Install required browsers:
|
|
111
|
+
|
|
112
|
+
Install playwright and patchright browsers:
|
|
125
113
|
|
|
126
114
|
```bash
|
|
127
|
-
|
|
115
|
+
optexity install-browsers
|
|
128
116
|
```
|
|
129
117
|
|
|
130
|
-
> If `ENV_PATH` is not set, the inference server will try to start with defaults and log a warning. For normal usage you should always point `ENV_PATH` at a real `.env` file.
|
|
131
|
-
|
|
132
118
|
## Recording Your First Automation
|
|
133
119
|
|
|
134
120
|
The fastest way to create an automation is by recording your actions directly in the browser.
|
|
@@ -156,12 +142,10 @@ The fastest way to create an automation is by recording your actions directly in
|
|
|
156
142
|
|
|
157
143
|
### Start the Inference Server
|
|
158
144
|
|
|
159
|
-
The primary way to run browser automations locally is via the inference
|
|
160
|
-
|
|
161
|
-
From the repository root:
|
|
145
|
+
The primary way to run browser automations locally is via the inference server.
|
|
162
146
|
|
|
163
147
|
```bash
|
|
164
|
-
|
|
148
|
+
optexity inference --port 9000 --child_process_id 0
|
|
165
149
|
```
|
|
166
150
|
|
|
167
151
|
Key parameters:
|
|
@@ -191,7 +175,7 @@ With the server running on `http://localhost:9000`, you can allocate a task by s
|
|
|
191
175
|
curl -X POST http://localhost:9000/inference \
|
|
192
176
|
-H "Content-Type: application/json" \
|
|
193
177
|
-d '{
|
|
194
|
-
"endpoint_name": "
|
|
178
|
+
"endpoint_name": "extract_price_stockanalysis",
|
|
195
179
|
"input_parameters": {
|
|
196
180
|
"search_term": ["NVDA"]
|
|
197
181
|
},
|
|
@@ -25,30 +25,19 @@ Once logged in, navigate to the **API Keys** section in your dashboard and creat
|
|
|
25
25
|
|
|
26
26
|
Install the **Optexity Recorder** extension from the [Chrome Web Store](https://chromewebstore.google.com/detail/optexity-recorder/pbaganbicadeoacahamnbgohafchgakp). This extension captures your browser interactions and converts them into automation workflows.
|
|
27
27
|
|
|
28
|
-
## Installation
|
|
29
|
-
|
|
30
28
|
### Prerequisites
|
|
31
29
|
|
|
32
30
|
- Python 3.11+
|
|
33
|
-
- Node.js 18+ (included with Conda option)
|
|
34
31
|
- Git
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
git clone git@github.com:Optexity/optexity.git
|
|
40
|
-
cd optexity
|
|
41
|
-
./update_submodule.sh
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### Step 2: Create and Activate a Python Environment
|
|
33
|
+
## Create and Activate a Python Environment (Optional)
|
|
45
34
|
|
|
46
35
|
Choose **one** of the options below.
|
|
47
36
|
|
|
48
37
|
#### Option A – Conda (includes Python 3.11 and Node.js)
|
|
49
38
|
|
|
50
39
|
```bash
|
|
51
|
-
conda create -n optexity python=3.11
|
|
40
|
+
conda create -n optexity python=3.11
|
|
52
41
|
conda activate optexity
|
|
53
42
|
```
|
|
54
43
|
|
|
@@ -61,32 +50,29 @@ python3 -m venv .venv
|
|
|
61
50
|
source .venv/bin/activate
|
|
62
51
|
```
|
|
63
52
|
|
|
64
|
-
|
|
53
|
+
## Installation
|
|
65
54
|
|
|
66
|
-
###
|
|
55
|
+
### Quick Installation (from PyPI)
|
|
67
56
|
|
|
68
|
-
|
|
57
|
+
Install Optexity directly from PyPI:
|
|
69
58
|
|
|
70
59
|
```bash
|
|
71
|
-
pip install
|
|
72
|
-
pip install -e .
|
|
73
|
-
playwright install --with-deps chromium chrome
|
|
74
|
-
patchright install chromium chrome
|
|
75
|
-
pre-commit install --install-hooks
|
|
76
|
-
pre-commit install --hook-type pre-push
|
|
60
|
+
pip install optexity
|
|
77
61
|
```
|
|
78
62
|
|
|
79
|
-
|
|
63
|
+
**OR**
|
|
80
64
|
|
|
81
|
-
|
|
65
|
+
### Installation from Source
|
|
82
66
|
|
|
83
|
-
|
|
67
|
+
If you want to clone and edit from source:
|
|
84
68
|
|
|
85
69
|
```bash
|
|
86
|
-
|
|
70
|
+
git clone git@github.com:Optexity/optexity.git
|
|
71
|
+
cd optexity
|
|
72
|
+
pip install -e .
|
|
87
73
|
```
|
|
88
74
|
|
|
89
|
-
|
|
75
|
+
## Set required environment variables:
|
|
90
76
|
|
|
91
77
|
```bash
|
|
92
78
|
API_KEY=YOUR_OPTEXITY_API_KEY # API key used for authenticated requests
|
|
@@ -96,14 +82,14 @@ DEPLOYMENT=dev # or "prod" in production
|
|
|
96
82
|
|
|
97
83
|
You can get your free Google Gemini API key from the [Google AI Studio Console](https://aistudio.google.com).
|
|
98
84
|
|
|
99
|
-
|
|
85
|
+
## Install required browsers:
|
|
86
|
+
|
|
87
|
+
Install playwright and patchright browsers:
|
|
100
88
|
|
|
101
89
|
```bash
|
|
102
|
-
|
|
90
|
+
optexity install-browsers
|
|
103
91
|
```
|
|
104
92
|
|
|
105
|
-
> If `ENV_PATH` is not set, the inference server will try to start with defaults and log a warning. For normal usage you should always point `ENV_PATH` at a real `.env` file.
|
|
106
|
-
|
|
107
93
|
## Recording Your First Automation
|
|
108
94
|
|
|
109
95
|
The fastest way to create an automation is by recording your actions directly in the browser.
|
|
@@ -131,12 +117,10 @@ The fastest way to create an automation is by recording your actions directly in
|
|
|
131
117
|
|
|
132
118
|
### Start the Inference Server
|
|
133
119
|
|
|
134
|
-
The primary way to run browser automations locally is via the inference
|
|
135
|
-
|
|
136
|
-
From the repository root:
|
|
120
|
+
The primary way to run browser automations locally is via the inference server.
|
|
137
121
|
|
|
138
122
|
```bash
|
|
139
|
-
|
|
123
|
+
optexity inference --port 9000 --child_process_id 0
|
|
140
124
|
```
|
|
141
125
|
|
|
142
126
|
Key parameters:
|
|
@@ -166,7 +150,7 @@ With the server running on `http://localhost:9000`, you can allocate a task by s
|
|
|
166
150
|
curl -X POST http://localhost:9000/inference \
|
|
167
151
|
-H "Content-Type: application/json" \
|
|
168
152
|
-d '{
|
|
169
|
-
"endpoint_name": "
|
|
153
|
+
"endpoint_name": "extract_price_stockanalysis",
|
|
170
154
|
"input_parameters": {
|
|
171
155
|
"search_term": ["NVDA"]
|
|
172
156
|
},
|
|
@@ -64,7 +64,7 @@ def main() -> None:
|
|
|
64
64
|
"inference", help="Run Optexity inference server"
|
|
65
65
|
)
|
|
66
66
|
inference_cmd.add_argument("--host", default="0.0.0.0")
|
|
67
|
-
inference_cmd.add_argument("--port", type=int,
|
|
67
|
+
inference_cmd.add_argument("--port", type=int, default=9000)
|
|
68
68
|
inference_cmd.add_argument(
|
|
69
69
|
"--child_process_id", "--child-process-id", type=int, default=0
|
|
70
70
|
)
|
|
@@ -236,7 +236,7 @@ async def select_option_locator(
|
|
|
236
236
|
]
|
|
237
237
|
|
|
238
238
|
matched_values = await smart_select(
|
|
239
|
-
select_option_values,
|
|
239
|
+
select_option_values, select_option_action.select_values, memory
|
|
240
240
|
)
|
|
241
241
|
|
|
242
242
|
logger.debug(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: optexity
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Optexity is a platform for building and running browser and computer agents.
|
|
5
|
-
Author-email: Optexity <
|
|
5
|
+
Author-email: Optexity <founders@optexity.com>
|
|
6
6
|
Requires-Python: >=3.11
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
@@ -50,30 +50,19 @@ Once logged in, navigate to the **API Keys** section in your dashboard and creat
|
|
|
50
50
|
|
|
51
51
|
Install the **Optexity Recorder** extension from the [Chrome Web Store](https://chromewebstore.google.com/detail/optexity-recorder/pbaganbicadeoacahamnbgohafchgakp). This extension captures your browser interactions and converts them into automation workflows.
|
|
52
52
|
|
|
53
|
-
## Installation
|
|
54
|
-
|
|
55
53
|
### Prerequisites
|
|
56
54
|
|
|
57
55
|
- Python 3.11+
|
|
58
|
-
- Node.js 18+ (included with Conda option)
|
|
59
56
|
- Git
|
|
60
57
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
git clone git@github.com:Optexity/optexity.git
|
|
65
|
-
cd optexity
|
|
66
|
-
./update_submodule.sh
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Step 2: Create and Activate a Python Environment
|
|
58
|
+
## Create and Activate a Python Environment (Optional)
|
|
70
59
|
|
|
71
60
|
Choose **one** of the options below.
|
|
72
61
|
|
|
73
62
|
#### Option A – Conda (includes Python 3.11 and Node.js)
|
|
74
63
|
|
|
75
64
|
```bash
|
|
76
|
-
conda create -n optexity python=3.11
|
|
65
|
+
conda create -n optexity python=3.11
|
|
77
66
|
conda activate optexity
|
|
78
67
|
```
|
|
79
68
|
|
|
@@ -86,32 +75,29 @@ python3 -m venv .venv
|
|
|
86
75
|
source .venv/bin/activate
|
|
87
76
|
```
|
|
88
77
|
|
|
89
|
-
|
|
78
|
+
## Installation
|
|
90
79
|
|
|
91
|
-
###
|
|
80
|
+
### Quick Installation (from PyPI)
|
|
92
81
|
|
|
93
|
-
|
|
82
|
+
Install Optexity directly from PyPI:
|
|
94
83
|
|
|
95
84
|
```bash
|
|
96
|
-
pip install
|
|
97
|
-
pip install -e .
|
|
98
|
-
playwright install --with-deps chromium chrome
|
|
99
|
-
patchright install chromium chrome
|
|
100
|
-
pre-commit install --install-hooks
|
|
101
|
-
pre-commit install --hook-type pre-push
|
|
85
|
+
pip install optexity
|
|
102
86
|
```
|
|
103
87
|
|
|
104
|
-
|
|
88
|
+
**OR**
|
|
105
89
|
|
|
106
|
-
|
|
90
|
+
### Installation from Source
|
|
107
91
|
|
|
108
|
-
|
|
92
|
+
If you want to clone and edit from source:
|
|
109
93
|
|
|
110
94
|
```bash
|
|
111
|
-
|
|
95
|
+
git clone git@github.com:Optexity/optexity.git
|
|
96
|
+
cd optexity
|
|
97
|
+
pip install -e .
|
|
112
98
|
```
|
|
113
99
|
|
|
114
|
-
|
|
100
|
+
## Set required environment variables:
|
|
115
101
|
|
|
116
102
|
```bash
|
|
117
103
|
API_KEY=YOUR_OPTEXITY_API_KEY # API key used for authenticated requests
|
|
@@ -121,14 +107,14 @@ DEPLOYMENT=dev # or "prod" in production
|
|
|
121
107
|
|
|
122
108
|
You can get your free Google Gemini API key from the [Google AI Studio Console](https://aistudio.google.com).
|
|
123
109
|
|
|
124
|
-
|
|
110
|
+
## Install required browsers:
|
|
111
|
+
|
|
112
|
+
Install playwright and patchright browsers:
|
|
125
113
|
|
|
126
114
|
```bash
|
|
127
|
-
|
|
115
|
+
optexity install-browsers
|
|
128
116
|
```
|
|
129
117
|
|
|
130
|
-
> If `ENV_PATH` is not set, the inference server will try to start with defaults and log a warning. For normal usage you should always point `ENV_PATH` at a real `.env` file.
|
|
131
|
-
|
|
132
118
|
## Recording Your First Automation
|
|
133
119
|
|
|
134
120
|
The fastest way to create an automation is by recording your actions directly in the browser.
|
|
@@ -156,12 +142,10 @@ The fastest way to create an automation is by recording your actions directly in
|
|
|
156
142
|
|
|
157
143
|
### Start the Inference Server
|
|
158
144
|
|
|
159
|
-
The primary way to run browser automations locally is via the inference
|
|
160
|
-
|
|
161
|
-
From the repository root:
|
|
145
|
+
The primary way to run browser automations locally is via the inference server.
|
|
162
146
|
|
|
163
147
|
```bash
|
|
164
|
-
|
|
148
|
+
optexity inference --port 9000 --child_process_id 0
|
|
165
149
|
```
|
|
166
150
|
|
|
167
151
|
Key parameters:
|
|
@@ -191,7 +175,7 @@ With the server running on `http://localhost:9000`, you can allocate a task by s
|
|
|
191
175
|
curl -X POST http://localhost:9000/inference \
|
|
192
176
|
-H "Content-Type: application/json" \
|
|
193
177
|
-d '{
|
|
194
|
-
"endpoint_name": "
|
|
178
|
+
"endpoint_name": "extract_price_stockanalysis",
|
|
195
179
|
"input_parameters": {
|
|
196
180
|
"search_term": ["NVDA"]
|
|
197
181
|
},
|
|
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "optexity"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.5"
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
description = "Optexity is a platform for building and running browser and computer agents."
|
|
10
|
-
authors = [{ name = "Optexity", email = "
|
|
10
|
+
authors = [{ name = "Optexity", email = "founders@optexity.com" }]
|
|
11
11
|
requires-python = ">=3.11"
|
|
12
12
|
|
|
13
13
|
dependencies = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/select_value_prediction/__init__.py
RENAMED
|
File without changes
|
{optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/select_value_prediction/prompt.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{optexity-0.1.3 → optexity-0.1.5}/optexity/inference/agents/two_fa_extraction/two_fa_extraction.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_agentic_task.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{optexity-0.1.3 → optexity-0.1.5}/optexity/inference/core/interaction/handle_select_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|