- Dropped Python 3.8.
- Incorrect parameter passed to
pathlib.Path.mkdir
.
- Support Python 3.12 and 3.13.
- Paths are now
pathlib.Path
objects. directory.directories
is now aplatformdirs.PlatformDirs
object.
- Dropped Python 3.7 support.
- The
directory.AppDirsPath
class does not exist anymore.
- Support Python 3.11.
- Fixed custom decorators hiding functions docstrings.
config.Config
object to store config. Config can be loaded from a file (once). When accessing a value, it is first searched in environment variables, then in stored values.- Methods that add a message to a raised exception can be generated from
exceptions.generate_exception_handler
. - All exceptions of the program can be caught in
__main__.py
withexceptions.handle_all_exceptions
. - Application directories are available with the object
directory.directories
. - Mac OS support.
config.load_config
was integrated inconfig.Config
as methodload_file
. Its different actions were divided:- Loading the config file:
config.Config.load_file
; - Checking mandatory keys:
config.Config.check_mandatory_keys
; and - Setting debug mode:
config.Config.set_debug
.
- Loading the config file:
- Checking the validity of parameters of
HTTPClient
is now done in theload
method.
- Dropped Python 3.5 and 3.6 support.
- Endpoint for HTTP client authenticated is stored in
dakara_base.http_client.HTTPClient.AUTHENTICATE_ENDPOINT
and can be edited. Default value was updated toaccounts/login/
.
- Removed module
resources_manager
. Use the standardimportlib.resources
instead.
- You can now specify custom log format and log level in
dakara_base.config.create_logger
with argumentscustom_log_format
andcustom_log_level
. - Access to and create user-level stored Dakara config files with
dakara_base.config.get_config_file
anddakara_base.config.create_config_file
.
progress_bar
: the progress bar now displays percentage.
progress_bar
: When an exception was raised within a progress bar, it would prevent to stop the capture of stderr, leading to hide any further log entry.
progress_bar
: a collection of progress bars.
- Add
safe_workers
in the readme.
- Fixed a bug when dealing with a HTTP route that does not have a content.
Initial release.
config
: a configuration helper that can load an YAML file and manage loggers;exceptions
: a base class for exceptions;http_client
: an HTTP client dedicated to be used with an API;resources_manager
: a helper for retreiving static files with module-like naming;utils
: other various helpers;websocket_client
: a Websocket client.