topmark.registry¶
topmark.registry ¶
Public registry facade and advanced registries.
This package exposes:
topmark.registry.registry.Registry- the stable, read-only facade for integrators.topmark.registry.filetypes.FileTypeRegistryandtopmark.registry.processors.HeaderProcessorRegistry- advanced, low-level registries intended for plugins and tests (no semver stability guarantee).
Most users should import from here:
from topmark.registry.registry import Registry
fts = Registry.filetypes()
procs = Registry.processors()
Advanced usage (mutation; global state):
from topmark.registry.filetypes import FileTypeRegistry, HeaderProcessorRegistry
FileTypeRegistry.register(my_ft)
HeaderProcessorRegistry.register(my_ft.name, MyProc)
options: heading_level: 1 show_root_heading: true members_order: source filters: - "!^_"