Skip to content

Add bulk_query_rule, get_status, and CLI; migrate to uv - #36

Merged
Turall merged 1 commit into
masterfrom
v3
Sep 30, 2026
Merged

Turall merged 1 commit into
masterfrom
v3

Conversation

@Turall

@Turall Turall commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Adds bulk_query_rule (sync/async) for evaluating a rule against many
inputs in one round-trip, get_status() for the OPA status endpoint,
query_params passthrough on get_data/query_rule/ad_hoc_query, and a new
opa-client CLI covering the full API surface. Removes the deprecated
check_permission() in favor of query_rule(), which is a breaking change
and the reason for the major version bump.

Also fixes get_status() raising a misleading ConnectionsError for
OPA's own HTTP-level error responses, and a sync-client retry bug that
discarded the real response body after retries were exhausted.

Migrates packaging from Poetry to uv (pyproject.toml, hatchling
build backend, uv.lock, CI workflow).

@Turall
Turall merged commit 90434df into master Sep 30, 2026
@Turall
Turall deleted the v3 branch September 30, 2026 19:52
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