Utils¶
fluid.utils.lazy.LazyGroup
¶
Bases: Group
A click Group that can lazily load subcommands
This class extends the click.Group class to allow for subcommands to be lazily loaded from a module path.
It is useful when you have a large number of subcommands that you don't want to load until they are actually needed.
Available with the cli extra dependencies.
| PARAMETER | DESCRIPTION |
|---|---|
lazy_subcommands
|
A dictionary mapping command names to their import paths. This allows subcommands to be lazily loaded from the specified module paths.
TYPE:
|
**kwargs
|
Additional keyword arguments passed to the click.Group initializer.
TYPE:
|
Source code in fluid/utils/lazy.py
list_commands
¶
fluid.utils.log.config
¶
config(
level=LOG_LEVEL,
other_level=WARNING,
app_names=(APP_NAME,),
log_handler=LOG_HANDLER,
log_format=PYTHON_LOG_FORMAT,
formatters=None,
)
Configure logging for the application
| PARAMETER | DESCRIPTION |
|---|---|
level
|
Log levels for application loggers defined by the
TYPE:
|
other_level
|
log levels for loggers not prefixed by
TYPE:
|
app_names
|
Application names for which the log level is set, these are the prefixes which will be set at
TYPE:
|
log_handler
|
Log handler to use, by default it is taken from the
TYPE:
|
log_format
|
log format to use, by default it is taken from the
TYPE:
|
formatters
|
Additional formatters to add to the logging configuration
TYPE:
|