Skip to content

feat!: read history, download reports and show the account - #5

Merged
RejectModders merged 3 commits into
mainfrom
feat/history-and-account
Nov 29, 2026
Merged

RejectModders merged 3 commits into
mainfrom
feat/history-and-account

Conversation

@RejectModders

Copy link
Copy Markdown
Member

History did not work on the v3 API: history.list() could not read the replies. This fixes it and adds the rest of the history and account calls.

  • history.list() searches and pages; history.iterate() walks every page.
  • history.update(), delete_all(confirm=True) and report() for JSON, SARIF, PDF, Markdown, compliance and CSV.
  • A scan that is still running or failed has no counts in the list and raises NoResultError when read, so it never looks like a scan without findings. A stored crawl comes back with its pages, marked incomplete if pages were left out.
  • client.me() for the account and metadata.plan_limits().
  • Finding types and the version reply now match what the server sends.

Breaking changes are in the changelog.

Tested locally on Windows with Python 3.11, 3.12 and 3.13: 317 offline tests pass, and ruff and mypy --strict pass on 3.13. The test replies are written from the server source; nothing was run against a live server, so the live tests are not run.

history.list() reads the server's replies and can search and page, and
iterate() walks every page. Scans can be updated, deleted all at once with
an explicit confirmation, and downloaded as reports. A scan without a result
has no counts in the list and raises NoResultError when read, and a stored
crawl comes back with its pages, marked incomplete if pages were left out.

Adds client.me() and the plan limits, and makes the finding types and
version models match what the server sends.
The server makes a report of a running or failed scan that lists no
findings, so report() now reads the scan first and raises for one without a
result, and says what a partial scan did not check. iterate() raises instead
of asking for the same page for ever, and goes on after a full page even if
the server's count is wrong. Notes are measured the way the server cuts
them, and a few replies of the wrong type are no longer accepted.
@RejectModders
RejectModders merged commit 401cdb1 into main Nov 29, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant