client.hub object provides access to domains and schemas for structured data extraction.
Python SDK
client.hub
Hub API Reference
The
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hub API Reference
client.hub object provides access to domains and schemas for structured data extraction.
from vlmrun.client import VLMRun
from vlmrun.client.types import HubDomainInfo, HubSchemaResponse
client = VLMRun()
# List all available domains
domains: List[HubDomainInfo] = client.hub.list_domains()
# Print domain information
for domain in domains:
print(f"Domain: {domain.domain}")
# Get schema for a specific domain
schema: HubSchemaResponse = client.hub.get_schema("document.invoice")
print(f"version={schema.version}, hash={schema.hash}, json_schema={schema.json_schema}")