parallel-web-tools 0.3.1rc1__tar.gz → 0.4.0__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.
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/.gitignore +1 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/PKG-INFO +21 -29
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/README.md +13 -21
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/__init__.py +13 -1
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/cli/commands.py +817 -607
- parallel_web_tools-0.4.0/parallel_web_tools/cli/skills.py +204 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/__init__.py +16 -8
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/auth.py +123 -75
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/batch.py +19 -21
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/credentials.py +73 -35
- parallel_web_tools-0.4.0/parallel_web_tools/core/monitor.py +289 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/research.py +69 -8
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/service_types.py +23 -21
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/skills.py +110 -95
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/bigquery/cloud_function/requirements.txt +1 -1
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/spark/streaming.py +7 -8
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/pyproject.toml +12 -10
- parallel_web_tools-0.3.1rc1/parallel_web_tools/core/monitor.py +0 -304
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/cli/__init__.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/cli/planner.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/cli/updater.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/endpoints.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/findall.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/polling.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/result.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/runner.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/schema.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/service.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/sql_utils.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/core/user_agent.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/__init__.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/bigquery/__init__.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/bigquery/cloud_function/main.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/bigquery/deploy.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/bigquery/sql/create_functions.sql +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/duckdb/__init__.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/duckdb/batch.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/duckdb/findall.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/duckdb/udf.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/polars/__init__.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/polars/enrich.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/snowflake/__init__.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/snowflake/deploy.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/snowflake/sql/01_setup.sql +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/snowflake/sql/02_create_udf.sql +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/snowflake/sql/03_cleanup.sql +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/spark/__init__.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/spark/udf.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/integrations/utils.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/processors/__init__.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/processors/bigquery.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/processors/csv.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/processors/duckdb.py +0 -0
- {parallel_web_tools-0.3.1rc1 → parallel_web_tools-0.4.0}/parallel_web_tools/processors/json.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: parallel-web-tools
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: Parallel Tools: CLI and Python SDK for AI-powered web intelligence
|
|
5
5
|
Project-URL: Homepage, https://github.com/parallel-web/parallel-web-tools
|
|
6
6
|
Project-URL: Documentation, https://docs.parallel.ai
|
|
@@ -24,7 +24,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
|
24
24
|
Requires-Python: >=3.10
|
|
25
25
|
Requires-Dist: click>=8.1.0
|
|
26
26
|
Requires-Dist: httpx>=0.25.0
|
|
27
|
-
Requires-Dist: parallel-web>=0.
|
|
27
|
+
Requires-Dist: parallel-web>=0.6.0
|
|
28
28
|
Requires-Dist: python-dotenv>=1.0.0
|
|
29
29
|
Requires-Dist: rich>=13.0.0
|
|
30
30
|
Provides-Extra: all
|
|
@@ -52,19 +52,19 @@ Requires-Dist: duckdb>=1.0.0; extra == 'dev'
|
|
|
52
52
|
Requires-Dist: nest-asyncio>=1.6.0; extra == 'dev'
|
|
53
53
|
Requires-Dist: pandas>=2.3.0; extra == 'dev'
|
|
54
54
|
Requires-Dist: polars>=1.37.0; extra == 'dev'
|
|
55
|
-
Requires-Dist: pre-commit>=4.
|
|
55
|
+
Requires-Dist: pre-commit>=4.6.0; extra == 'dev'
|
|
56
56
|
Requires-Dist: pyarrow>=18.0.0; extra == 'dev'
|
|
57
|
-
Requires-Dist: pyinstaller>=6.
|
|
57
|
+
Requires-Dist: pyinstaller>=6.20.0; extra == 'dev'
|
|
58
58
|
Requires-Dist: pyspark>=3.4.0; extra == 'dev'
|
|
59
|
-
Requires-Dist: pytest-cov>=
|
|
60
|
-
Requires-Dist: pytest>=
|
|
59
|
+
Requires-Dist: pytest-cov>=7.0.0; extra == 'dev'
|
|
60
|
+
Requires-Dist: pytest>=9.0.0; extra == 'dev'
|
|
61
61
|
Requires-Dist: pyyaml>=6.0.0; extra == 'dev'
|
|
62
62
|
Requires-Dist: questionary>=2.0.0; extra == 'dev'
|
|
63
|
-
Requires-Dist: ruff>=0.
|
|
63
|
+
Requires-Dist: ruff>=0.15.0; extra == 'dev'
|
|
64
64
|
Requires-Dist: snowflake-connector-python>=3.0.0; extra == 'dev'
|
|
65
65
|
Requires-Dist: sqlalchemy-bigquery>=1.11.0; extra == 'dev'
|
|
66
66
|
Requires-Dist: sqlalchemy>=2.0.0; extra == 'dev'
|
|
67
|
-
Requires-Dist: ty>=0.0.
|
|
67
|
+
Requires-Dist: ty>=0.0.33; extra == 'dev'
|
|
68
68
|
Provides-Extra: duckdb
|
|
69
69
|
Requires-Dist: duckdb>=1.0.0; extra == 'duckdb'
|
|
70
70
|
Requires-Dist: nest-asyncio>=1.6.0; extra == 'duckdb'
|
|
@@ -156,7 +156,7 @@ pip install parallel-web-tools[all]
|
|
|
156
156
|
```
|
|
157
157
|
parallel-cli
|
|
158
158
|
├── auth # Check authentication status
|
|
159
|
-
├── login # OAuth login (
|
|
159
|
+
├── login # Device OAuth login (single command)
|
|
160
160
|
├── logout # Remove stored credentials
|
|
161
161
|
├── search # Web search
|
|
162
162
|
├── extract / fetch # Extract content from URLs
|
|
@@ -183,14 +183,13 @@ parallel-cli
|
|
|
183
183
|
│ ├── schema # Get the schema for a FindAll run
|
|
184
184
|
│ └── cancel # Cancel a running FindAll
|
|
185
185
|
└── monitor # Continuous web change tracking
|
|
186
|
-
├── create # Create a new web monitor
|
|
187
|
-
├── list # List
|
|
186
|
+
├── create # Create a new web monitor (event_stream or snapshot)
|
|
187
|
+
├── list # List monitors (cursor paginated)
|
|
188
188
|
├── get # Get monitor details
|
|
189
|
-
├── update # Update
|
|
190
|
-
├──
|
|
189
|
+
├── update # Update frequency, webhook, metadata
|
|
190
|
+
├── cancel # Cancel a monitor (irreversible)
|
|
191
191
|
├── events # List events for a monitor
|
|
192
|
-
|
|
193
|
-
└── simulate # Simulate webhook event for testing
|
|
192
|
+
└── trigger # Trigger an immediate one-off run
|
|
194
193
|
```
|
|
195
194
|
|
|
196
195
|
## Quick Start
|
|
@@ -198,12 +197,9 @@ parallel-cli
|
|
|
198
197
|
### 1. Authenticate
|
|
199
198
|
|
|
200
199
|
```bash
|
|
201
|
-
#
|
|
200
|
+
# Device OAuth login (shows code and opens browser)
|
|
202
201
|
parallel-cli login
|
|
203
202
|
|
|
204
|
-
# Device authorization flow — for SSH, containers, CI, or headless environments
|
|
205
|
-
parallel-cli login --device
|
|
206
|
-
|
|
207
203
|
# Or set environment variable
|
|
208
204
|
export PARALLEL_API_KEY=your_api_key
|
|
209
205
|
```
|
|
@@ -346,7 +342,7 @@ parallel-cli enrich suggest "Find CEO" --json
|
|
|
346
342
|
parallel-cli findall run "AI startups in healthcare" --json
|
|
347
343
|
|
|
348
344
|
# Monitor: track web changes
|
|
349
|
-
parallel-cli monitor create "Track Tesla SEC filings" --
|
|
345
|
+
parallel-cli monitor create "Track Tesla SEC filings" --frequency 1d --json
|
|
350
346
|
|
|
351
347
|
# Plan without prompts (provide all args)
|
|
352
348
|
parallel-cli enrich plan -o config.yaml \
|
|
@@ -475,14 +471,14 @@ Track web changes programmatically:
|
|
|
475
471
|
```python
|
|
476
472
|
from parallel_web_tools import create_monitor, list_monitors, get_monitor
|
|
477
473
|
|
|
478
|
-
# Create
|
|
479
|
-
monitor = create_monitor(query="Track Tesla SEC filings",
|
|
474
|
+
# Create an event_stream monitor (the default)
|
|
475
|
+
monitor = create_monitor(query="Track Tesla SEC filings", frequency="1d")
|
|
480
476
|
|
|
481
|
-
# List all monitors
|
|
477
|
+
# List all monitors (cursor paginated)
|
|
482
478
|
monitors = list_monitors()
|
|
483
479
|
|
|
484
|
-
# Get monitor details
|
|
485
|
-
details = get_monitor(monitor
|
|
480
|
+
# Get monitor details
|
|
481
|
+
details = get_monitor(monitor["monitor_id"])
|
|
486
482
|
```
|
|
487
483
|
|
|
488
484
|
## YAML Configuration Format
|
|
@@ -527,10 +523,6 @@ uv sync --all-extras
|
|
|
527
523
|
uv run pytest tests/ -v
|
|
528
524
|
```
|
|
529
525
|
|
|
530
|
-
`uv build` produces Python package artifacts (sdist/wheel), not standalone CLI binaries.
|
|
531
|
-
To build the standalone `parallel-cli` archive locally, use `uv run python scripts/build.py`.
|
|
532
|
-
See `MAINTAINERS.md` for the full release-style binary build flow.
|
|
533
|
-
|
|
534
526
|
## License
|
|
535
527
|
|
|
536
528
|
MIT
|
|
@@ -70,7 +70,7 @@ pip install parallel-web-tools[all]
|
|
|
70
70
|
```
|
|
71
71
|
parallel-cli
|
|
72
72
|
├── auth # Check authentication status
|
|
73
|
-
├── login # OAuth login (
|
|
73
|
+
├── login # Device OAuth login (single command)
|
|
74
74
|
├── logout # Remove stored credentials
|
|
75
75
|
├── search # Web search
|
|
76
76
|
├── extract / fetch # Extract content from URLs
|
|
@@ -97,14 +97,13 @@ parallel-cli
|
|
|
97
97
|
│ ├── schema # Get the schema for a FindAll run
|
|
98
98
|
│ └── cancel # Cancel a running FindAll
|
|
99
99
|
└── monitor # Continuous web change tracking
|
|
100
|
-
├── create # Create a new web monitor
|
|
101
|
-
├── list # List
|
|
100
|
+
├── create # Create a new web monitor (event_stream or snapshot)
|
|
101
|
+
├── list # List monitors (cursor paginated)
|
|
102
102
|
├── get # Get monitor details
|
|
103
|
-
├── update # Update
|
|
104
|
-
├──
|
|
103
|
+
├── update # Update frequency, webhook, metadata
|
|
104
|
+
├── cancel # Cancel a monitor (irreversible)
|
|
105
105
|
├── events # List events for a monitor
|
|
106
|
-
|
|
107
|
-
└── simulate # Simulate webhook event for testing
|
|
106
|
+
└── trigger # Trigger an immediate one-off run
|
|
108
107
|
```
|
|
109
108
|
|
|
110
109
|
## Quick Start
|
|
@@ -112,12 +111,9 @@ parallel-cli
|
|
|
112
111
|
### 1. Authenticate
|
|
113
112
|
|
|
114
113
|
```bash
|
|
115
|
-
#
|
|
114
|
+
# Device OAuth login (shows code and opens browser)
|
|
116
115
|
parallel-cli login
|
|
117
116
|
|
|
118
|
-
# Device authorization flow — for SSH, containers, CI, or headless environments
|
|
119
|
-
parallel-cli login --device
|
|
120
|
-
|
|
121
117
|
# Or set environment variable
|
|
122
118
|
export PARALLEL_API_KEY=your_api_key
|
|
123
119
|
```
|
|
@@ -260,7 +256,7 @@ parallel-cli enrich suggest "Find CEO" --json
|
|
|
260
256
|
parallel-cli findall run "AI startups in healthcare" --json
|
|
261
257
|
|
|
262
258
|
# Monitor: track web changes
|
|
263
|
-
parallel-cli monitor create "Track Tesla SEC filings" --
|
|
259
|
+
parallel-cli monitor create "Track Tesla SEC filings" --frequency 1d --json
|
|
264
260
|
|
|
265
261
|
# Plan without prompts (provide all args)
|
|
266
262
|
parallel-cli enrich plan -o config.yaml \
|
|
@@ -389,14 +385,14 @@ Track web changes programmatically:
|
|
|
389
385
|
```python
|
|
390
386
|
from parallel_web_tools import create_monitor, list_monitors, get_monitor
|
|
391
387
|
|
|
392
|
-
# Create
|
|
393
|
-
monitor = create_monitor(query="Track Tesla SEC filings",
|
|
388
|
+
# Create an event_stream monitor (the default)
|
|
389
|
+
monitor = create_monitor(query="Track Tesla SEC filings", frequency="1d")
|
|
394
390
|
|
|
395
|
-
# List all monitors
|
|
391
|
+
# List all monitors (cursor paginated)
|
|
396
392
|
monitors = list_monitors()
|
|
397
393
|
|
|
398
|
-
# Get monitor details
|
|
399
|
-
details = get_monitor(monitor
|
|
394
|
+
# Get monitor details
|
|
395
|
+
details = get_monitor(monitor["monitor_id"])
|
|
400
396
|
```
|
|
401
397
|
|
|
402
398
|
## YAML Configuration Format
|
|
@@ -441,10 +437,6 @@ uv sync --all-extras
|
|
|
441
437
|
uv run pytest tests/ -v
|
|
442
438
|
```
|
|
443
439
|
|
|
444
|
-
`uv build` produces Python package artifacts (sdist/wheel), not standalone CLI binaries.
|
|
445
|
-
To build the standalone `parallel-cli` archive locally, use `uv run python scripts/build.py`.
|
|
446
|
-
See `MAINTAINERS.md` for the full release-style binary build flow.
|
|
447
|
-
|
|
448
440
|
## License
|
|
449
441
|
|
|
450
442
|
MIT
|
|
@@ -9,6 +9,7 @@ from parallel_web_tools.core import (
|
|
|
9
9
|
ParseError,
|
|
10
10
|
ProcessorType,
|
|
11
11
|
SourceType,
|
|
12
|
+
cancel_monitor,
|
|
12
13
|
create_monitor,
|
|
13
14
|
enrich_batch,
|
|
14
15
|
enrich_single,
|
|
@@ -16,6 +17,9 @@ from parallel_web_tools.core import (
|
|
|
16
17
|
get_async_client,
|
|
17
18
|
get_auth_status,
|
|
18
19
|
get_client,
|
|
20
|
+
get_monitor,
|
|
21
|
+
list_monitor_events,
|
|
22
|
+
list_monitors,
|
|
19
23
|
load_schema,
|
|
20
24
|
logout,
|
|
21
25
|
parse_input_and_output_models,
|
|
@@ -27,9 +31,11 @@ from parallel_web_tools.core import (
|
|
|
27
31
|
run_findall,
|
|
28
32
|
run_research,
|
|
29
33
|
run_tasks,
|
|
34
|
+
trigger_monitor,
|
|
35
|
+
update_monitor,
|
|
30
36
|
)
|
|
31
37
|
|
|
32
|
-
__version__ = "0.
|
|
38
|
+
__version__ = "0.4.0"
|
|
33
39
|
|
|
34
40
|
__all__ = [
|
|
35
41
|
# Auth
|
|
@@ -61,7 +67,13 @@ __all__ = [
|
|
|
61
67
|
# FindAll
|
|
62
68
|
"run_findall",
|
|
63
69
|
# Monitor
|
|
70
|
+
"cancel_monitor",
|
|
64
71
|
"create_monitor",
|
|
72
|
+
"get_monitor",
|
|
73
|
+
"list_monitor_events",
|
|
74
|
+
"list_monitors",
|
|
75
|
+
"trigger_monitor",
|
|
76
|
+
"update_monitor",
|
|
65
77
|
# Research
|
|
66
78
|
"run_research",
|
|
67
79
|
]
|