You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 18e8b99
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# proofline-sdk
2
2
3
-
`proofline-sdk` provides typed synchronous (`ProoflineClient`) and asynchronous (`AsyncProoflineClient`) Python clients for the [Proofline](https://proofline.sh) review API. The clients read and request reviews with a scoped API token, and include pagination, waiting for a review, retries, and typed errors. The import package is `proofline`. Python 3.11 or newer is required.
3
+
`proofline-sdk` provides typed synchronous (`ProoflineClient`) and asynchronous (`AsyncProoflineClient`) Python clients for the [Proofline](https://proofline.sh) review API. The clients read and request reviews with a scoped API token, and include pagination, waiting for a review or a re-verification, retries, and typed errors. The import package is `proofline`. Python 3.11 or newer is required.
4
4
5
5
This repository is the published distribution of the Proofline Python SDK. The public OpenAPI contract in `openapi.public.json` generates the client and models in `proofline/_generated/`. [Open an issue](https://github.com/prooflinedev/sdk-python/issues) for changes to the OpenAPI contract, generated code, or workflows. Pull requests are welcome for the hand-written client in `proofline/client.py`, transport and helpers outside `proofline/_generated/`, and tests in `tests/`.
6
6
@@ -188,6 +188,16 @@ if result.get("isError"):
188
188
raiseRuntimeError("Re-verification was refused.")
189
189
```
190
190
191
+
`wait_for_reverification` polls `get_reverification` for the request id that call returned. It is a method on both clients; use `await` with `AsyncProoflineClient`. The optional `organization_id` keyword applies to every read in the wait. The first pause is 5 seconds, and each later pause doubles up to 60 seconds. The default `timeout` is 300 seconds.
The public contract records each finding's re-verification as `LocalReverificationOutcome`. `PENDING` means the review is still running, so the wait continues while any finding is `PENDING` or has not recorded an outcome. `RESOLVED_VERIFIED`, `STILL_PRESENT`, and `NOT_VERIFIED` are finished outcomes and stop the wait. `NOT_VERIFIED` does not establish a fix. A tool result with `isError` returns immediately. Any other `ProoflineError` propagates and is not retried. When the deadline expires first, the call raises `ProoflineError` with type `urn:proofline:sdk:timeout`.
200
+
191
201
Calls under `client.fixes` never retry. Results retain untrusted-text wrappers, availability, assessment gaps, and `isError`. `PENDING` and `NOT_VERIFIED` do not establish a fix, and a tool request never records a human disposition.
0 commit comments