datalegion-cli 1.7.0__tar.gz → 1.7.1__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.
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/PKG-INFO +18 -18
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/README.md +17 -17
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/pyproject.toml +1 -1
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/commands/company.py +1 -1
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/commands/person.py +1 -1
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/.gitignore +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/LICENSE +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/__init__.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/async_typer.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/client.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/commands/__init__.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/commands/credits.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/commands/utility.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/config.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/logging.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/login.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/main.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/output.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/update.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/__init__.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/conftest.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_client.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_commands.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_config.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_live.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_logging.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_login.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_output.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_package_contents.py +0 -0
- {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_update.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: datalegion-cli
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.1
|
|
4
4
|
Summary: CLI for the Data Legion API — agent-friendly, fully async
|
|
5
5
|
Project-URL: Homepage, https://www.datalegion.ai
|
|
6
6
|
Project-URL: Documentation, https://www.datalegion.ai/docs
|
|
@@ -62,7 +62,7 @@ datalegion-cli person enrich --email john@example.com
|
|
|
62
62
|
brew install datalegion-ai/tap/datalegion-cli
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
### From PyPI (or
|
|
65
|
+
### From PyPI (or Private Index)
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
68
|
uv pip install datalegion-cli
|
|
@@ -80,7 +80,7 @@ To install from a private index:
|
|
|
80
80
|
uv pip install datalegion-cli --extra-index-url https://your-private-index.com/simple
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
### From GitHub
|
|
83
|
+
### From GitHub Release
|
|
84
84
|
|
|
85
85
|
Download the `.whl` from the [latest release](https://github.com/datalegion-ai/datalegion-cli/releases/latest) and install:
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ Download the `.whl` from the [latest release](https://github.com/datalegion-ai/d
|
|
|
88
88
|
uv pip install datalegion_cli-*.whl
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
### From
|
|
91
|
+
### From Source
|
|
92
92
|
|
|
93
93
|
```bash
|
|
94
94
|
git clone https://github.com/datalegion-ai/datalegion-cli.git
|
|
@@ -120,7 +120,7 @@ Or via environment variable (takes precedence over file config):
|
|
|
120
120
|
export LEGION_API_KEY=legion_your_key_here
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
### Other
|
|
123
|
+
### Other Config Options
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
126
|
# Set the API base URL
|
|
@@ -138,7 +138,7 @@ datalegion-cli config path
|
|
|
138
138
|
|
|
139
139
|
Config is stored at `~/.datalegion/config.toml`. Override the location with `LEGION_CONFIG_DIR`.
|
|
140
140
|
|
|
141
|
-
### Install
|
|
141
|
+
### Install Method Detection
|
|
142
142
|
|
|
143
143
|
The `update` command auto-detects how the CLI was installed:
|
|
144
144
|
|
|
@@ -153,7 +153,7 @@ You can override detection by setting `install_method` in config. For pip instal
|
|
|
153
153
|
|
|
154
154
|
## Usage
|
|
155
155
|
|
|
156
|
-
### Person
|
|
156
|
+
### Person Enrichment
|
|
157
157
|
|
|
158
158
|
```bash
|
|
159
159
|
# By email
|
|
@@ -165,28 +165,28 @@ datalegion-cli person enrich --name "Jane Smith" --company "Acme Corp" --city "N
|
|
|
165
165
|
# By LinkedIn
|
|
166
166
|
datalegion-cli person enrich --social-url "https://linkedin.com/in/johndoe"
|
|
167
167
|
|
|
168
|
-
#
|
|
168
|
+
# Minimum confidence
|
|
169
169
|
datalegion-cli person enrich --email john@example.com --min-confidence high
|
|
170
170
|
|
|
171
171
|
# Select specific fields
|
|
172
172
|
datalegion-cli person enrich --email john@example.com --fields "full_name,emails,phones"
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
-
### Person
|
|
175
|
+
### Person Search
|
|
176
176
|
|
|
177
177
|
```bash
|
|
178
178
|
# SQL-based search
|
|
179
179
|
datalegion-cli person search "SELECT * FROM people WHERE company_name ILIKE '%google%' AND state = 'CA'" --limit 5
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
-
### Person
|
|
182
|
+
### Person Discovery (Beta)
|
|
183
183
|
|
|
184
184
|
```bash
|
|
185
185
|
# Natural-language search
|
|
186
186
|
datalegion-cli person discover "software engineers in San Francisco who know Rust" --limit 10
|
|
187
187
|
```
|
|
188
188
|
|
|
189
|
-
### Company
|
|
189
|
+
### Company Enrichment
|
|
190
190
|
|
|
191
191
|
```bash
|
|
192
192
|
# By domain
|
|
@@ -199,21 +199,21 @@ datalegion-cli company enrich --ticker AAPL
|
|
|
199
199
|
datalegion-cli company enrich --name "Stripe" --industry "Financial Services"
|
|
200
200
|
```
|
|
201
201
|
|
|
202
|
-
### Company
|
|
202
|
+
### Company Search
|
|
203
203
|
|
|
204
204
|
```bash
|
|
205
205
|
# SQL-based search
|
|
206
206
|
datalegion-cli company search "SELECT * FROM companies WHERE industry ILIKE '%software%' AND legion_employee_count > 100"
|
|
207
207
|
```
|
|
208
208
|
|
|
209
|
-
### Company
|
|
209
|
+
### Company Discovery (Beta)
|
|
210
210
|
|
|
211
211
|
```bash
|
|
212
212
|
# Natural-language search
|
|
213
213
|
datalegion-cli company discover "fintech startups in New York with under 50 employees"
|
|
214
214
|
```
|
|
215
215
|
|
|
216
|
-
### Utility
|
|
216
|
+
### Utility Commands
|
|
217
217
|
|
|
218
218
|
```bash
|
|
219
219
|
# Clean and normalize fields
|
|
@@ -240,7 +240,7 @@ datalegion-cli credits balance
|
|
|
240
240
|
datalegion-cli credits usage --from 2026-01-01 --to 2026-03-01
|
|
241
241
|
```
|
|
242
242
|
|
|
243
|
-
### Other
|
|
243
|
+
### Other Commands
|
|
244
244
|
|
|
245
245
|
```bash
|
|
246
246
|
# Check for updates
|
|
@@ -253,7 +253,7 @@ datalegion-cli update
|
|
|
253
253
|
datalegion-cli version
|
|
254
254
|
```
|
|
255
255
|
|
|
256
|
-
## Agent /
|
|
256
|
+
## Agent / Automation Usage
|
|
257
257
|
|
|
258
258
|
The CLI is designed to be called by AI agents and scripts. Key patterns:
|
|
259
259
|
|
|
@@ -274,13 +274,13 @@ datalegion-cli person enrich --email bad 2>/dev/null
|
|
|
274
274
|
|
|
275
275
|
## Sandbox
|
|
276
276
|
|
|
277
|
-
Try commands without spending credits: `--sandbox` (or `LEGION_SANDBOX=1`, or `datalegion-cli config set sandbox true`) makes
|
|
277
|
+
Try commands without spending credits: `--sandbox` (or `LEGION_SANDBOX=1`, or `datalegion-cli config set sandbox true`) makes Enrich, Bulk Enrich, Search and Discover return sample records with every field a real record has. Utilities, which are free, still call the real API. Sandbox discover answers only a few fixed example queries.
|
|
278
278
|
|
|
279
279
|
```bash
|
|
280
280
|
datalegion-cli --sandbox person enrich --email anyone@example.com
|
|
281
281
|
```
|
|
282
282
|
|
|
283
|
-
## Global
|
|
283
|
+
## Global Flags
|
|
284
284
|
|
|
285
285
|
| Flag | Description |
|
|
286
286
|
|------|-------------|
|
|
@@ -27,7 +27,7 @@ datalegion-cli person enrich --email john@example.com
|
|
|
27
27
|
brew install datalegion-ai/tap/datalegion-cli
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
### From PyPI (or
|
|
30
|
+
### From PyPI (or Private Index)
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
uv pip install datalegion-cli
|
|
@@ -45,7 +45,7 @@ To install from a private index:
|
|
|
45
45
|
uv pip install datalegion-cli --extra-index-url https://your-private-index.com/simple
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
### From GitHub
|
|
48
|
+
### From GitHub Release
|
|
49
49
|
|
|
50
50
|
Download the `.whl` from the [latest release](https://github.com/datalegion-ai/datalegion-cli/releases/latest) and install:
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@ Download the `.whl` from the [latest release](https://github.com/datalegion-ai/d
|
|
|
53
53
|
uv pip install datalegion_cli-*.whl
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
### From
|
|
56
|
+
### From Source
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
59
|
git clone https://github.com/datalegion-ai/datalegion-cli.git
|
|
@@ -85,7 +85,7 @@ Or via environment variable (takes precedence over file config):
|
|
|
85
85
|
export LEGION_API_KEY=legion_your_key_here
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
### Other
|
|
88
|
+
### Other Config Options
|
|
89
89
|
|
|
90
90
|
```bash
|
|
91
91
|
# Set the API base URL
|
|
@@ -103,7 +103,7 @@ datalegion-cli config path
|
|
|
103
103
|
|
|
104
104
|
Config is stored at `~/.datalegion/config.toml`. Override the location with `LEGION_CONFIG_DIR`.
|
|
105
105
|
|
|
106
|
-
### Install
|
|
106
|
+
### Install Method Detection
|
|
107
107
|
|
|
108
108
|
The `update` command auto-detects how the CLI was installed:
|
|
109
109
|
|
|
@@ -118,7 +118,7 @@ You can override detection by setting `install_method` in config. For pip instal
|
|
|
118
118
|
|
|
119
119
|
## Usage
|
|
120
120
|
|
|
121
|
-
### Person
|
|
121
|
+
### Person Enrichment
|
|
122
122
|
|
|
123
123
|
```bash
|
|
124
124
|
# By email
|
|
@@ -130,28 +130,28 @@ datalegion-cli person enrich --name "Jane Smith" --company "Acme Corp" --city "N
|
|
|
130
130
|
# By LinkedIn
|
|
131
131
|
datalegion-cli person enrich --social-url "https://linkedin.com/in/johndoe"
|
|
132
132
|
|
|
133
|
-
#
|
|
133
|
+
# Minimum confidence
|
|
134
134
|
datalegion-cli person enrich --email john@example.com --min-confidence high
|
|
135
135
|
|
|
136
136
|
# Select specific fields
|
|
137
137
|
datalegion-cli person enrich --email john@example.com --fields "full_name,emails,phones"
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
### Person
|
|
140
|
+
### Person Search
|
|
141
141
|
|
|
142
142
|
```bash
|
|
143
143
|
# SQL-based search
|
|
144
144
|
datalegion-cli person search "SELECT * FROM people WHERE company_name ILIKE '%google%' AND state = 'CA'" --limit 5
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
-
### Person
|
|
147
|
+
### Person Discovery (Beta)
|
|
148
148
|
|
|
149
149
|
```bash
|
|
150
150
|
# Natural-language search
|
|
151
151
|
datalegion-cli person discover "software engineers in San Francisco who know Rust" --limit 10
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
### Company
|
|
154
|
+
### Company Enrichment
|
|
155
155
|
|
|
156
156
|
```bash
|
|
157
157
|
# By domain
|
|
@@ -164,21 +164,21 @@ datalegion-cli company enrich --ticker AAPL
|
|
|
164
164
|
datalegion-cli company enrich --name "Stripe" --industry "Financial Services"
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
### Company
|
|
167
|
+
### Company Search
|
|
168
168
|
|
|
169
169
|
```bash
|
|
170
170
|
# SQL-based search
|
|
171
171
|
datalegion-cli company search "SELECT * FROM companies WHERE industry ILIKE '%software%' AND legion_employee_count > 100"
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
### Company
|
|
174
|
+
### Company Discovery (Beta)
|
|
175
175
|
|
|
176
176
|
```bash
|
|
177
177
|
# Natural-language search
|
|
178
178
|
datalegion-cli company discover "fintech startups in New York with under 50 employees"
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
-
### Utility
|
|
181
|
+
### Utility Commands
|
|
182
182
|
|
|
183
183
|
```bash
|
|
184
184
|
# Clean and normalize fields
|
|
@@ -205,7 +205,7 @@ datalegion-cli credits balance
|
|
|
205
205
|
datalegion-cli credits usage --from 2026-01-01 --to 2026-03-01
|
|
206
206
|
```
|
|
207
207
|
|
|
208
|
-
### Other
|
|
208
|
+
### Other Commands
|
|
209
209
|
|
|
210
210
|
```bash
|
|
211
211
|
# Check for updates
|
|
@@ -218,7 +218,7 @@ datalegion-cli update
|
|
|
218
218
|
datalegion-cli version
|
|
219
219
|
```
|
|
220
220
|
|
|
221
|
-
## Agent /
|
|
221
|
+
## Agent / Automation Usage
|
|
222
222
|
|
|
223
223
|
The CLI is designed to be called by AI agents and scripts. Key patterns:
|
|
224
224
|
|
|
@@ -239,13 +239,13 @@ datalegion-cli person enrich --email bad 2>/dev/null
|
|
|
239
239
|
|
|
240
240
|
## Sandbox
|
|
241
241
|
|
|
242
|
-
Try commands without spending credits: `--sandbox` (or `LEGION_SANDBOX=1`, or `datalegion-cli config set sandbox true`) makes
|
|
242
|
+
Try commands without spending credits: `--sandbox` (or `LEGION_SANDBOX=1`, or `datalegion-cli config set sandbox true`) makes Enrich, Bulk Enrich, Search and Discover return sample records with every field a real record has. Utilities, which are free, still call the real API. Sandbox discover answers only a few fixed example queries.
|
|
243
243
|
|
|
244
244
|
```bash
|
|
245
245
|
datalegion-cli --sandbox person enrich --email anyone@example.com
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
## Global
|
|
248
|
+
## Global Flags
|
|
249
249
|
|
|
250
250
|
| Flag | Description |
|
|
251
251
|
|------|-------------|
|
|
@@ -108,7 +108,7 @@ async def search(
|
|
|
108
108
|
include_fields: FieldsInclude = None,
|
|
109
109
|
exclude_fields: FieldsExclude = None,
|
|
110
110
|
) -> None:
|
|
111
|
-
"""Search for companies with a SQL SELECT over the companies table, no LIMIT
|
|
111
|
+
"""Search for companies with a SQL SELECT over the companies table, no LIMIT.
|
|
112
112
|
|
|
113
113
|
Examples:
|
|
114
114
|
datalegion-cli company search "SELECT * FROM companies WHERE industry ILIKE '%software%' AND legion_employee_count > 100"
|
|
@@ -134,7 +134,7 @@ async def search(
|
|
|
134
134
|
include_fields: FieldsInclude = None,
|
|
135
135
|
exclude_fields: FieldsExclude = None,
|
|
136
136
|
) -> None:
|
|
137
|
-
"""Search for people with a SQL SELECT over the people table, no LIMIT
|
|
137
|
+
"""Search for people with a SQL SELECT over the people table, no LIMIT.
|
|
138
138
|
|
|
139
139
|
Examples:
|
|
140
140
|
datalegion-cli person search "SELECT * FROM people WHERE job_title = 'ceo' AND company_name ILIKE '%acme%'"
|
|
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
|