Alle Tasks/tools als Webservice oder CLI

gc-server3 40dfd806cc bcp-log verfeinert und an db_run angehängt il y a 1 semaine
.vscode 2e6f8c6fed Tests am Beispiel von csv_cleanup il y a 10 mois
cognos11 33b4a7cbb8 Problem mit Grad-Zeichen il y a 1 mois
cognos7 64a5ee52b9 MDL-SQL angepasst - berechnete Felder und eckige Klammern il y a 5 mois
config c1d926a0bc Ordner wegen Mehrdeutigkeit umbenannt il y a 5 mois
database 40dfd806cc bcp-log verfeinert und an db_run angehängt il y a 1 semaine
dist b63f07e23d Enhance report output functionality and improve log file handling il y a 5 mois
docs a2a10bcc0b Grundlage für Hilfeseiten mit mkdocstrings il y a 1 an
excel b4a5e4d7af Fehlerunterdrückung VS Code il y a 9 mois
logviewer 118ade3241 black & alte Linux-Pfade il y a 1 an
misc 4cf869d826 bcp csv-trim il y a 1 mois
pdf b63f07e23d Enhance report output functionality and improve log file handling il y a 5 mois
services 2ab1610a79 von Python-Ordner übernommen il y a 2 ans
status_client 79174cfc42 Neuer Versuch mit status-client il y a 1 mois
tests b100a9daf8 Fehler bei Bereinigung - Carriage Return ohne New Line il y a 1 mois
.gitignore a6a8db6f2f C11 auch remote erreichbar, Export mit retry il y a 5 mois
.python-version d3626f15ea uv il y a 9 mois
README.md 690913b1cc Readme Links il y a 9 mois
__init__.py a2a10bcc0b Grundlage für Hilfeseiten mit mkdocstrings il y a 1 an
backup.py 88b654a0b8 Diverses il y a 9 mois
c11.bat 52470ae074 Wartung il y a 2 ans
c11.py b63f07e23d Enhance report output functionality and improve log file handling il y a 5 mois
c11.spec fa69aa35ae C11.exe mit "mailtemplate" il y a 2 ans
c7.py d61fc579b3 Ausnahmen für Dateitypen, automatisches generieren der Batch-Dateien il y a 9 mois
db.bat 52470ae074 Wartung il y a 2 ans
db.py 40dfd806cc bcp-log verfeinert und an db_run angehängt il y a 1 semaine
db.spec 43f9312ea2 DatabaseTools als db.exe (erster Versuch) il y a 2 ans
docker-compose.yml d2079a5b6f Vorlage für Webservice von status-server il y a 2 ans
dump.json 6ff0f15c77 C11 json-Dateien (Testdaten) il y a 2 ans
favicon.ico 52470ae074 Wartung il y a 2 ans
gctools.bat a6a8db6f2f C11 auch remote erreichbar, Export mit retry il y a 5 mois
gctools.py 596465b5f1 LDAP-Funktionen über gctools ldap il y a 1 mois
gctools.spec a6a8db6f2f C11 auch remote erreichbar, Export mit retry il y a 5 mois
ldap.py 596465b5f1 LDAP-Funktionen über gctools ldap il y a 1 mois
main.py d2079a5b6f Vorlage für Webservice von status-server il y a 2 ans
misc2.py 4cf869d826 bcp csv-trim il y a 1 mois
mkdocs.yml a2a10bcc0b Grundlage für Hilfeseiten mit mkdocstrings il y a 1 an
pyproject.toml a6a8db6f2f C11 auch remote erreichbar, Export mit retry il y a 5 mois
requirements.txt a2a10bcc0b Grundlage für Hilfeseiten mit mkdocstrings il y a 1 an
status.py 7c172a08bd "Main"-Funktion umbenannt il y a 1 an
tox.ini d4b4be6fad mdl_convert dynamisch ohne einzelne Funktionen il y a 2 ans
uv.lock a6a8db6f2f C11 auch remote erreichbar, Export mit retry il y a 5 mois
uwsgi.ini d2079a5b6f Vorlage für Webservice von status-server il y a 2 ans
xls.py 1a3421bd77 Excel auf xlwings umgestellt und bei König getestet il y a 1 an

README.md

gctools.exe

Installation

Zunächst muss uv, der Python-Paketmanager, installiert werden:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Im Anschluss git-Repository klonen (am Beispiel von Ordner C:\Projekte - im Grunde beliebig):

cd C:\Projekte
git clone https://git.global-cube.com/GlobalCube/gctools.git

Git erstellt einen Unterordner C:\Projekte\gctools, in dem das gesamte Projekt abgelegt ist. Jetzt müssen alle Requirements erfüllt werden: passende Python-Version, benötigte Module mit entsprechenden Abhängigkeiten. Das übernimmt uv

cd C:\Projekte\gctools
uv run gctools.py

Die Konsole meldet dann Folgendes:

(gctools) C:\Projekte\gctools>uv run gctools.py

 Usage: gctools.py [OPTIONS] COMMAND [ARGS]...

 gctools.exe - Hilfe unter https://docs.global-cube.com/5_Tasks/3_gctools/
 Version 1.0 vom 25.02.2025

╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                      │
╰──────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────╮
│ backup                                                                           │
│ c11                                                                              │
│ c7                                                                               │
│ db                                                                               │
│ misc                                                                             │
│ excel                                                                            │
│ status                                                                           │
╰──────────────────────────────────────────────────────────────────────────────────╯

Das Repository ist nun bereit für die Bearbeitung.

Deployment

Um das Package zu erstellen, muss lediglich die gctools.bat ausgeführt werden. Damit werden alle Projektdateien und Module zu einer großen exe-Datei zusammengefasst. Diese wird im Unterordner dist abgelegt.

In der gctools.bat ist noch ein Kopierbefehl für den Ordner P:\GCTools enthalten. Hier sollte immer die neueste Version abgelegt werden.

Dokumentation

Abgesehen von dieser Kurzanleitung ist die Dokumentation unter folgendem Link zu finden: https://docs.global-cube.com/5_Tasks/3_gctools/

Das entsprechende mkdocs-Repository liegt hier: https://github.com/Global-Cube/docs.git