libretime/analyzer/libretime_analyzer
Jonas L fe0b2c4a7a
feat(analyzer): enhance analyzer cli and logging (#1507)
Some initial work on modernizing the analyzer app. This replace any custom logger or `logging` based logger with the logging tools from `libretime_shared.logging` and `loguru`.

- rename cli to main
- use pathlib in setup.py
- add api-client and shared package as dev deps
- rework main entrypoint cli to use click and shared helpers
- remove unused imports
- replace logging with logger
- rework analyzer app using shared abstract app
- move analyzer log path to systemd service
- change analyzer working dir

BREAKING CHANGE: The analyzer cli has been reworked and uses new flags / environnement variables for configuration.
`--debug` flag becomes `--log-level <level>`
`--rmq-config-file` flag becomes `--config <filepath>`
`--http-retry-queue-file` flag becomes `--retry-queue-filepath`.
`retry-queue-filepath` default value changed from `/tmp/airtime_analyzer_http_retries` to `retry_queue` in the working dir.
`LIBRETIME_CONF_DIR` environnement variable replaced by `LIBRETIME_CONFIG_FILEPATH`.

BREAKING CHANGE: When running analyzer as a systemd service, the working directory is now /var/lib/libretime/analyzer.
2022-01-17 10:26:30 +02:00
..
__init__.py chore: rename airtime_analyzer dir to libretime_analyzer 2022-01-04 09:18:58 +02:00
analyzer.py chore: rename airtime_analyzer dir to libretime_analyzer 2022-01-04 09:18:58 +02:00
analyzer_pipeline.py feat(analyzer): enhance analyzer cli and logging (#1507) 2022-01-17 10:26:30 +02:00
config_file.py chore: rename airtime_analyzer dir to libretime_analyzer 2022-01-04 09:18:58 +02:00
cuepoint_analyzer.py feat(analyzer): enhance analyzer cli and logging (#1507) 2022-01-17 10:26:30 +02:00
filemover_analyzer.py feat(analyzer): enhance analyzer cli and logging (#1507) 2022-01-17 10:26:30 +02:00
main.py feat(analyzer): enhance analyzer cli and logging (#1507) 2022-01-17 10:26:30 +02:00
message_listener.py feat(analyzer): enhance analyzer cli and logging (#1507) 2022-01-17 10:26:30 +02:00
metadata_analyzer.py feat(analyzer): enhance analyzer cli and logging (#1507) 2022-01-17 10:26:30 +02:00
playability_analyzer.py feat(analyzer): enhance analyzer cli and logging (#1507) 2022-01-17 10:26:30 +02:00
replaygain_analyzer.py feat(analyzer): enhance analyzer cli and logging (#1507) 2022-01-17 10:26:30 +02:00
status_reporter.py feat(analyzer): enhance analyzer cli and logging (#1507) 2022-01-17 10:26:30 +02:00