Skip to content

template-vars: pluggable custom generators (agctl.template_vars entry point) #59

Description

@HumanBean17

Follow-up to PR #56 (template variables).

The generator registry (agctl/template_vars.py BUILTIN_GENERATORS) is shaped for extension. Built-ins today: uuid/ts/rand.

Proposal: discover custom generators via an agctl.template_vars entry-point group (mirrors the existing agctl.db_drivers/agctl.logs_backends/agctl.assertions pattern), so domain generators ({{ulid}}, {{phone}}, {{iban}}, …) can be added without touching core. The charset invariant must extend to third-party generators (validate the registered output charset, or document the contract).

Deferred per the design spec §16.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions