Source code for common.ui

"""
Terminal UI formatting and license display utilities using Rich.
"""

# =============================================================================
# FILENAME:       ui.py
# DESCRIPTION:    Ce fichier s'occupe juste de faire un joli affichae dans le terminal.
#  
# REPOSITORY:     https://github.com/comsee-research/VISWIR.git
#
# AUTHOR:         [Riffard Alexandre]
# EMAIL:          [alexandre.riffard@uca.fr]
# CREATED:        [30-04-2025]
# LAST UPDATED:   [07-05-2025]
# VERSION:        1.0
#
# LICENSE:        GNU LESSER GENERAL PUBLIC LICENSE (voir LICENSE dans le dépôt)
#
# USAGE:          - Appeler ce fichier dans "batch_processing.py"
#
# DEPENDENCIES:   - rich
#
# NOTES:
#   - ...
#
# CHANGELOG:
#   - [09-05-2025]: Création initiale du fichier.
#   - [..-..-....]: ...
#
# =============================================================================

from rich.console import Console
from rich.panel import Panel
from rich.text import Text
from rich.spinner import Spinner
from rich.live import Live
from rich.markdown import Markdown
from time import sleep




    # with Live(spinner, refresh_per_second=12, console=console):
    #     sleep(1.5)  # Animation pendant un petit moment