arioso.registry#

Platform registry with auto-discovery and lazy loading.

Functions

discover_platforms()

Scan arioso.platforms for valid platform packages.

get_platform(name)

Get registered platform info, lazy-loading the adapter if needed.

list_platforms()

Return names of all registered platforms.

register_platform(name, config[, adapter])

Manually register a platform (for third-party plugins).

arioso.registry.discover_platforms()[source]#

Scan arioso.platforms for valid platform packages.

A valid platform package is a directory under arioso/platforms/ that:

  1. Is a Python package (__init__.py exists)

  2. Contains a config.py with a PLATFORM_CONFIG dict

Return type:

list[str]

Returns:

List of discovered platform names.

arioso.registry.get_platform(name)[source]#

Get registered platform info, lazy-loading the adapter if needed.

Parameters:

name (str) – Platform identifier.

Return type:

dict

Returns:

Dict with ‘config’ and ‘adapter’ keys.

Raises:

KeyError – If the platform is not found.

arioso.registry.list_platforms()[source]#

Return names of all registered platforms.

Return type:

list[str]

arioso.registry.register_platform(name, config, adapter=None)[source]#

Manually register a platform (for third-party plugins).

Parameters:
  • name (str) – Platform identifier.

  • config (dict) – PLATFORM_CONFIG dict following the standard schema.

  • adapter (Any) – Optional pre-instantiated adapter object or class.