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.
Files changed (30) hide show
  1. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/PKG-INFO +18 -18
  2. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/README.md +17 -17
  3. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/pyproject.toml +1 -1
  4. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/commands/company.py +1 -1
  5. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/commands/person.py +1 -1
  6. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/.gitignore +0 -0
  7. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/LICENSE +0 -0
  8. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/__init__.py +0 -0
  9. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/async_typer.py +0 -0
  10. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/client.py +0 -0
  11. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/commands/__init__.py +0 -0
  12. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/commands/credits.py +0 -0
  13. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/commands/utility.py +0 -0
  14. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/config.py +0 -0
  15. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/logging.py +0 -0
  16. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/login.py +0 -0
  17. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/main.py +0 -0
  18. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/output.py +0 -0
  19. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/src/datalegion_cli/update.py +0 -0
  20. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/__init__.py +0 -0
  21. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/conftest.py +0 -0
  22. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_client.py +0 -0
  23. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_commands.py +0 -0
  24. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_config.py +0 -0
  25. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_live.py +0 -0
  26. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_logging.py +0 -0
  27. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_login.py +0 -0
  28. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_output.py +0 -0
  29. {datalegion_cli-1.7.0 → datalegion_cli-1.7.1}/tests/test_package_contents.py +0 -0
  30. {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.0
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 private index)
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 release
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 source
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 config options
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 method detection
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 enrichment
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
- # Multiple results with minimum confidence
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 search (Beta)
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 discovery (Beta)
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 enrichment
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 search (Beta)
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 discovery (Beta)
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 commands
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 commands
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 / automation usage
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 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.
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 flags
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 private index)
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 release
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 source
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 config options
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 method detection
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 enrichment
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
- # Multiple results with minimum confidence
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 search (Beta)
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 discovery (Beta)
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 enrichment
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 search (Beta)
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 discovery (Beta)
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 commands
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 commands
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 / automation usage
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 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.
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 flags
248
+ ## Global Flags
249
249
 
250
250
  | Flag | Description |
251
251
  |------|-------------|
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "datalegion-cli"
3
- version = "1.7.0"
3
+ version = "1.7.1"
4
4
  description = "CLI for the Data Legion API — agent-friendly, fully async"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -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 (Beta).
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 (Beta).
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