ArchiveBox/archivebox/plugins_search/sonic/__init__.py

53 lines
1,008 B
Python

__package__ = 'plugins_search.sonic'
__label__ = 'sonic'
__version__ = '2024.10.14'
__author__ = 'ArchiveBox'
__homepage__ = 'https://github.com/valeriansaliou/sonic'
__dependencies__ = []
import abx
@abx.hookimpl
def get_PLUGIN():
return {
'sonic': {
'PACKAGE': __package__,
'LABEL': __label__,
'VERSION': __version__,
'AUTHOR': __author__,
'HOMEPAGE': __homepage__,
'DEPENDENCIES': __dependencies__,
}
}
@abx.hookimpl
def get_CONFIG():
from .config import SONIC_CONFIG
return {
'sonic': SONIC_CONFIG
}
@abx.hookimpl
def get_BINARIES():
from .binaries import SONIC_BINARY
return {
'sonic': SONIC_BINARY
}
@abx.hookimpl
def get_SEARCHBACKENDS():
from .searchbackend import SONIC_SEARCH_BACKEND
return {
'sonic': SONIC_SEARCH_BACKEND,
}
@abx.hookimpl
def ready():
from .config import SONIC_CONFIG
SONIC_CONFIG.validate()