jade.extensions.registry.Registry

class jade.extensions.registry.Registry(registry_filename=None)[source]

Bases: object

Manages extensions registered with JADE.

Methods

add_logger(package_name)

Add a package name to the logging registry.

get_extension_class(extension_name, class_type)

Get the class associated with the extension.

is_registered(extension_name)

Check if the extension is registered

iter_extensions()

Return an iterator over registered extensions.

list_extensions()

Return a list of registered extensions.

list_loggers()

List the package names registered to be logged.

register_demo_extension()

register_extension(extension)

Registers an extension in the registry.

remove_logger(package_name)

Remove a package name from the logging registry.

reset_defaults()

Reset the registry to its default values.

show_extensions()

Show the registered extensions.

show_loggers()

Print the package names registered to be logged.

unregister_extension(extension_name)

Unregisters an extension.

Attributes

FORMAT_VERSION

registry_filename

Return the filename that stores the registry.

add_logger(package_name)[source]

Add a package name to the logging registry.

Parameters:

package_name (str)

remove_logger(package_name)[source]

Remove a package name from the logging registry.

Parameters:

package_name (str)

list_loggers()[source]

List the package names registered to be logged.

Return type:

list

show_loggers()[source]

Print the package names registered to be logged.

get_extension_class(extension_name, class_type)[source]

Get the class associated with the extension.

Parameters:
Raises:

InvalidParameter – Raised if the extension is not registered.

is_registered(extension_name)[source]

Check if the extension is registered

iter_extensions()[source]

Return an iterator over registered extensions.

Return type:

dict_values

list_extensions()[source]

Return a list of registered extensions.

Return type:

list of dict

register_extension(extension)[source]

Registers an extension in the registry.

Parameters:

extension (dict)

Raises:

InvalidParameter – Raised if the extension is invalid.

property registry_filename

Return the filename that stores the registry.

reset_defaults()[source]

Reset the registry to its default values.

show_extensions()[source]

Show the registered extensions.

unregister_extension(extension_name)[source]

Unregisters an extension.

Parameters:

extension_name (str)