Skip to content

API Reference parrot.flows.dev_loop.config

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

parrot.flows.dev_loop.config

View source

Dev-loop configuration helpers (FEAT-253).

Provides :func:parse_repo_specs — a pure, synchronous helper that converts raw DEV_LOOP_REPOS env entries into :class:~parrot.flows.dev_loop.models.RepoSpec objects.

conf.py must never import dev_loop, so this parser lives here and is called by the demo server (examples/dev_loop/server.py) and any other consumer that needs to turn string env-var entries into RepoSpec instances.

Alias RepoSpec

Re-exported from parrot.flows.dev_loop.models.RepoSpec.

Function parse_repo_specs

Parse DEV_LOOP_REPOS entries into :class:RepoSpec objects.

Each entry is one of:

  • a JSON object string — RepoSpec(**json.loads(entry)) (honors alias / branch / private).
  • a full clone URL — RepoSpec(alias=<derived>, url=<entry>). Supports https://github.com/owner/name(.git) and git@github.com:owner/name.git.
  • an owner/name slug — RepoSpec(alias=<name>, url=<entry>).

The alias defaults to the repo's <name> component with any trailing .git stripped. branch defaults to "main" and private to False unless supplied in the JSON form.

Blank / whitespace-only entries are silently skipped. Invalid JSON falls back to URL/slug handling so a slightly-malformed entry still produces a usable RepoSpec. Entries for which no alias can be derived (e.g. bare git@github.com:) are also skipped with a warning.

parse_repo_specs(raw: list[str]) -> list[RepoSpec]

Parameter Type Default Description
raw list[str] List of raw string entries from DEV_LOOP_REPOS.

Returns: list[RepoSpec] — List of :class:RepoSpec instances, in order.

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