diff --git a/kleinanzeigen_bot/__init__.py b/kleinanzeigen_bot/__init__.py index 892cf8c..0971ab0 100644 --- a/kleinanzeigen_bot/__init__.py +++ b/kleinanzeigen_bot/__init__.py @@ -9,7 +9,7 @@ from datetime import datetime from logging.handlers import RotatingFileHandler from typing import Any, Final -import certifi +import certifi, colorama from overrides import overrides from ruamel.yaml import YAML from selenium.common.exceptions import ElementClickInterceptedException, NoSuchElementException, TimeoutException, WebDriverException @@ -28,6 +28,8 @@ LOG_ROOT:Final[logging.Logger] = logging.getLogger() LOG:Final[logging.Logger] = logging.getLogger("kleinanzeigen_bot") LOG.setLevel(logging.INFO) +colorama.init() + class KleinanzeigenBot(SeleniumMixin): @@ -131,7 +133,7 @@ class KleinanzeigenBot(SeleniumMixin): exe = "python -m kleinanzeigen_bot" print(textwrap.dedent(f"""\ - Usage: {exe} COMMAND [OPTIONS] + Usage: {colorama.Fore.LIGHTMAGENTA_EX}{exe} COMMAND [OPTIONS]{colorama.Style.RESET_ALL} Commands: publish - (re-)publishes ads diff --git a/pyproject.toml b/pyproject.toml index bd1c59e..fe088c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,7 @@ classifiers = [ # https://pypi.org/classifiers/ ] requires-python = ">=3.10,<3.13" # <3.12 required for pyinstaller dependencies = [ + "colorama~=0.4", "coloredlogs~=15.0", "overrides~=7.4", "ruamel.yaml~=0.18",