Skip to content

v0.2.0

Choose a tag to compare

@adamdecaf adamdecaf released this 17 Sep 21:26
· 4 commits to master since this release

Go client for GRAAL-Research/deepparse 0.11.0+.

This release tracks the 0.11.0 REST API: parsed_addresses is a list of {raw: parsed} objects, so duplicate inputs keep their order instead of collapsing.

go get github.com/adamdecaf/deepparse-go@v0.2.0

Run the parser with ghcr.io/graal-research/deepparse:0.11.0 (see docker compose up in the repo).

Breaking changes

  • Requires deepparse 0.11.0 or later. Older servers that keyed parsed_addresses on the raw address string will not decode.
  • Non-200 responses return *APIError (StatusCode, Detail) instead of being ignored. Empty input and unknown models are HTTP 422; more than 1024 addresses is HTTP 413.

Client

  • ParsedAddress.Raw is filled from each list entry so results stay aligned with the request.
  • NewClient accepts a nil *http.Client (30s timeout) and trims a trailing slash on the base URL.
  • MaxAddressesPerRequest documents the server default (1024).

Tests and CI

  • Unit tests use httptest and do not need Docker (go test -short).
  • Integration tests hit the published 0.11.0 image when DEEPPARSE_URL is set.
  • GitHub Actions runs both jobs; Go module minimum is 1.24.

A docs PR to list this client on the upstream API page is open at GRAAL-Research/deepparse#322.