Skip to content

feat: add brand and property registry lookup methods#130

Merged
bokelley merged 1 commit intomainfrom
bokelley/registry-lookups
Feb 13, 2026
Merged

feat: add brand and property registry lookup methods#130
bokelley merged 1 commit intomainfrom
bokelley/registry-lookups

Conversation

@bokelley
Copy link
Contributor

Summary

  • Adds RegistryClient class for resolving domains to brands and properties via the AdCP registry API (agenticadvertising.org)
  • lookup_brand / lookup_brands for single and bulk brand resolution
  • lookup_property / lookup_properties for single and bulk property resolution
  • Auto-chunks bulk requests exceeding 100 domains with concurrent execution
  • ResolvedBrand and ResolvedProperty Pydantic response types (matching server types.ts)
  • RegistryError exception for registry API failures
  • Connection pooling with optional httpx.AsyncClient injection
  • 43 tests covering success, 404, error, timeout, chunking, validation, and export paths

Closes #129

Test plan

  • pytest tests/test_registry.py -v — 43 tests pass
  • pytest tests/ -x -q — full suite passes (574 tests)
  • ruff check — no lint errors
  • Import verification: from adcp import RegistryClient, RegistryError, ResolvedBrand, ResolvedProperty

🤖 Generated with Claude Code

Add RegistryClient class for resolving domains to brands and properties
via the AdCP registry API at agenticadvertising.org.

- lookup_brand/lookup_brands for brand resolution (single + bulk)
- lookup_property/lookup_properties for property resolution (single + bulk)
- Auto-chunking for bulk requests exceeding 100 domains
- Connection pooling with optional httpx.AsyncClient injection
- ResolvedBrand and ResolvedProperty Pydantic response types
- RegistryError exception for registry API failures

Closes #129

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bokelley bokelley merged commit 9bfb0fb into main Feb 13, 2026
8 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.

Add brand and property registry lookup methods

1 participant