registry
appimage_updater.repositories.registry
¶
Repository handler registry system for dynamic repository type discovery.
This module provides a plugin-like architecture for repository handlers, allowing new repository types to be added without modifying core code.
RepositoryHandler
¶
RepositoryHandlerMetadata(name, priority=100, supported_domains=list(), supported_url_patterns=list(), description='', version='1.0.0')
dataclass
¶
Metadata for a repository handler.
description = ''
class-attribute
instance-attribute
¶
name
instance-attribute
¶
priority = 100
class-attribute
instance-attribute
¶
supported_domains = field(default_factory=list)
class-attribute
instance-attribute
¶
supported_url_patterns = field(default_factory=list)
class-attribute
instance-attribute
¶
version = '1.0.0'
class-attribute
instance-attribute
¶
can_handle_url_pattern(url)
¶
Check if this handler can handle a URL pattern.
RepositoryHandlerRegistry()
cached
¶
Registry for repository handlers with dynamic discovery.
Source code in src/appimage_updater/repositories/registry.py
get_handler(name)
¶
get_handlers_for_url(url)
¶
Get all handlers that can handle the given URL, sorted by priority.
Source code in src/appimage_updater/repositories/registry.py
register(handler)
¶
Register a repository handler.