Shortcuts

FlashRegistry

class flash.core.registry.FlashRegistry(name, verbose=False)[source]

This class is used to register function or functools.partial class to a registry.

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

This function is used to gather matches from the registry:

Parameters
  • key (str) – Name of the registered function.

  • with_metadata (bool) – Whether to include the associated metadata in the return value.

  • strict (bool) – Whether to return all matches or just one.

  • metadata – Metadata used to filter against existing registry item’s metadata.

Return type

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

Read the Docs v: latest
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.