Skip to content

Commit

Permalink
revert reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Mar 8, 2024
1 parent 04ce073 commit c5ba34f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions airbyte/sources/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,6 @@ def _get_registry_cache(*, force_refresh: bool = False) -> dict[str, ConnectorMe
return __cache


def get_available_connectors() -> list[str]:
"""Return a list of all available connectors.
Connectors will be returned in alphabetical order, with the standard prefix "source-".
"""
return sorted(
conn.name for conn in _get_registry_cache().values() if conn.pypi_package_name is not None
)


def get_connector_metadata(name: str) -> ConnectorMetadata:
"""Check the cache for the connector.
Expand All @@ -122,3 +112,13 @@ def get_connector_metadata(name: str) -> ConnectorMetadata:
},
)
return cache[name]


def get_available_connectors() -> list[str]:
"""Return a list of all available connectors.
Connectors will be returned in alphabetical order, with the standard prefix "source-".
"""
return sorted(
conn.name for conn in _get_registry_cache().values() if conn.pypi_package_name is not None
)

0 comments on commit c5ba34f

Please sign in to comment.