validin-sdk 0.1.1__tar.gz → 0.3.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.
Files changed (75) hide show
  1. validin_sdk-0.3.0/PKG-INFO +788 -0
  2. validin_sdk-0.3.0/README.md +774 -0
  3. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/pyproject.toml +7 -4
  4. validin_sdk-0.3.0/setup.cfg +23 -0
  5. validin_sdk-0.3.0/setup.py +3 -0
  6. validin_sdk-0.3.0/src/validin/__init__.py +114 -0
  7. validin_sdk-0.3.0/src/validin/_clock.py +30 -0
  8. validin_sdk-0.3.0/src/validin/_config.py +45 -0
  9. validin_sdk-0.3.0/src/validin/_dates.py +89 -0
  10. validin_sdk-0.3.0/src/validin/_inputs.py +32 -0
  11. validin_sdk-0.3.0/src/validin/_pacing.py +28 -0
  12. validin_sdk-0.3.0/src/validin/_record.py +33 -0
  13. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/annotation_record.py +11 -0
  14. validin_sdk-0.3.0/src/validin/bulk_api.py +54 -0
  15. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/certificate_record.py +5 -41
  16. validin_sdk-0.3.0/src/validin/cli/__init__.py +0 -0
  17. validin_sdk-0.3.0/src/validin/cli/commands/__init__.py +22 -0
  18. validin_sdk-0.3.0/src/validin/cli/commands/account.py +148 -0
  19. validin_sdk-0.3.0/src/validin/cli/commands/bulk.py +113 -0
  20. validin_sdk-0.3.0/src/validin/cli/commands/intel.py +329 -0
  21. validin_sdk-0.3.0/src/validin/cli/commands/lookups.py +174 -0
  22. validin_sdk-0.3.0/src/validin/cli/commands/opendirs.py +202 -0
  23. validin_sdk-0.3.0/src/validin/cli/commands/projects.py +590 -0
  24. validin_sdk-0.3.0/src/validin/cli/commands/scans.py +111 -0
  25. validin_sdk-0.3.0/src/validin/cli/commands/setup.py +39 -0
  26. validin_sdk-0.3.0/src/validin/cli/commands/submit.py +45 -0
  27. validin_sdk-0.3.0/src/validin/cli/commands/threats.py +132 -0
  28. validin_sdk-0.3.0/src/validin/cli/commands/yara.py +258 -0
  29. validin_sdk-0.3.0/src/validin/cli/completion.py +235 -0
  30. validin_sdk-0.3.0/src/validin/cli/config.py +57 -0
  31. validin_sdk-0.3.0/src/validin/cli/main.py +95 -0
  32. validin_sdk-0.3.0/src/validin/cli/onboarding.py +128 -0
  33. validin_sdk-0.3.0/src/validin/cli/render.py +256 -0
  34. validin_sdk-0.3.0/src/validin/cli/runner.py +469 -0
  35. validin_sdk-0.3.0/src/validin/cli/term.py +145 -0
  36. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/client.py +525 -522
  37. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/content.py +63 -14
  38. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/dns_record.py +9 -36
  39. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/enriched_indicator.py +46 -0
  40. validin_sdk-0.3.0/src/validin/errors.py +122 -0
  41. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/host_response_record.py +11 -52
  42. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/indicator.py +64 -19
  43. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/lookalike_record.py +31 -39
  44. validin_sdk-0.3.0/src/validin/open_directories_api.py +332 -0
  45. validin_sdk-0.3.0/src/validin/open_directory.py +450 -0
  46. validin_sdk-0.3.0/src/validin/osint_api.py +151 -0
  47. validin_sdk-0.3.0/src/validin/osint_record.py +87 -0
  48. validin_sdk-0.3.0/src/validin/pivot_record.py +119 -0
  49. validin_sdk-0.3.0/src/validin/pivots_api.py +168 -0
  50. validin_sdk-0.3.0/src/validin/project.py +232 -0
  51. validin_sdk-0.3.0/src/validin/projects_api.py +621 -0
  52. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/registration.py +102 -37
  53. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/registration_record.py +54 -37
  54. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/result_set.py +43 -0
  55. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/scan.py +11 -1
  56. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/scan_record.py +3 -4
  57. validin_sdk-0.3.0/src/validin/subdomain_record.py +49 -0
  58. validin_sdk-0.3.0/src/validin/threat_record.py +203 -0
  59. validin_sdk-0.3.0/src/validin/threats_api.py +83 -0
  60. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin/yara_match_record.py +28 -52
  61. validin_sdk-0.3.0/src/validin_sdk.egg-info/PKG-INFO +788 -0
  62. validin_sdk-0.3.0/src/validin_sdk.egg-info/SOURCES.txt +66 -0
  63. validin_sdk-0.3.0/src/validin_sdk.egg-info/entry_points.txt +2 -0
  64. validin_sdk-0.3.0/src/validin_sdk.egg-info/requires.txt +1 -0
  65. validin_sdk-0.1.1/PKG-INFO +0 -516
  66. validin_sdk-0.1.1/README.md +0 -500
  67. validin_sdk-0.1.1/setup.cfg +0 -4
  68. validin_sdk-0.1.1/src/validin/__init__.py +0 -47
  69. validin_sdk-0.1.1/src/validin/errors.py +0 -15
  70. validin_sdk-0.1.1/src/validin_sdk.egg-info/PKG-INFO +0 -516
  71. validin_sdk-0.1.1/src/validin_sdk.egg-info/SOURCES.txt +0 -25
  72. validin_sdk-0.1.1/src/validin_sdk.egg-info/requires.txt +0 -4
  73. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/LICENSE +0 -0
  74. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin_sdk.egg-info/dependency_links.txt +0 -0
  75. {validin_sdk-0.1.1 → validin_sdk-0.3.0}/src/validin_sdk.egg-info/top_level.txt +0 -0
@@ -0,0 +1,788 @@
1
+ Metadata-Version: 2.4
2
+ Name: validin-sdk
3
+ Version: 0.3.0
4
+ Summary: A lightweight Python SDK for the Validin API
5
+ Author-email: Elliot Roe <elliot@validin.com>, Sreekar Madabushi <sreekar@validin.com>
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.9
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: requests>=2.31.0
13
+ Dynamic: license-file
14
+
15
+ # Validin Python SDK
16
+
17
+ A Python SDK for the Validin API, designed to enable large-scale monitoring and enrichment workflows.
18
+
19
+ ## Requirements
20
+
21
+ - Python 3.9+
22
+ - A Validin API key
23
+
24
+ ## Installation
25
+
26
+ ```bash
27
+ pip install validin-sdk
28
+ ```
29
+
30
+ ```python
31
+ from validin import Client
32
+ ```
33
+
34
+ ## Configuration
35
+
36
+ Run `validin setup` once to save your API key and endpoint. Python scripts running as the same user can then call `Client()`. For CI or a one-off session, set environment variables:
37
+
38
+ ```bash
39
+ export VALIDIN_API_KEY="your-api-key"
40
+ ```
41
+
42
+ Enterprise users must also set their endpoint:
43
+
44
+ ```bash
45
+ export VALIDIN_BASE_URL="https://your-enterprise-endpoint.example.com"
46
+ ```
47
+
48
+ You can also pass these directly to the client:
49
+
50
+ ```python
51
+ from validin import Client
52
+
53
+ client = Client(api_key="your-api-key", base_url="https://your-enterprise-endpoint.example.com")
54
+ ```
55
+
56
+ For each setting, the SDK checks constructor arguments, environment variables, then the saved config. The fallback endpoint is `https://app.validin.com`.
57
+
58
+ ## Data and Privacy
59
+
60
+ The SDK, the `validin` CLI and the agent skills talk to one server: the Validin API at
61
+ `https://app.validin.com`, or the endpoint you configure. Requests use
62
+ HTTPS. Nothing is sent anywhere else, and there is no telemetry or usage reporting.
63
+
64
+ **Sent to the Validin API**, only as part of the request you make:
65
+
66
+ - your API key, in the `Authorization: Bearer` header of every request
67
+ - the indicators and search terms you query: domains, IPs, CIDRs, hashes, free-text strings
68
+ and query expressions
69
+ - what you submit or change: domains sent for a live scan, project names, notes, tags and
70
+ indicators, and YARA rules
71
+ - the client's default `python-requests` User-Agent
72
+
73
+ A live scan asks Validin to fetch the domains you submit. The fetch comes from Validin's
74
+ infrastructure, not your machine. The SDK never contacts the hosts it looks up.
75
+
76
+ **Stored on your machine:**
77
+
78
+ - `validin setup` saves your API key, endpoint and default output format to `~/.validin/config.json`. The file is
79
+ readable only by you (mode `0600`) in a directory only you can open (`0700`). Setting
80
+ `VALIDIN_API_KEY` instead keeps the key out of that file.
81
+ - Shell completion, if you enable it, writes a completion script and adds one line to your
82
+ shell's rc file.
83
+ - `validin opendirs get --save` writes a captured file only where you tell it to. Treat those
84
+ files as potentially malicious.
85
+
86
+ How Validin handles the data it receives is covered by the Validin terms and privacy policy:
87
+ <https://validin.com/terms/>.
88
+
89
+ ## Quick Start
90
+
91
+ Monitor a DNS TXT record query and add new results to a project:
92
+
93
+ ```python
94
+ from validin import Client
95
+
96
+ client = Client()
97
+
98
+ results = client.extra_history("anthropic-domain-verification*", lookback=1)
99
+ client.add_to_project("YOUR_PROJECT_ID", results.values)
100
+ ```
101
+
102
+ For more advanced workflows, see the [`examples/`](examples/) directory.
103
+
104
+ ## Command-Line Tool
105
+
106
+ Installing the package also installs a `validin` command:
107
+
108
+ ```bash
109
+ validin setup # save your API key
110
+ validin dns example.com
111
+ validin lookalikes acme.com -o list | validin reputation
112
+ validin pivots example.com # where a value was seen on other hosts (links, certs, redirects...)
113
+ validin threat show sdbot # named threats, their indicators and reports
114
+ validin commands --json # every command, option and output field
115
+ ```
116
+
117
+ Omit the indicators to read them from a pipe or file, as in `validin dns < domains.txt`. When you give indicators as arguments, stdin is not read, so the CLI works inside `while read` loops.
118
+
119
+ The CLI uses the format you choose in `validin setup` for terminals, pipes and redirected files.
120
+ The default is `table`. Use `--json` or `-o FORMAT` to override it for one command.
121
+ Scripts that read JSON should request it explicitly, for example `validin dns example.com --json | jq .count`.
122
+
123
+ ### Shell completion
124
+
125
+ Tab-complete commands, subcommands, options and option values (`--mode`, `--tag`, `-o`, ...)
126
+ in bash, zsh and fish. `validin setup` offers to turn it on for the shell in `$SHELL`: it saves the
127
+ script (`~/.validin/completion.<shell>`, or fish's completions directory) and adds one `source`
128
+ line to `~/.bashrc` / `~/.zshrc`. Rerun `validin setup` to enable it later or refresh it.
129
+
130
+ Completions are computed by the installed `validin` itself, so they stay current after upgrades.
131
+
132
+ ## AI Agent Skills
133
+
134
+ [`skills/`](skills/) teaches AI coding agents to hunt with the `validin` CLI. Each skill is a
135
+ self-contained `SKILL.md`:
136
+
137
+ | Skill | Covers |
138
+ |---|---|
139
+ | `validin-cli` | install, auth, output envelope, exit codes, piping, cost and safety rules |
140
+ | `validin-enrich` | reputation, verdicts and annotations (`reputation` / `enrich`), OSINT history and bulk context |
141
+ | `validin-dns` | passive DNS, extra records, PTR, TXT-token hunts, subdomains |
142
+ | `validin-web` | crawl history, fingerprint pivots (`crawl <hash>`, `pivots`), page content, certificates, live scans |
143
+ | `validin-registration` | WHOIS/RDAP history, live lookups, reverse search on registration fields |
144
+ | `validin-lookalikes` | typosquat and brand-abuse discovery and triage |
145
+ | `validin-opendirs` | open directories, file-hash hosting, safe sample download |
146
+ | `validin-projects` | projects, tags, alerts and YARA rules |
147
+ | `validin-threats` | named threat actors and malware families, their indicators and reports |
148
+ | `validin-investigate` | end-to-end investigation methodology and pivot playbooks |
149
+
150
+ **Claude Code** (this repo is a plugin marketplace):
151
+
152
+ ```bash
153
+ claude plugin marketplace add Validin/validin-python-sdk
154
+ claude plugin install validin@validin
155
+ ```
156
+
157
+ **Codex CLI** — Validin has not been published to the public OpenAI plugin directory.
158
+ To install all ten skills from this checkout, run these commands from the repository root
159
+ (tested with Codex CLI 0.173.0).
160
+
161
+ ```bash
162
+ codex plugin marketplace add .
163
+ codex plugin add validin@validin
164
+ ```
165
+
166
+ **Other agents** (Cursor, Windsurf, Cline, ...): the skills are plain Markdown. Point your
167
+ agent's rules file or `AGENTS.md` at `skills/<name>/SKILL.md`.
168
+
169
+ The skills need the CLI installed (`pip install validin-sdk==0.3.0`) and access to a saved API key or `VALIDIN_API_KEY` in the agent's environment.
170
+
171
+ ## Core Concepts
172
+
173
+ ### Indicators
174
+
175
+ An `Indicator` represents a queryable entity: a domain, IP address, hash, or raw string. The SDK automatically infers the type from a string, so you can pass raw strings directly to any client method:
176
+
177
+ ```python
178
+ client.dns_history("example.com") # inferred as domain
179
+ client.dns_history("1.1.1.1") # inferred as IP
180
+ client.extra_history("some-txt-value*") # inferred as string (wildcard)
181
+ ```
182
+
183
+ ### ResultSet
184
+
185
+ A `ResultSet` is the container returned by every query method. It provides:
186
+
187
+ - **Iteration** — loop over individual records (`for record in results`)
188
+ - `.keys` — deduplicated list of `Indicator` objects from each record (the domains/IPs represented)
189
+ - `.keys_str` — string values of `.keys`
190
+ - `.values` — deduplicated list of record values
191
+ - `.to_rows()` — convert all records to a list of dictionaries
192
+ - `.aggregate()` — flatten nested bulk results into a single deduplicated ResultSet
193
+
194
+ ### Records
195
+
196
+ Each query method returns a `ResultSet` containing typed record objects. Available record types:
197
+
198
+ - `DNSRecord`
199
+ - `CertificateRecord`
200
+ - `HostResponseRecord`
201
+ - `ScanRecord`
202
+ - `EnrichedIndicator` (from reputation lookups)
203
+ - `AnnotationRecord` (nested inside `EnrichedIndicator`)
204
+ - `LookalikeRecord`
205
+ - `RegistrationRecord`
206
+ - `YaraMatchRecord`
207
+ - `Content`
208
+
209
+ ### Enriched Indicators
210
+
211
+ An `EnrichedIndicator` is a subclass of `Indicator` that carries reputation and annotation data directly on the indicator itself. You encounter enriched indicators in two places:
212
+
213
+ **1. Enrichment lookups** — `client.enrich()` returns a `ResultSet` where each record is an `EnrichedIndicator` with `score`, `verdict`, and `annotations`:
214
+
215
+ ```python
216
+ results = client.enrich("example.com")
217
+ enriched = results[0]
218
+
219
+ print(enriched.value) # "example.com"
220
+ print(enriched.score) # 0
221
+ print(enriched.verdict) # "benign"
222
+ print(enriched.annotations) # tuple of AnnotationRecord objects
223
+ print(enriched.to_rows()) # annotations flattened to list of dicts
224
+ ```
225
+
226
+ For bulk enrichment, use `.keys` to iterate the `EnrichedIndicator` objects:
227
+
228
+ ```python
229
+ results = client.enrich(["example.com", "1.1.1.1", "google.com"])
230
+ for enriched in results.keys:
231
+ print(f"{enriched.value}: score={enriched.score}, verdict={enriched.verdict}")
232
+ print(enriched.to_rows())
233
+ ```
234
+
235
+ **2. History queries with `annotate=True`** — When you pass `annotate=True` to `dns_history()`, `extra_history()`, `host_responses()`, or `registration_history()`, the `key` and `value` fields on returned records are upgraded from plain `Indicator` to `EnrichedIndicator` when the API provides intel data:
236
+
237
+ ```python
238
+ results = client.dns_history("example.com", annotate=True)
239
+ for record in results:
240
+ if isinstance(record.value, EnrichedIndicator):
241
+ print(f"{record.value.value} has {len(record.value.annotations)} annotations")
242
+ print(record.value.informational)
243
+ ```
244
+
245
+ Since `EnrichedIndicator` is a subclass of `Indicator`, enriched indicators work everywhere a plain indicator does — you can pass them directly to `add_to_project()`, use them as input to other queries, or access `.value` and `.type` as usual.
246
+
247
+ ### Bulk Queries and Aggregation
248
+
249
+ Any method that supports bulk queries can also accept a list of indicators instead of a single value:
250
+
251
+ ```python
252
+ results = client.enrich(["example.com", "1.1.1.1", "google.com"])
253
+ ```
254
+
255
+ When you pass a list, the SDK:
256
+
257
+ - Rate-limits requests to 5 queries/second
258
+ - Retries transient failures (408, 429, 500, 502, 503, 504) with exponential backoff
259
+ - Keeps going when one indicator fails (not found, rejected, invalid) and records it in
260
+ `results.errors` as `{"indicator", "code", "status", "message"}`
261
+ - Stops and raises `ApiError` on 401 (bad key) and on 429 once retries run out, since every
262
+ remaining query would fail the same way
263
+
264
+ The returned `ResultSet` contains one child `ResultSet` per indicator. To flatten all results into a single deduplicated list, call `.aggregate()`:
265
+
266
+ ```python
267
+ results = client.dns_history(["example.com", "google.com", "cloudflare.com"])
268
+
269
+ # Iterate per-indicator results
270
+ for child_result_set in results:
271
+ print(child_result_set.query_key, len(child_result_set))
272
+
273
+ # Or flatten into one deduplicated set
274
+ all_records = results.aggregate()
275
+ print(all_records.to_rows())
276
+ ```
277
+
278
+ ## Available Methods
279
+
280
+ ### `client.dns_history(indicator)`
281
+
282
+ DNS record history for a domain, IP, or string.
283
+
284
+
285
+ | Indicator Type | API Route |
286
+ | -------------- | -------------------------------------- |
287
+ | Domain | `/api/axon/domain/dns/history/:domain` |
288
+ | IP | `/api/axon/ip/dns/history/:ip` |
289
+ | String | `/api/axon/string/dns/history` |
290
+
291
+
292
+ Supports bulk queries. Options: `limit`, `first_seen`, `last_seen`, `lookback`, `annotate`, `wildcard`, `categories_include`, `exclude_nx`.
293
+
294
+ ---
295
+
296
+ ### `client.extra_history(indicator)`
297
+
298
+ Extended DNS record history (TXT, SPF, etc.) for a domain, IP, or string.
299
+
300
+
301
+ | Indicator Type | API Route |
302
+ | -------------- | ------------------------------------ |
303
+ | Domain | `/api/axon/domain/dns/extra/:domain` |
304
+ | IP | `/api/axon/ip/dns/extra/:ip` |
305
+ | String | `/api/axon/string/dns/extra2` |
306
+
307
+
308
+ Supports bulk queries. Options: `limit`, `first_seen`, `last_seen`, `lookback`, `annotate`, `wildcard`, `categories_include`, `exclude_nx`.
309
+
310
+ ---
311
+
312
+ ### `client.host_responses(indicator)`
313
+
314
+ HTTP crawl/response history for a domain, IP, CIDR, or hash. For free-text searches
315
+ of titles, banners, or other response fields, use `client.pivots()` instead.
316
+
317
+
318
+ | Indicator Type | API Route |
319
+ | -------------- | ---------------------------------------- |
320
+ | Domain | `/api/axon/domain/crawl/history/:domain` |
321
+ | IP | `/api/axon/ip/crawl/history/:ip` |
322
+ | Hash | `/api/axon/hash/crawl/history/:hash` |
323
+ | CIDR | `/api/axon/ip/crawl/history/:ip/:cidr` |
324
+
325
+
326
+ Supports bulk queries. Options: `limit`, `lookback`, `annotate`.
327
+
328
+ ---
329
+
330
+ ### `client.enrich(indicator)`
331
+
332
+ Enrich a domain or IP with reputation score, verdict, and annotations. Returns a `ResultSet` of `EnrichedIndicator` objects (one per queried indicator), each carrying `score`, `verdict`, `annotations`, and `informational` fields.
333
+
334
+ Also available as `client.reputation()` (alias).
335
+
336
+
337
+ | Indicator Type | API Route |
338
+ | -------------- | ------------------------------------------- |
339
+ | Domain | `/api/axon/domain/reputation/quick/:domain` |
340
+ | IP | `/api/axon/ip/reputation/quick/:ip` |
341
+
342
+
343
+ Supports bulk queries. No additional options.
344
+
345
+ ---
346
+
347
+ ### `client.lookalikes(target)`
348
+
349
+ Find newly registered lookalike domains matching a domain or regex pattern.
350
+
351
+
352
+ | Target Type | API Route |
353
+ | ----------- | ------------------------------- |
354
+ | Domain | `/api/lookalike/domain/:domain` |
355
+ | Regex | `/api/lookalike/regex` |
356
+
357
+
358
+ Does not support bulk queries. Options: `exclude`, `limit` (1–250), `lookback` (1–90 days), `depth` (`labels`, `subdomains`, `fqdns`), `similarity` (0–4, domain targets only).
359
+
360
+ Regex targets can be passed as a compiled `re.Pattern` or a slash-delimited string:
361
+
362
+ ```python
363
+ client.lookalikes("/^(t-mobile|att|verizon)\.([a-z]{5,6})\.(icu|cc)$/")
364
+ ```
365
+
366
+ ---
367
+
368
+ ### `client.certificates(indicator)`
369
+
370
+ Historic certificate transparency matches for a domain.
371
+
372
+
373
+ | Indicator Type | API Route |
374
+ | -------------- | -------------------------------------- |
375
+ | Domain | `/api/axon/domain/certificates/:domain` |
376
+
377
+
378
+ Supports bulk queries. Options: `wildcard`, `limit` (1–20000), `first_seen`, `last_seen`, `lookback`, `time_format` (`unix` or `iso`).
379
+
380
+ ---
381
+
382
+ ### `client.ptr_history(indicator)`
383
+
384
+ Historic PTR/hostname records for a domain or IP.
385
+
386
+
387
+ | Indicator Type | API Route |
388
+ | -------------- | -------------------------------------- |
389
+ | Domain | `/api/axon/domain/dns/hostname/:domain` |
390
+ | IP | `/api/axon/ip/dns/hostname/:ip` |
391
+
392
+
393
+ Supports bulk queries. Options: `limit`, `first_seen`, `last_seen`, `lookback`, `annotate`, `time_format` (`unix` or `iso`), and `wildcard` for domain queries only.
394
+
395
+ ---
396
+
397
+ ### `client.start_scan(find)`
398
+
399
+ Start an enterprise live HTTP/S scan and return a `ScanJob`.
400
+
401
+
402
+ | API Route |
403
+ | ----------------------------- |
404
+ | `/api/axon/live/scan/start` |
405
+
406
+
407
+ Does not support bulk queries. Options: `countries`, `refer`, `user_agent`.
408
+
409
+ ---
410
+
411
+ ### `client.get_scan(scan_id)`
412
+
413
+ Fetch live scan status and return a `ScanJob`.
414
+
415
+
416
+ | API Route |
417
+ | ------------------------------------------ |
418
+ | `/api/axon/live/scan/results/:scan_id` |
419
+
420
+
421
+ Does not support bulk queries.
422
+
423
+ ---
424
+
425
+ ### `client.scan(find)`
426
+
427
+ Convenience wrapper around `start_scan()`. By default it waits for completion and returns a `ResultSet` of `ScanRecord` objects. Pass `wait=False` to get a `ScanJob` immediately.
428
+
429
+
430
+ | API Route |
431
+ | ----------------------------------------------------- |
432
+ | `/api/axon/live/scan/start` -> poll results -> crawl |
433
+
434
+
435
+ Options: `countries`, `refer`, `user_agent`, `wait`, `poll_interval`, `timeout`.
436
+
437
+ ---
438
+
439
+ ### `client.registration_history(indicator)`
440
+
441
+ WHOIS/RDAP registration history for a domain or string.
442
+
443
+
444
+ | Indicator Type | API Route |
445
+ | -------------- | ----------------------------------------------- |
446
+ | Domain | `/api/axon/domain/registration/history/:domain` |
447
+ | String | `/api/axon/string/registration/history2` |
448
+
449
+
450
+ Supports bulk queries. Options: `limit`, `first_seen`, `last_seen`, `lookback`, `annotate`, `wildcard`, `include_fields`.
451
+
452
+ `field="REGISTRANT_EMAIL"` (or any name in `validin.REGISTRATION_FIELDS`) searches that one field as
453
+ text via `/api/axon/string/registration/history2/:FIELD`, and the result keys are the matching domains.
454
+ Values are sent as typed, even ones that look like domains. An unknown field name gives a warning
455
+ (the API answers it with no records).
456
+
457
+ ---
458
+
459
+ ### `client.yara_matches(project_id, rule_id)`
460
+
461
+ Fetch YARA rule match results from a project. Auto-paginates all results by default.
462
+
463
+
464
+ | API Route |
465
+ | ------------------------------------------------------ |
466
+ | `/api/project/:project_id/yara/rules/:rule_id/matches` |
467
+
468
+
469
+ Does not support bulk queries. Options: `page`, `page_size` (provide both for manual pagination), `include_html`, `first_seen`, `last_seen`.
470
+
471
+ ---
472
+
473
+ ### `client.fetch_content(indicator)`
474
+
475
+ Fetch stored HTML content by body hash.
476
+
477
+
478
+ | API Route |
479
+ | ---------------------------------------- |
480
+ | `/api/axon/hash/content/html/sha1/:hash` |
481
+
482
+
483
+ Supports bulk queries. Accepts a hash string, `Indicator`, or `HostResponse` object with a `body_hash`.
484
+
485
+ ---
486
+
487
+ ### `client.pivots(indicator, category=None)`
488
+
489
+ Where a value was seen on other hosts: the IPs (`relation="ip"`) and hosts (`relation="host"`) whose
490
+ crawled responses contained it, as `PivotRecord` objects. `category` says where it was seen:
491
+
492
+ - **Domain:** pages linking to it (`ANCHORS_LINKS`, `JS_LINKS`...), certificates naming it (`CERT_DOMAIN`),
493
+ redirects to it (`LOCATION_DOMAIN`).
494
+ - **Hash:** hosts that served it (`BODY_SHA1`, `HEADER_HASH`...).
495
+ - **String:** hosts whose server banner, title or certificate fields contain it.
496
+ - **IP or CIDR:** hosts that redirect to it (`LOCATION_IP4`, from the `Location:` header). IPs also get
497
+ rows for what the IP's own responses contained (`relation="observed_on"`: server banner, title,
498
+ hashes...), which you can pivot on next.
499
+
500
+ Feed a row's `value` back in to pivot again.
501
+
502
+
503
+ | Indicator Type | API Route |
504
+ | -------------- | ------------------------------------------------------------------- |
505
+ | Domain | `/api/axon/domain/pivots/:domain[/:category]` |
506
+ | IP | `/api/axon/ip/pivots/:ip`, or `/api/axon/ip/pivots2/:ip/:category` |
507
+ | CIDR | `/api/axon/ip/pivots/:cidr` (no category) |
508
+ | Hash | `/api/axon/hash/pivots/:hash[/:category]` |
509
+ | String | `/api/axon/string/pivots2[/:category]` |
510
+
511
+
512
+ Supports bulk queries. Options: `category`, `limit`, `first_seen`, `last_seen`, `lookback`, `annotate`,
513
+ `wildcard`. Categories are case-insensitive and accept the `HOST-X` / `X-IP` forms. Known names per
514
+ type are in `validin.PIVOT_CATEGORIES`. An IP takes only `LOCATION_IP4` (redirects to it). An unknown category returns
515
+ no records rather than an error. An even-length string of 18 or more hexadecimal characters is inferred as a hash.
516
+
517
+ ---
518
+
519
+ ### `client.osint_history(indicator)` / `client.osint_context(indicators)`
520
+
521
+ `osint_history` returns the open-source lists and feeds (block lists, popularity rankings, cloud
522
+ ranges...) that included a domain, IP or CIDR, as `OsintRecord` objects with `source`, `url`, `tags`
523
+ and first/last seen. Public suffixes such as `co.uk` are refused by the API (`ApiError`, code
524
+ `bad_request`). Supports bulk queries. Options: `limit`, `first_seen`, `last_seen`, `lookback`,
525
+ `wildcard`.
526
+
527
+ `osint_context` returns reputation annotations for many domains and IPs in one POST per 1,000, as
528
+ `EnrichedIndicator` objects with `annotations` and `reasons`. Unlike `enrich()`, it gives no overall
529
+ `score` or `verdict`.
530
+
531
+
532
+ | Method | API Route |
533
+ | --------------- | -------------------------------------------------------------------- |
534
+ | `osint_history` | `/api/axon/domain/osint/history/:domain`, `/api/axon/ip/osint/history/:ip` |
535
+ | `osint_context` | `POST /api/axon/bulk/osint/context` |
536
+
537
+ ---
538
+
539
+ ### Threat groups
540
+
541
+ Named threats (actors, groups and malware families). These need the bulk or projects role.
542
+
543
+
544
+ | Method | API Route |
545
+ | ------------------------------------ | ------------------------------------------- |
546
+ | `threat_names(category=None)` | `/api/threat/names` |
547
+ | `threat_group(threat_key)` | `/api/threat/group/:threat_key/summary` |
548
+ | `threat_group_indicators(threat_key)`| `/api/threat/group/:threat_key/indicators` |
549
+ | `threat_group_reports(threat_key)` | `/api/threat/group/:threat_key/reports` |
550
+
551
+
552
+ `threat_names` returns `ThreatGroup` objects (category, aliases, indicator counts). `category` filters
553
+ to `malicious`, `malware` or `suspicious`. `threat_group` adds the name, MITRE techniques and
554
+ `activity` (indicators reported per period). Indicators are `ThreatIndicator` objects whose `key` is
555
+ a typed `Indicator`, and reports are `ThreatReport` objects (`url`, `date`, `source`). The indicator
556
+ and report methods take a list of keys for bulk lookups. An unknown key raises `ApiError` with code
557
+ `not_found`.
558
+
559
+ ---
560
+
561
+ ### `client.submit_domains(domains)`
562
+
563
+ Submit domains for Validin to start scanning. This can't be undone. Duplicates are dropped, and values
564
+ that aren't domains are returned in `invalid` without being sent. The rest go 10,000 per request.
565
+ Returns `{"requested", "valid", "accepted", "requests", "invalid"}`, where `accepted` is what the API
566
+ took. Needs full API access.
567
+
568
+
569
+ | API Route |
570
+ | ------------------------------------ |
571
+ | `POST /api/axon/submissions/domains` |
572
+
573
+ ---
574
+
575
+ ### `client.add_to_project(project_id, indicators)`
576
+
577
+ Add indicators to a Validin project.
578
+
579
+
580
+ | API Route |
581
+ | ----------------------------------------- |
582
+ | `/api/project/:project_id/indicators/add` |
583
+
584
+
585
+ Accepts a single indicator or a list. Options: `note`, `tags`.
586
+
587
+ ## Examples
588
+
589
+ Example scripts are in the `examples/` directory:
590
+
591
+ - `**lookalike_monitor.py**` — Regex lookalike search for telecom smishing domains, filter by registrar, add to project.
592
+ - `**dns_txt_record_monitor.py**` — Monitor a DNS TXT record wildcard query and add results to a project.
593
+ - `**bulk_indicator_enrichment.py**` — Bulk enrichment lookup across multiple indicators.
594
+ - `**ingest_yara_matches.py**` — Fetch all YARA rule matches for a project and print aggregated results.
595
+ - `**sample_host_responses.py**` — Bulk host response history with HTML content download.
596
+
597
+ ## Error Handling
598
+
599
+ The SDK raises `ApiError` for HTTP failures and `ValidinError` as a base exception class:
600
+
601
+ ```python
602
+ from validin import Client
603
+ from validin_sdk.errors import ApiError, ValidinError
604
+
605
+ client = Client()
606
+
607
+ try:
608
+ results = client.dns_history("example.com")
609
+ except ApiError as e:
610
+ print(f"HTTP {e.status_code}: {e.message}")
611
+ except ValidinError as e:
612
+ print(f"SDK error: {e}")
613
+ ```
614
+
615
+ ## API Coverage
616
+
617
+ The SDK currently covers **89 of 100** API endpoints.
618
+
619
+ | Status | Method | Endpoint | Summary | SDK Method |
620
+ |:------:|:------:|----------|---------|------------|
621
+ | | | **Bulk** | | |
622
+ | ✅ | POST | `/api/axon/bulk/osint/context` | Bulk OSINT Context | `osint_context()` |
623
+ | | | **Domain** | | |
624
+ | ✅ | GET | `/api/axon/domain/certificates/{domain}` | Domain Certificates | `certificates()` |
625
+ | ✅ | GET | `/api/axon/domain/crawl/history/{domain}` | Domain Crawl History | `host_responses()` |
626
+ | ✅ | GET | `/api/axon/domain/dns/extra/{domain}` | Domain DNS Extra | `extra_history()` |
627
+ | ✅ | GET | `/api/axon/domain/dns/history/{domain}` | Domain DNS History | `dns_history()` |
628
+ | ❌ | GET | `/api/axon/domain/dns/history/{domain}/A` | Domain DNS History - A | |
629
+ | ❌ | GET | `/api/axon/domain/dns/history/{domain}/AAAA` | Domain DNS History - AAAA | |
630
+ | ❌ | GET | `/api/axon/domain/dns/history/{domain}/NS` | Domain DNS History - NS | |
631
+ | ❌ | GET | `/api/axon/domain/dns/history/{domain}/NS_FOR` | Domain DNS History - NS_FOR | |
632
+ | ✅ | GET | `/api/axon/domain/dns/hostname/{domain}` | Domain DNS Hostname | `ptr_history()` |
633
+ | ✅ | GET | `/api/axon/domain/osint/history/{domain}` | Domain OSINT History | `osint_history()` |
634
+ | ✅ | GET | `/api/axon/domain/pivots/{domain}` | Domain Pivots | `pivots()` |
635
+ | ✅ | GET | `/api/axon/domain/pivots/{domain}/{category}` | Domain Pivots - Category | `pivots(category=...)` |
636
+ | ✅ | GET | `/api/axon/domain/registration/history/{domain}` | Domain Registration History | `registration_history()` |
637
+ | ✅ | GET | `/api/axon/domain/registration/live/{domain}` | Domain Registration Live | `live_registration()` |
638
+ | ✅ | GET | `/api/axon/domain/reputation/quick/{domain}` | Domain Reputation Quick | `enrich()` |
639
+ | ✅ | GET | `/api/axon/domain/subdomains/{domain}` | Domain Subdomains | `subdomains()` |
640
+ | ✅ | GET | `/api/lookalike/domain/{domain}` | Lookalike Domain | `lookalikes()` |
641
+ | ✅ | GET | `/api/lookalike/regex` | Lookalike Regex | `lookalikes()` |
642
+ | ❌ | GET | `/api/v2/domain/combined/connections/{domain}` | V2 Domain Combined Connections | |
643
+ | | | **Hash** | | |
644
+ | ✅ | GET | `/api/axon/hash/content/certificate/sha1/{hash}` | Hash Content Certificate (SHA1) | `fetch_content(kind="cert")` |
645
+ | ✅ | GET | `/api/axon/hash/content/favicon/md5/{hash}` | Hash Content Favicon (MD5) | `fetch_content(kind="favicon")` |
646
+ | ✅ | GET | `/api/axon/hash/content/html/sha1/{hash}` | Hash Content HTML (SHA1) | `fetch_content()` |
647
+ | ✅ | GET | `/api/axon/hash/crawl/history/{hash}` | Hash Crawl History | `host_responses()` |
648
+ | ✅ | GET | `/api/axon/hash/pivots/{hash}` | Hash Pivots | `pivots()` |
649
+ | ✅ | GET | `/api/axon/hash/pivots/{hash}/{category}` | Hash Pivots - Category | `pivots(category=...)` |
650
+ | | | **IP** | | |
651
+ | ✅ | GET | `/api/axon/ip/crawl/history/{ip}` | IP Crawl History | `host_responses()` |
652
+ | ✅ | GET | `/api/axon/ip/crawl/history/{ip}/{cidr}` | IP Crawl History - (CIDR) | `host_responses()` |
653
+ | ✅ | GET | `/api/axon/ip/dns/extra/{ip}` | IP DNS Extra | `extra_history()` |
654
+ | ✅ | GET | `/api/axon/ip/dns/extra/{ip}/{cidr}` | IP DNS Extra - (CIDR) | `extra_history()` |
655
+ | ✅ | GET | `/api/axon/ip/dns/history/{ip}` | IP DNS History | `dns_history()` |
656
+ | ✅ | GET | `/api/axon/ip/dns/history/{ip}/{cidr}` | IP DNS History - (CIDR) | `dns_history()` |
657
+ | ✅ | GET | `/api/axon/ip/dns/hostname/{ip}` | IP DNS Hostname | `ptr_history()` |
658
+ | ✅ | GET | `/api/axon/ip/dns/hostname/{ip}/{cidr}` | IP DNS Hostname - (CIDR) | `ptr_history()` |
659
+ | ✅ | GET | `/api/axon/ip/osint/history/{ip}` | IP OSINT History | `osint_history()` |
660
+ | ✅ | GET | `/api/axon/ip/osint/history/{ip}/{cidr}` | IP OSINT History - (CIDR) | `osint_history()` |
661
+ | ✅ | GET | `/api/axon/ip/pivots/{ip}` | IP Pivots | `pivots()` |
662
+ | ✅ | GET | `/api/axon/ip/pivots/{ip}/{cidr}` | IP Pivots - (CIDR) | `pivots()` |
663
+ | ✅ | GET | `/api/axon/ip/pivots2/{ip}/{category}` | IP Pivots - Category | `pivots(category=...)` |
664
+ | ✅ | GET | `/api/axon/ip/registration/live/{ip}` | IP Registration Live | `live_registration()` |
665
+ | ✅ | GET | `/api/axon/ip/registration/live/{ip}/{cidr}` | CIDR Registration Live | `live_registration()` |
666
+ | ✅ | GET | `/api/axon/ip/reputation/quick/{ip}` | IP Reputation Quick | `enrich()` |
667
+ | | | **Open Directories** (beta) | | |
668
+ | ✅ | GET | `/api/axon/domain/opendirs/{domain}` | Open Directories - Domain | `open_directories()` |
669
+ | ✅ | GET | `/api/axon/ip/opendirs/{ip}` | Open Directories - IP | `open_directories()` |
670
+ | ✅ | GET | `/api/axon/ip/opendirs/{ip}/{cidr}` | Open Directories - CIDR | `open_directories()` |
671
+ | ✅ | GET | `/api/axon/opendirs/url` | Open Directories - URL | `open_directories_by_url()` |
672
+ | ✅ | GET | `/api/axon/opendirs/query` | Open Directories - Query | `query_open_directories()` |
673
+ | ✅ | GET | `/api/axon/opendirs/file/hash/{hash}` | Open Directories - File Hash | `open_directory_files_by_hash()` |
674
+ | ✅ | GET | `/api/axon/opendirs/file/hash/{hash}/content` | Open Directories - File Content by Hash | `open_directory_file_content()` |
675
+ | ✅ | GET | `/api/axon/opendirs/file/{id}/content` | Open Directories - File Content | `open_directory_file_content()` |
676
+ | ✅ | GET | `/api/axon/opendirs/{id}` | Open Directories - Document | `get_open_directory()` |
677
+ | ✅ | GET | `/api/axon/opendirs/{id}/entries` | Open Directories - Entries | `open_directory_entries()` |
678
+ | | | **Projects** | | |
679
+ | ✅ | GET | `/api/project/list` | Project List | `list_projects()` |
680
+ | ✅ | POST | `/api/project/add` | Project - Create Project | `create_project()` |
681
+ | ✅ | GET | `/api/project/{project_id}` | Project Details | `get_project()` |
682
+ | ✅ | POST | `/api/project/{project_id}/edit` | Project - Edit Project | `edit_project()` |
683
+ | ✅ | POST | `/api/project/{project_id}/delete` | Project - Delete Project | `delete_project()` |
684
+ | ✅ | GET | `/api/project/{project_id}/alerts/dates` | Project - List Dates that have Alerts | `project_alert_dates()` |
685
+ | ✅ | GET | `/api/project/{project_id}/alerts/latest` | Project - Latest Alerts | `latest_project_alerts()` |
686
+ | ✅ | GET | `/api/project/{project_id}/alerts/{date}` | Project - Alerts for Date | `project_alerts()` |
687
+ | ✅ | GET | `/api/project/{project_id}/indicators` | Project - List Indicators | `project_indicators()` |
688
+ | ✅ | POST | `/api/project/{project_id}/indicators/add` | Project - Add Indicators | `add_to_project()`, `add_project_indicators()` |
689
+ | ✅ | POST | `/api/project/{project_id}/indicators/add_note` | Project - Add Note to Indicators | `set_indicator_note()` |
690
+ | ✅ | POST | `/api/project/{project_id}/indicators/delete` | Project - Delete Indicators | `remove_from_project()` |
691
+ | ✅ | POST | `/api/project/{project_id}/indicators/tags/add` | Project - Add Tags to Indicators | `add_indicator_tags()` |
692
+ | ✅ | POST | `/api/project/{project_id}/indicators/tags/delete` | Project - Delete Tags from Indicators | `remove_indicator_tags()` |
693
+ | ✅ | GET | `/api/project/{project_id}/scans` | Project - List Scans | `project_scans()` |
694
+ | ✅ | POST | `/api/project/{project_id}/scans/add` | Project - Add Scan | `add_scan_to_project()` |
695
+ | ✅ | POST | `/api/project/{project_id}/scans/delete` | Project - Delete Scan | `remove_scan_from_project()` |
696
+ | ✅ | GET | `/api/project/{project_id}/yara/rules` | Project - List Yara Rules | `yara_rules()` |
697
+ | ✅ | POST | `/api/project/{project_id}/yara/rules/add` | Project - Add YARA Rule | `add_yara_rule()` |
698
+ | ✅ | POST | `/api/project/{project_id}/yara/rules/edit` | Project - Edit YARA Rule | `edit_yara_rule()` |
699
+ | ✅ | GET | `/api/project/{project_id}/yara/rules/{rule_id}` | Project - Get YARA Rule | `get_yara_rule()` |
700
+ | ✅ | GET | `/api/project/{project_id}/yara/rules/{rule_id}/matches` | Project - List Matches for YARA rule | `yara_matches()` |
701
+ | ✅ | POST | `/api/project/{project_id}/yara/rules/{rule_id}/{version}/schedule` | Project - Run Historical YARA Scan | `run_yara_retrohunt()` |
702
+ | ✅ | POST | `/api/project/{project_id}/yara/rules/{rule_id}/cancel` | Project - Cancel Historical YARA Scan | `cancel_yara_retrohunt()` |
703
+ | ✅ | POST | `/api/project/{project_id}/yara/rules/{rule_id}/{version}/track` | Project - Start Live YARA Tracking | `track_yara_rule()` |
704
+ | ✅ | POST | `/api/project/{project_id}/yara/rules/{rule_id}/untrack` | Project - Stop Live YARA Tracking | `untrack_yara_rule()` |
705
+ | | | **Scans** | | |
706
+ | ✅ | GET | `/api/axon/live/scan/results/{scan_id}` | Live Scan Results | `get_scan()` |
707
+ | ✅ | GET | `/api/axon/live/scan/results/{scan_id}/crawl` | Live Scan Results - Crawl | `scan()`, `get_scan_crawl_results()` |
708
+ | ✅ | POST | `/api/axon/live/scan/start` | Live Scan Start | `start_scan()`, `scan()` |
709
+ | | | **String** | | |
710
+ | ✅ | GET | `/api/axon/string/dns/extra2` | String DNS Extra History | `extra_history()` |
711
+ | ✅ | GET | `/api/axon/string/dns/history` | String DNS History | `dns_history()` |
712
+ | ✅ | GET | `/api/axon/string/pivots2` | String Pivots | `pivots()` |
713
+ | ✅ | GET | `/api/axon/string/pivots2/{category}` | String Pivots - Category | `pivots(category=...)` |
714
+ | ✅ | GET | `/api/axon/string/registration/history2` | String Registration History | `registration_history()` |
715
+ | ✅ | GET | `/api/axon/string/registration/history2/{field}` | String Registration History - Category | `registration_history(field=...)` |
716
+ | | | **Threats** | | |
717
+ | ✅ | GET | `/api/threat/group/{threat_key}/indicators` | Threat Group - List Indicators | `threat_group_indicators()` |
718
+ | ✅ | GET | `/api/threat/group/{threat_key}/reports` | Threat Group - List Reports | `threat_group_reports()` |
719
+ | ✅ | GET | `/api/threat/group/{threat_key}/summary` | Threat Group - Summary | `threat_group()` |
720
+ | ❌ | GET | `/api/threat/indicators/recent` | Recent Threat Indicators | |
721
+ | ✅ | GET | `/api/threat/names` | Threat Names | `threat_names()` |
722
+ | ❌ | GET | `/api/threat/reports/recent` | Recent Threat Reports | |
723
+ | | | **Utilities** | | |
724
+ | ❌ | GET | `/api/axon/advanced/query` | Advanced Query | |
725
+ | ✅ | POST | `/api/axon/submissions/domains` | Submissions Domains | `submit_domains()` |
726
+ | ❌ | GET | `/api/paths` | Paths | |
727
+ | ✅ | GET | `/api/ping` | Ping | `ping()` |
728
+ | ❌ | GET | `/api/profile/token` | Profile Token | |
729
+ | ✅ | GET | `/api/profile/usage` | Profile Usage | `usage()` |
730
+ | ❌ | GET | `/api/profile/usage/daily` | Profile Usage Daily | |
731
+
732
+ ## Migration notes for the CLI and SDK expansion (unreleased)
733
+
734
+ This update changes several SDK return shapes. Update consumers of `to_dict()`
735
+ and saved JSON fixtures before upgrading:
736
+
737
+ - `YaraMatchRecord.to_dict()` uses lower snake case: for example, `Host` becomes
738
+ `host`, `Bytes Received` becomes `bytes_received`, and `HTML` becomes `html`.
739
+ - `Content.to_dict()` returns fields for its content kind: decoded `html` for
740
+ HTML, `pem` and certificate fields for certificates, or `data_b64` for favicons.
741
+ Code needing the original base64 HTML should read `content.result` directly.
742
+ - `Registration.found` and its serialized field are removed. Handle lookup
743
+ failures through API errors and inspect the returned records and registration
744
+ fields rather than relying on that flag.
745
+ - `ScanRecord.type` is now `SCAN_RESULT`, replacing `scan`.
746
+ - `CertificateObservation.to_dict()` omits `type` and `time`; those attributes
747
+ remain accessible on the object. `HostResponse.to_dict()` omits `type`;
748
+ its `time` field remains. Use the enclosing record's type for record dispatch.
749
+ - `host_responses()` accepts domains, IPs, CIDRs, and hashes.
750
+ Free-text strings raise `ValueError`. Use `pivots()` for text searches.
751
+ - Bulk lookups report per-indicator API failures, including 404s, in
752
+ `ResultSet.errors` instead of silently skipping missing indicators.
753
+ Authentication and rate-limit failures still stop the batch.
754
+ - Domain inference now requires a valid multi-label name; single words are
755
+ strings. Internationalized domains normalize to punycode, and network ranges
756
+ use the new `IndicatorType.CIDR` type.
757
+
758
+ The package version remains `0.1.0` on this development branch; these notes
759
+ describe unreleased changes, not a newly published version.
760
+
761
+ ## Development
762
+
763
+ Install the checkout using a current pip and the build backend declared in
764
+ `pyproject.toml` (setuptools 64 or newer):
765
+
766
+ ```bash
767
+ python -m pip install --upgrade pip
768
+ python -m pip install -e .
769
+ ```
770
+
771
+ `pyproject.toml` defines the modern build. `setup.py` and `setup.cfg` retain
772
+ editable-install support for older pip/setuptools versions using `setup.py develop`.
773
+ Keep the compatibility metadata and dependencies in `setup.cfg` in sync with
774
+ `pyproject.toml`; both read the version from `validin.__version__`.
775
+
776
+ The tests are baseline fixtures that run the SDK and the `validin` command against a local
777
+ fake Validin API, then compare their output with saved baselines:
778
+
779
+ ```bash
780
+ tests/baseline # run every fixture
781
+ tests/baseline -b PATH # create or update a fixture's baseline
782
+ ```
783
+
784
+ See [tests/README.md](tests/README.md) for how fixtures and the fake API work.
785
+
786
+ ## License
787
+
788
+ MIT