suisa-convert-acr-v4.py aktualisiert

This commit is contained in:
2026-02-05 15:37:32 +01:00
parent cec877c1df
commit aa49c9a7c0

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env python3
# Format ACRCloud CSV/XLSX reports (Radio Stadtfilter) in das SUISALayout
# Format ACRCloud CSV/XLSX reports (Radio Stadtfilter) in das SUISA Layout
# mit korrekter Spaltenreihenfolge, automatischer Spaltenbreite,
# Fonts/Ausrichtung und sauberem Zeitformat.
# Usage: python format_radio_report.py <input.xlsx> [-o <output.xlsx>]
@@ -84,7 +83,7 @@ def _build_dataframe(src: Path) -> pd.DataFrame:
return df_new
# ---------------------------------------------------------------------------
# ExcelNachformatierung
# Excel Nachformatierung
# ---------------------------------------------------------------------------
def _autofit_and_align(xlsx: Path) -> None:
@@ -128,7 +127,7 @@ def format_report(input_path: Path, output_path: Path) -> None:
print(f"Formatiertes Reporting gespeichert → {output_path}")
# ---------------------------------------------------------------------------
# CLIEntry
# CLI Entry
# ---------------------------------------------------------------------------
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Format ACRCloud XLSX für SUISA")