Shortcuts

ExternalRegistry

class flash.core.registry.ExternalRegistry(getter, name, providers=None, verbose=False, **metadata)[source]

The ExternalRegistry is a FlashRegistry that can point to an external provider via a getter function.

Parameters
  • getter (Callable) – A function whose first argument is a key that can optionally take additional args and kwargs.

  • providers (Union[Provider, List[Provider], None]) – The provider(/s) of entries in this registry.

available_keys()[source]

Since we don’t know the available keys, just give a generic message.

Return type

List[str]

get(key, with_metadata=False, strict=True, **metadata)[source]

Returns a partial of the getter with the first argument as the given key and wrapped to print the providers.

Return type

Union[Callable, Dict[str, Any], List[Dict[str, Any]], List[Callable]]

Read the Docs v: stable
Versions
latest
stable
0.8.2
0.8.1.post0
0.8.1
0.8.0
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0post1
Downloads
html
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.