Skip to content

API Reference parrot_tools.querysource._qs

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.querysource._qs

View source

Lazy, patchable access to the optional querysource dependency (spec §3 M1).

Attribute ComponentRegistry

Type: Any

Attribute MultiQS

Type: Any

Attribute QS

Type: Any

Attribute QueryModel

Type: Any

Function default_dsn

Return querysource.conf.asyncpg_url (conf.py:44) — the DSN get_query_slug uses for public.queries.

default_dsn() -> str

Returns: str

Function get_component_registry

Return querysource.queries.multi.registry.ComponentRegistry (registry.py:72).

get_component_registry() -> type

Returns: type

Function get_definition_repository

Return a loop-local DefinitionRepository from QuerySource's connection accessor.

Connection ownership stays inside querysource: Connection().get_definition_repository() builds the repository over the QuerySource() singleton's tenant registry and definition connection factory. Tests monkeypatch this function.

get_definition_repository() -> Any

Returns: Any

Function get_describe

Return querysource.queries.describe (build_variables, KEYWORD_TYPES, IMPLICIT_DEFAULTS).

get_describe() -> ModuleType

Returns: ModuleType

Function get_exceptions

Return the querysource.exceptions module (SlugNotFound, DataNotFound, QueryException, DriverError).

get_exceptions() -> ModuleType

Returns: ModuleType

Function get_multiqs

Return querysource.queries.multi.MultiQS (multi/init.py:56).

get_multiqs() -> type

Returns: type

Function get_qs

Return querysource.queries.qs.QS (qs.py:36), caching it in the QS slot.

get_qs() -> type

Returns: type

Function get_query_model

Return querysource.models.QueryModel (models.py:48).

get_query_model() -> type

Returns: type

Function get_tenants

Return querysource.tenants (QueryIdentity, LoadedDefinition, TenantError).

get_tenants() -> ModuleType

Returns: ModuleType

Function installed_version

Return querysource.version.__version__ (the workspace floor is 5.1.2, FEAT-611).

installed_version() -> str

Returns: str

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally