Skip to content

Clients and Endpoint Methods

src/odins_eye/__init__.py re-exports:

  • OdinsEyeClient
  • AsyncOdinsEyeClient
  • RetryConfig
  • OdinsEyeError
  • OdinsEyeAPIError
  • api_key: optional, sent as x-api-key when provided
  • headers: merged into default headers
  • timeout: optional httpx.Timeout
  • http2: defaults to True
  • retry_config: optional RetryConfig
  • enable_logging: enables debug logging

Defaults:

  • Accept: application/json
  • User-Agent: odins-eye-pypi/<package-version>
  • timeout=httpx.Timeout(10.0, connect=5.0)
  • Base host fixed to https://api.brookmimir.com
  • Context manager supported via __enter__/__exit__
  • Call close() for manual cleanup
  • Mirrors sync method names and semantics
  • Uses httpx.AsyncClient
  • Supports async context manager (__aenter__/__aexit__)
  • Call aclose() for manual cleanup
MethodHTTP VerbPathNotes
index()GET/Returns status message
document(doc_id)GET/documentSends bmm-doc-id header
query(query)POST/queryValidates with QueryRequest
profile()GET/profileUser profile
version()GET/versionAPI version
credits()GET/creditsCredit balance / status
face_search(image_path, payload=None)POST/face/searchEncodes file to Base64
nettest()GET/nettestLightweight connectivity check