stream.contrib¶
stream.contrib ¶
Entry-point discovery for Stream plugins.
Stream is extended by registering Python callables under these entry-point
groups (in a user's pyproject.toml):
angelo.stream.feeds->name = module:factorywherefactory(FeedConfig) -> FeedAdapter.angelo.stream.routers->name = module:factory(callable returning aRouter, or aRouterclass).angelo.stream.selectors->name = module:fnwherefn(Document) -> list[str](schema names) for use as a classifier fallback.angelo.stream.templates->name = module:objwhereobjis aWorkflowTemplate(instance or zero-arg factory).
Discovery is cached for the process lifetime. Entry points only appear after a
(re)install writes them into distribution metadata, so during dev you can also
register plugins in-process via the register_* helpers in the relevant module.
discover_templates ¶
Return WorkflowTemplate instances from the templates group.