verdict-row-inspector 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.
@@ -0,0 +1,5 @@
1
+ node_modules/
2
+ *.tgz
3
+ __pycache__/
4
+ .pytest_cache/
5
+ dist/
@@ -0,0 +1,51 @@
1
+ # Changelog
2
+
3
+ ## 0.3.0 — 2026-11-04
4
+
5
+ - Fleet Check helper (Next-20 Item 13, Fleet Check Framework Packs):
6
+ `buy_fleet_check_pack()` ($5.00 — 100 sweeps of one fixed fleet
7
+ definition, 90-day expiry), `fleet_check_sweep()` ($0.10 single
8
+ sweep), `run_fleet_check_sweep(pack_id)` (one pack credit, no
9
+ x402 payment) and `fleet_check_status(pack_id)` (free). Fleet
10
+ Check prices join `ROUTE_PRICES`, so the per-route spend guard
11
+ caps pack purchases at exactly $5.00. Module-level
12
+ `framework_log_entries(delivery)` / `framework_log_lines(delivery)`
13
+ helpers return a delivery's framework_log entries as structured
14
+ entries or one-line strings a framework runner can log.
15
+ - Tests: 27 passing (7 new Fleet Check tests, all mocked, $0 spent).
16
+ - PyPI: NOT published — publishing is a gated hand-step, untouched;
17
+ the wheel is built locally only.
18
+
19
+ ## 0.2.0 — 2026-11-04
20
+
21
+ - Function-calling schema pack: `FUNCTION_TOOLS_PACK`, `OPENAI_TOOLS`,
22
+ `ANTHROPIC_TOOLS`, `FUNCTION_TOOL_ROUTES` and
23
+ `get_function_tool(name, format)` — drop-in LLM tool definitions
24
+ for every fleet route priced $0.05 or less (24 tools), shipped as
25
+ packaged data (function_tools.json), generated from the fleet's
26
+ canonical route registry by the fleet-checker's function_tools.py
27
+ and also served at https://verdictrow.com/function-tools.json. New
28
+ offline tests validate the pack against its embedded registry
29
+ snapshot (unique names, prices in every description matching the
30
+ snapshot, both formats carrying identical schemas).
31
+
32
+ ## 0.1.0 — 2026-10-31
33
+
34
+ First local build (not yet published to PyPI).
35
+
36
+ - `InspectorClient`: async client for StallRow's inspector surface
37
+ (Recheck, Sign Reader, Score Book, Guard, Inspector Physical),
38
+ RouteVerdict checks, Recheck + toolkit packs, Fleet Pass ($5/$20)
39
+ purchase and balance, Fleet-Pass-funded batch rechecks, and the
40
+ free verdict-read.
41
+ - Payment via the installed Python x402 SDK (`x402Client` +
42
+ `ExactEvmScheme`, EIP-3009 exact scheme on Base) with a per-route
43
+ spend guard enforced in the payment-requirements selector —
44
+ over-price challenges are refused before signing.
45
+ - Feed v2: cursor-managed generator with hash-chain verification
46
+ (seq continuity + prev_hash linkage on unfiltered walks,
47
+ per-envelope hash recomputation everywhere), origin/pay_to/route
48
+ filters, and a persistable `FeedCursor`.
49
+ - Watch registration and self-serve change-webhook registration,
50
+ plus `verify_webhook_signature` (HMAC-SHA256, `X-Recheck-Signature`).
51
+ - Fully offline test suite (mock transports, real fixture shapes).
@@ -0,0 +1,221 @@
1
+ Metadata-Version: 2.5
2
+ Name: verdict-row-inspector
3
+ Version: 0.3.0
4
+ Summary: Inspector SDK for the Verdict Row x402 fleet: a Python client for StallRow's inspector surface (Recheck, Sign Reader, Score Book, Guard, Inspector Physical, packs, Fleet Pass, the hash-chained change feed, watches and signed webhooks) and RouteVerdict, with x402 payment handling and a per-route spend guard built in.
5
+ Project-URL: Homepage, https://github.com/QuincyGB/verdict-row-inspector
6
+ Project-URL: Repository, https://github.com/QuincyGB/verdict-row-inspector
7
+ Project-URL: Issues, https://github.com/QuincyGB/verdict-row-inspector/issues
8
+ Author-email: "Ren, Verdict Row Patrol" <patrol@verdictrow.com>
9
+ Maintainer-email: "Ren, Verdict Row Patrol" <patrol@verdictrow.com>
10
+ License: MIT
11
+ Keywords: agents,base,inspector,payments,stall-row,usdc,verdict-row,x402
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Software Development :: Libraries
17
+ Requires-Python: >=3.10
18
+ Requires-Dist: eth-account>=0.13
19
+ Requires-Dist: httpx>=0.27
20
+ Requires-Dist: x402[evm,httpx]<3,>=2.25
21
+ Provides-Extra: dev
22
+ Requires-Dist: pytest>=8; extra == 'dev'
23
+ Description-Content-Type: text/markdown
24
+
25
+ # verdict-row-inspector (Python)
26
+
27
+ The Inspector SDK for the **Verdict Row** x402 fleet: one async
28
+ Python client for StallRow's inspector surface and RouteVerdict —
29
+ discover-free reads, the cheap paid routes, prepaid packs and Fleet
30
+ Passes, the hash-chained change feed, watches and signed webhooks.
31
+
32
+ Contact: **Ren, Verdict Row Patrol — patrol@verdictrow.com**
33
+
34
+ > **Status: not yet published.** This package is built and tested
35
+ > locally; it is **not on PyPI yet**. Until the owner publishes it,
36
+ > install it from a local checkout:
37
+ >
38
+ > ```bash
39
+ > pip install ./inspector-sdk/python
40
+ > ```
41
+ >
42
+ > After publication the install will be
43
+ > `pip install verdict-row-inspector`.
44
+
45
+ This is the full inspector client. It is a different package from
46
+ `x402-guard` (a single-purpose pre-pay wrapper / payment-path
47
+ seatbelt): the Guard vets *other people's* endpoints before you pay
48
+ them; this SDK *is* the client for the fleet's own inspector routes.
49
+
50
+ ## Quickstart
51
+
52
+ The API mirrors the fleet's Inspector Quickstart
53
+ (<https://stall-row-production.up.railway.app/quickstart/python>) —
54
+ same flow, packaged:
55
+
56
+ ```python
57
+ import asyncio, os
58
+ from verdict_row_inspector import InspectorClient
59
+
60
+ async def main() -> None:
61
+ # Signer from X402_PRIVATE_KEY (or AGENT_PRIVATE_KEY /
62
+ # AGENT_KEY_FILE). Omit the signer and the free reads still work;
63
+ # paid calls then raise PaymentRequiredError with the challenge.
64
+ client = InspectorClient.from_env()
65
+
66
+ target = "https://token-verdict-production.up.railway.app/v1/verdict"
67
+
68
+ # Pin: one paid Recheck ($0.005) + one RouteVerdict check ($0.05).
69
+ recheck = await client.recheck(target, watch_id="my-pin")
70
+ route = await client.route_verdict(target)
71
+
72
+ # The $0.01 toolkit trio + the $0.05 Inspector Physical.
73
+ sign = await client.sign_read(target)
74
+ book = await client.score_book(url=target)
75
+ guard = await client.guard(target)
76
+ physical = await client.physical(target)
77
+
78
+ # Free recorded-state read — never probes or pays the target.
79
+ recorded = await client.verdict_read(target)
80
+
81
+ # Feed v2 (free): cursor-managed, hash-chain verified as it walks.
82
+ async for env in client.feed():
83
+ if env.record["status"] == "CHANGED":
84
+ print("CHANGED", env.record["url"], env.record.get("field_changes"))
85
+ print("resume from", client.feed_cursor.to_dict())
86
+
87
+ asyncio.run(main())
88
+ ```
89
+
90
+ Payments are x402 v2, exact scheme, USDC on Base
91
+ (`eip155:8453`, asset `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`,
92
+ fleet payTo `0x097f9685D1e0752bF8B02d61E5Ce9be7eA0FBA7F`). The
93
+ authorization is gasless EIP-3009 — your wallet needs USDC on Base;
94
+ use a dedicated small-balance agent wallet.
95
+
96
+ ## How payment works
97
+
98
+ Payment is handled by the installed Python **x402 SDK** — the same
99
+ library the fleet's own services run (stall-row pins `x402==2.25.0`):
100
+ an `x402Client` with `ExactEvmScheme` over an httpx transport from
101
+ `x402.http.clients` (the transport form of `wrapHttpxWithPayment`).
102
+ The SDK builds and EIP-712-signs the EIP-3009 authorization; this
103
+ package never hand-rolls signing.
104
+
105
+ **Spend guard.** The x402 client's payment-requirements selector is
106
+ the guard: before each paid call the client records the route's cap
107
+ — its known price from the table below, lowered by your
108
+ `max_amount_units=` ceiling when set. A live 402 asking more than
109
+ the cap raises `SpendGuardError` *before* any payload is signed.
110
+
111
+ ## Packs, passes, batch, standing pushes
112
+
113
+ ```python
114
+ pack = await client.buy_recheck_pack(target) # $1.00, 250 checks / 90d
115
+ spent = await client.recheck(target, pack_id=pack["pack_id"])
116
+ bal = await client.recheck_pack_balance(pack["pack_id"]) # free
117
+
118
+ toolkit = await client.buy_toolkit_pack() # $1.00 of trio credits
119
+ trio = await client.sign_read(target, pack_id=toolkit["pack_id"])
120
+
121
+ fleet = await client.buy_fleet_pass(20) # or buy_fleet_pass(5)
122
+ balance = await client.pass_balance(fleet["pass_id"]) # free
123
+ batch = await client.batch_recheck([url1, url2], fleet["pass_id"])
124
+
125
+ watch = await client.watch_register(target, "https://you/hooks",
126
+ interval_s=3600, pack_id=pack["pack_id"])
127
+ hook = await client.webhook_register("https://you/hooks", HOOK_SECRET,
128
+ url=target, pack_id=pack["pack_id"])
129
+ ```
130
+
131
+ Webhook deliveries arrive with `X-Recheck-Signature: sha256=<hex>`
132
+ (HMAC-SHA256 over the raw body, keyed with your secret). Verify:
133
+
134
+ ```python
135
+ from verdict_row_inspector import verify_webhook_signature
136
+ ok = verify_webhook_signature(HOOK_SECRET, raw_body_bytes,
137
+ request.headers["x-recheck-signature"])
138
+ ```
139
+
140
+ An exhausted pack returns 402 — there is never a silent per-call
141
+ fallback.
142
+
143
+ ## Fleet Check (Framework Pack)
144
+
145
+ Whole-fleet health sweeps, packaged for framework runners:
146
+
147
+ ```python
148
+ fc = await client.buy_fleet_check_pack(origins=["https://stall.example.com"]) # $5.00, 100 sweeps / 90d
149
+ run = await client.run_fleet_check_sweep(fc["pack_id"]) # one pack credit
150
+ status = await client.fleet_check_status(fc["pack_id"]) # free
151
+ once = await client.fleet_check_sweep(resources=[url]) # $0.10 single sweep
152
+
153
+ from verdict_row_inspector import framework_log_lines
154
+ for line in framework_log_lines(run): # framework run-log lines
155
+ print(line)
156
+ ```
157
+
158
+ Every Fleet Check delivery carries `framework_log` entries (tool,
159
+ resource, verdict OK/DEGRADED/DOWN, defect, one-line message);
160
+ `framework_log_entries()` returns them structured. Pack deliveries
161
+ also carry `renewal` terms. Descriptor:
162
+ https://verdictrow.com/fleet-check-framework-pack.json
163
+
164
+ ## Function-calling schema pack
165
+
166
+ Drop-in LLM tool definitions for every fleet route priced $0.05 or
167
+ less (24 tools), in OpenAI and Anthropic formats — generated from
168
+ the fleet's canonical route registry, and also served at
169
+ https://verdictrow.com/function-tools.json:
170
+
171
+ ```python
172
+ from verdict_row_inspector import OPENAI_TOOLS, ANTHROPIC_TOOLS, get_function_tool
173
+
174
+ # OpenAI: pass OPENAI_TOOLS as the `tools` argument.
175
+ # Anthropic: pass ANTHROPIC_TOOLS as the `tools` argument.
176
+ tool = get_function_tool("stall_row_recheck", "openai")
177
+ ```
178
+
179
+ Each tool is a paid POST endpoint on the x402 exact scheme (USDC on
180
+ Base): an unpaid call returns HTTP 402 with the payment challenge.
181
+ The definitions describe the tools; the payment leg is your x402
182
+ client's.
183
+
184
+ ## Routes and prices
185
+
186
+ Verified against the live `/.well-known/x402` discovery documents of
187
+ both stalls on 2026-10-31:
188
+
189
+ | Method | Route | Price |
190
+ |---|---|---|
191
+ | POST | StallRow `/v1/recheck` | $0.005 |
192
+ | POST | StallRow `/v1/sign-read` | $0.01 |
193
+ | POST | StallRow `/v1/score-book` | $0.01 |
194
+ | POST | StallRow `/v1/guard` | $0.01 |
195
+ | POST | StallRow `/v1/physical` | $0.05 |
196
+ | POST | RouteVerdict `/v1/check` | $0.05 |
197
+ | POST | StallRow `/v1/recheck/pack` | $1.00 |
198
+ | POST | StallRow `/v1/toolkit/pack` | $1.00 |
199
+ | POST | StallRow `/v1/fleet-pass` | $5.00 |
200
+ | POST | StallRow `/v1/fleet-pass-20` | $20.00 |
201
+ | POST | StallRow `/v1/recheck/batch` | Fleet-Pass-funded ($0.005/check, debited once; 20% off at exactly 100 unique URLs) |
202
+ | POST | StallRow `/v1/fleet-pass/balance` | free (holder read) |
203
+ | GET | StallRow `/v1/recheck/feed?v=2` | free (since_seq cursor, origin/pay_to/route filters) |
204
+ | GET | StallRow `/v1/verdict-read` | free (recorded state) |
205
+ | POST | StallRow `/v1/watch/register` | free to register (runs spend pack/pass funding) |
206
+ | POST | StallRow `/v1/recheck/webhooks` | free to register (pack/pass gated) |
207
+
208
+ ## Development
209
+
210
+ ```bash
211
+ python -m venv .venv && .venv/bin/pip install -e ".[dev]"
212
+ .venv/bin/pytest
213
+ ```
214
+
215
+ All tests are offline: mock transports replay challenges and
216
+ responses in the services' real shapes, and the signer is a
217
+ throwaway account generated at test time. Nothing is spent.
218
+
219
+ ## License
220
+
221
+ MIT
@@ -0,0 +1,197 @@
1
+ # verdict-row-inspector (Python)
2
+
3
+ The Inspector SDK for the **Verdict Row** x402 fleet: one async
4
+ Python client for StallRow's inspector surface and RouteVerdict —
5
+ discover-free reads, the cheap paid routes, prepaid packs and Fleet
6
+ Passes, the hash-chained change feed, watches and signed webhooks.
7
+
8
+ Contact: **Ren, Verdict Row Patrol — patrol@verdictrow.com**
9
+
10
+ > **Status: not yet published.** This package is built and tested
11
+ > locally; it is **not on PyPI yet**. Until the owner publishes it,
12
+ > install it from a local checkout:
13
+ >
14
+ > ```bash
15
+ > pip install ./inspector-sdk/python
16
+ > ```
17
+ >
18
+ > After publication the install will be
19
+ > `pip install verdict-row-inspector`.
20
+
21
+ This is the full inspector client. It is a different package from
22
+ `x402-guard` (a single-purpose pre-pay wrapper / payment-path
23
+ seatbelt): the Guard vets *other people's* endpoints before you pay
24
+ them; this SDK *is* the client for the fleet's own inspector routes.
25
+
26
+ ## Quickstart
27
+
28
+ The API mirrors the fleet's Inspector Quickstart
29
+ (<https://stall-row-production.up.railway.app/quickstart/python>) —
30
+ same flow, packaged:
31
+
32
+ ```python
33
+ import asyncio, os
34
+ from verdict_row_inspector import InspectorClient
35
+
36
+ async def main() -> None:
37
+ # Signer from X402_PRIVATE_KEY (or AGENT_PRIVATE_KEY /
38
+ # AGENT_KEY_FILE). Omit the signer and the free reads still work;
39
+ # paid calls then raise PaymentRequiredError with the challenge.
40
+ client = InspectorClient.from_env()
41
+
42
+ target = "https://token-verdict-production.up.railway.app/v1/verdict"
43
+
44
+ # Pin: one paid Recheck ($0.005) + one RouteVerdict check ($0.05).
45
+ recheck = await client.recheck(target, watch_id="my-pin")
46
+ route = await client.route_verdict(target)
47
+
48
+ # The $0.01 toolkit trio + the $0.05 Inspector Physical.
49
+ sign = await client.sign_read(target)
50
+ book = await client.score_book(url=target)
51
+ guard = await client.guard(target)
52
+ physical = await client.physical(target)
53
+
54
+ # Free recorded-state read — never probes or pays the target.
55
+ recorded = await client.verdict_read(target)
56
+
57
+ # Feed v2 (free): cursor-managed, hash-chain verified as it walks.
58
+ async for env in client.feed():
59
+ if env.record["status"] == "CHANGED":
60
+ print("CHANGED", env.record["url"], env.record.get("field_changes"))
61
+ print("resume from", client.feed_cursor.to_dict())
62
+
63
+ asyncio.run(main())
64
+ ```
65
+
66
+ Payments are x402 v2, exact scheme, USDC on Base
67
+ (`eip155:8453`, asset `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`,
68
+ fleet payTo `0x097f9685D1e0752bF8B02d61E5Ce9be7eA0FBA7F`). The
69
+ authorization is gasless EIP-3009 — your wallet needs USDC on Base;
70
+ use a dedicated small-balance agent wallet.
71
+
72
+ ## How payment works
73
+
74
+ Payment is handled by the installed Python **x402 SDK** — the same
75
+ library the fleet's own services run (stall-row pins `x402==2.25.0`):
76
+ an `x402Client` with `ExactEvmScheme` over an httpx transport from
77
+ `x402.http.clients` (the transport form of `wrapHttpxWithPayment`).
78
+ The SDK builds and EIP-712-signs the EIP-3009 authorization; this
79
+ package never hand-rolls signing.
80
+
81
+ **Spend guard.** The x402 client's payment-requirements selector is
82
+ the guard: before each paid call the client records the route's cap
83
+ — its known price from the table below, lowered by your
84
+ `max_amount_units=` ceiling when set. A live 402 asking more than
85
+ the cap raises `SpendGuardError` *before* any payload is signed.
86
+
87
+ ## Packs, passes, batch, standing pushes
88
+
89
+ ```python
90
+ pack = await client.buy_recheck_pack(target) # $1.00, 250 checks / 90d
91
+ spent = await client.recheck(target, pack_id=pack["pack_id"])
92
+ bal = await client.recheck_pack_balance(pack["pack_id"]) # free
93
+
94
+ toolkit = await client.buy_toolkit_pack() # $1.00 of trio credits
95
+ trio = await client.sign_read(target, pack_id=toolkit["pack_id"])
96
+
97
+ fleet = await client.buy_fleet_pass(20) # or buy_fleet_pass(5)
98
+ balance = await client.pass_balance(fleet["pass_id"]) # free
99
+ batch = await client.batch_recheck([url1, url2], fleet["pass_id"])
100
+
101
+ watch = await client.watch_register(target, "https://you/hooks",
102
+ interval_s=3600, pack_id=pack["pack_id"])
103
+ hook = await client.webhook_register("https://you/hooks", HOOK_SECRET,
104
+ url=target, pack_id=pack["pack_id"])
105
+ ```
106
+
107
+ Webhook deliveries arrive with `X-Recheck-Signature: sha256=<hex>`
108
+ (HMAC-SHA256 over the raw body, keyed with your secret). Verify:
109
+
110
+ ```python
111
+ from verdict_row_inspector import verify_webhook_signature
112
+ ok = verify_webhook_signature(HOOK_SECRET, raw_body_bytes,
113
+ request.headers["x-recheck-signature"])
114
+ ```
115
+
116
+ An exhausted pack returns 402 — there is never a silent per-call
117
+ fallback.
118
+
119
+ ## Fleet Check (Framework Pack)
120
+
121
+ Whole-fleet health sweeps, packaged for framework runners:
122
+
123
+ ```python
124
+ fc = await client.buy_fleet_check_pack(origins=["https://stall.example.com"]) # $5.00, 100 sweeps / 90d
125
+ run = await client.run_fleet_check_sweep(fc["pack_id"]) # one pack credit
126
+ status = await client.fleet_check_status(fc["pack_id"]) # free
127
+ once = await client.fleet_check_sweep(resources=[url]) # $0.10 single sweep
128
+
129
+ from verdict_row_inspector import framework_log_lines
130
+ for line in framework_log_lines(run): # framework run-log lines
131
+ print(line)
132
+ ```
133
+
134
+ Every Fleet Check delivery carries `framework_log` entries (tool,
135
+ resource, verdict OK/DEGRADED/DOWN, defect, one-line message);
136
+ `framework_log_entries()` returns them structured. Pack deliveries
137
+ also carry `renewal` terms. Descriptor:
138
+ https://verdictrow.com/fleet-check-framework-pack.json
139
+
140
+ ## Function-calling schema pack
141
+
142
+ Drop-in LLM tool definitions for every fleet route priced $0.05 or
143
+ less (24 tools), in OpenAI and Anthropic formats — generated from
144
+ the fleet's canonical route registry, and also served at
145
+ https://verdictrow.com/function-tools.json:
146
+
147
+ ```python
148
+ from verdict_row_inspector import OPENAI_TOOLS, ANTHROPIC_TOOLS, get_function_tool
149
+
150
+ # OpenAI: pass OPENAI_TOOLS as the `tools` argument.
151
+ # Anthropic: pass ANTHROPIC_TOOLS as the `tools` argument.
152
+ tool = get_function_tool("stall_row_recheck", "openai")
153
+ ```
154
+
155
+ Each tool is a paid POST endpoint on the x402 exact scheme (USDC on
156
+ Base): an unpaid call returns HTTP 402 with the payment challenge.
157
+ The definitions describe the tools; the payment leg is your x402
158
+ client's.
159
+
160
+ ## Routes and prices
161
+
162
+ Verified against the live `/.well-known/x402` discovery documents of
163
+ both stalls on 2026-10-31:
164
+
165
+ | Method | Route | Price |
166
+ |---|---|---|
167
+ | POST | StallRow `/v1/recheck` | $0.005 |
168
+ | POST | StallRow `/v1/sign-read` | $0.01 |
169
+ | POST | StallRow `/v1/score-book` | $0.01 |
170
+ | POST | StallRow `/v1/guard` | $0.01 |
171
+ | POST | StallRow `/v1/physical` | $0.05 |
172
+ | POST | RouteVerdict `/v1/check` | $0.05 |
173
+ | POST | StallRow `/v1/recheck/pack` | $1.00 |
174
+ | POST | StallRow `/v1/toolkit/pack` | $1.00 |
175
+ | POST | StallRow `/v1/fleet-pass` | $5.00 |
176
+ | POST | StallRow `/v1/fleet-pass-20` | $20.00 |
177
+ | POST | StallRow `/v1/recheck/batch` | Fleet-Pass-funded ($0.005/check, debited once; 20% off at exactly 100 unique URLs) |
178
+ | POST | StallRow `/v1/fleet-pass/balance` | free (holder read) |
179
+ | GET | StallRow `/v1/recheck/feed?v=2` | free (since_seq cursor, origin/pay_to/route filters) |
180
+ | GET | StallRow `/v1/verdict-read` | free (recorded state) |
181
+ | POST | StallRow `/v1/watch/register` | free to register (runs spend pack/pass funding) |
182
+ | POST | StallRow `/v1/recheck/webhooks` | free to register (pack/pass gated) |
183
+
184
+ ## Development
185
+
186
+ ```bash
187
+ python -m venv .venv && .venv/bin/pip install -e ".[dev]"
188
+ .venv/bin/pytest
189
+ ```
190
+
191
+ All tests are offline: mock transports replay challenges and
192
+ responses in the services' real shapes, and the signer is a
193
+ throwaway account generated at test time. Nothing is spent.
194
+
195
+ ## License
196
+
197
+ MIT
@@ -0,0 +1,48 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "verdict-row-inspector"
7
+ version = "0.3.0"
8
+ description = "Inspector SDK for the Verdict Row x402 fleet: a Python client for StallRow's inspector surface (Recheck, Sign Reader, Score Book, Guard, Inspector Physical, packs, Fleet Pass, the hash-chained change feed, watches and signed webhooks) and RouteVerdict, with x402 payment handling and a per-route spend guard built in."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = { text = "MIT" }
12
+ authors = [
13
+ { name = "Ren, Verdict Row Patrol", email = "patrol@verdictrow.com" },
14
+ ]
15
+ maintainers = [
16
+ { name = "Ren, Verdict Row Patrol", email = "patrol@verdictrow.com" },
17
+ ]
18
+ keywords = ["x402", "agents", "payments", "usdc", "base", "inspector", "verdict-row", "stall-row"]
19
+ classifiers = [
20
+ "Development Status :: 3 - Alpha",
21
+ "Intended Audience :: Developers",
22
+ "License :: OSI Approved :: MIT License",
23
+ "Programming Language :: Python :: 3",
24
+ "Topic :: Software Development :: Libraries",
25
+ ]
26
+ dependencies = [
27
+ # The same x402 SDK the fleet's own services run (stall-row pins
28
+ # x402==2.25.0): payment is the SDK's ExactEvmScheme (EIP-3009
29
+ # exact scheme on Base), never hand-rolled signing in this package.
30
+ "x402[httpx,evm]>=2.25,<3",
31
+ "httpx>=0.27",
32
+ "eth-account>=0.13",
33
+ ]
34
+
35
+ [project.optional-dependencies]
36
+ dev = ["pytest>=8"]
37
+
38
+ [project.urls]
39
+ Homepage = "https://github.com/QuincyGB/verdict-row-inspector"
40
+ Repository = "https://github.com/QuincyGB/verdict-row-inspector"
41
+ Issues = "https://github.com/QuincyGB/verdict-row-inspector/issues"
42
+
43
+ [tool.hatch.build.targets.wheel]
44
+ packages = ["src/verdict_row_inspector"]
45
+
46
+ [tool.pytest.ini_options]
47
+ pythonpath = ["src"]
48
+ testpaths = ["tests"]
@@ -0,0 +1,80 @@
1
+ """Verdict Row Inspector SDK (Python).
2
+
3
+ A client for the Verdict Row x402 fleet's inspector surface:
4
+ StallRow's Recheck / Sign Reader / Score Book / Guard / Inspector
5
+ Physical, packs and Fleet Passes, the hash-chained Recheck feed v2,
6
+ watches and signed change webhooks — plus RouteVerdict checks.
7
+ Payment runs through the installed Python x402 SDK (ExactEvmScheme,
8
+ EIP-3009 exact scheme on Base) behind a per-route spend guard.
9
+
10
+ Contact: Ren, Verdict Row Patrol — patrol@verdictrow.com
11
+ """
12
+
13
+ from .client import (
14
+ BASE_NETWORK,
15
+ DEFAULT_ROUTE_VERDICT_URL,
16
+ DEFAULT_STALL_ROW_URL,
17
+ FLEET_PAY_TO,
18
+ ROUTE_PRICES,
19
+ ROUTE_VERDICT_PRICES,
20
+ USDC_ASSET,
21
+ InspectorClient,
22
+ framework_log_entries,
23
+ framework_log_lines,
24
+ load_account_from_env,
25
+ parse_payment_required,
26
+ )
27
+ from .errors import (
28
+ FeedChainError,
29
+ InspectorError,
30
+ PaymentRequiredError,
31
+ SpendGuardError,
32
+ )
33
+ from .feed import FeedCursor, FeedEnvelope, FeedPage, chain_hash, verify_page
34
+ from .function_tools import (
35
+ ANTHROPIC_TOOLS,
36
+ FUNCTION_TOOLS_PACK,
37
+ FUNCTION_TOOL_ROUTES,
38
+ OPENAI_TOOLS,
39
+ get_function_tool,
40
+ )
41
+ from .webhooks import (
42
+ compute_signature as compute_webhook_signature,
43
+ )
44
+ from .webhooks import (
45
+ verify_signature as verify_webhook_signature,
46
+ )
47
+
48
+ __version__ = "0.3.0"
49
+
50
+ __all__ = [
51
+ "ANTHROPIC_TOOLS",
52
+ "FUNCTION_TOOLS_PACK",
53
+ "FUNCTION_TOOL_ROUTES",
54
+ "OPENAI_TOOLS",
55
+ "BASE_NETWORK",
56
+ "DEFAULT_ROUTE_VERDICT_URL",
57
+ "DEFAULT_STALL_ROW_URL",
58
+ "FLEET_PAY_TO",
59
+ "ROUTE_PRICES",
60
+ "ROUTE_VERDICT_PRICES",
61
+ "USDC_ASSET",
62
+ "FeedChainError",
63
+ "FeedCursor",
64
+ "FeedEnvelope",
65
+ "FeedPage",
66
+ "InspectorClient",
67
+ "InspectorError",
68
+ "PaymentRequiredError",
69
+ "SpendGuardError",
70
+ "__version__",
71
+ "chain_hash",
72
+ "compute_webhook_signature",
73
+ "framework_log_entries",
74
+ "framework_log_lines",
75
+ "get_function_tool",
76
+ "load_account_from_env",
77
+ "parse_payment_required",
78
+ "verify_page",
79
+ "verify_webhook_signature",
80
+ ]