Repository navigation
v0.2.0
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_addresseson 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.Rawis filled from each list entry so results stay aligned with the request.NewClientaccepts a nil*http.Client(30s timeout) and trims a trailing slash on the base URL.MaxAddressesPerRequestdocuments the server default (1024).
Tests and CI
- Unit tests use
httptestand do not need Docker (go test -short). - Integration tests hit the published 0.11.0 image when
DEEPPARSE_URLis 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.