Teleautoadminbot / core /plugins /manager.py
Alialdlfy1's picture
Upload 168 files
14c1acb verified
Raw History Blame Contribute Delete
505 Bytes
from __future__ import annotations
from .registry import PluginRegistry
from .builtin import register_builtins
class SectionManager:
"""Central registry: new sections are plugins, not edits to the core pipeline."""
def __init__(self, registry=None):
self.registry=registry or PluginRegistry()
register_builtins(self.registry)
self.registry.discover()
def get(self, name):
return self.registry.get(name)
def list(self):
return self.registry.all()