28 lines
811 B
Python
28 lines
811 B
Python
"""Import sources. Each module registers its connector class on import;
|
|
the order here is the order the catalog lists them in."""
|
|
from webapi.imports.connectors import csv_, excel, json_, pdf, document, edf, sql # noqa: F401 (catalog order)
|
|
from webapi.imports.connectors.base import Connector, PreviewResult, SourceColumn, SourceTable
|
|
from webapi.imports.connectors.errors import ConnectorError
|
|
from webapi.imports.connectors.registry import (
|
|
CONNECTORS,
|
|
build_connector,
|
|
catalog,
|
|
connector_class,
|
|
kind_for_filename,
|
|
register_connector,
|
|
)
|
|
|
|
__all__ = [
|
|
"CONNECTORS",
|
|
"Connector",
|
|
"ConnectorError",
|
|
"PreviewResult",
|
|
"SourceColumn",
|
|
"SourceTable",
|
|
"build_connector",
|
|
"catalog",
|
|
"connector_class",
|
|
"kind_for_filename",
|
|
"register_connector",
|
|
]
|