ilias-cli
Status: Beta (0.x). Getestet mit Fixtures und Mocks (326 Tests grün). Ein Live-Test an der HHN steht noch aus; Befehle und Ausgaben können sich vor 1.0 ändern.
Installation:
uv tool install ilias-clioderpipx install ilias-cli, danachilias --help.
CLI (später MCP-Server) für ILIAS (Hochschule Heilbronn, Uni Mannheim) und Moodle (Hochschule Mannheim). Anforderungen: ANFORDERUNGEN.md, Vertrag: INTERFACE.md, Moodle-Details: MOODLE.md.
Instanzen
ilias_core hat ein Backend pro Plattform (ilias_core.backends: IliasBackend,
MoodleBackend) und eine Instanz-Registry in ilias_core.config. Eingebaut sind:
--instance |
LMS | Login | Befehle |
|---|---|---|---|
hhn (Default) |
ILIAS | OIDC/Keycloak (+ TOTP) | login, status, logout, courses, ls, download |
uni-mannheim |
ILIAS | SAML/Shibboleth | login, status, logout, courses, ls, download (ungetestet) |
hs-mannheim |
Moodle | Webservice-Token (moodle_mobile_app) |
login, status, logout, courses, ls |
Jedes Profil lässt sich in ~/.config/ilias-cli/config.toml (bzw.
$ILIAS_CLI_CONFIG_DIR/config.toml) unter [instances.<key>] überschreiben oder neu
anlegen (lms = "ilias" | "moodle", base_url, bei ILIAS zusätzlich client_id, auth).
download ist derzeit nur auf ILIAS-Instanzen verfügbar (Moodle: nicht unterstützt).
ilias login --instance hhn # ILIAS HHN
ilias login --instance hs-mannheim # Moodle: Benutzername + Passwort (verdeckt)
ilias status --instance hs-mannheim --json
ilias courses --instance hs-mannheim
ilias ls PR1 --instance hs-mannheim --depth 2
ilias logout --instance hs-mannheim
Download (F5, nur ILIAS)
ilias download 900101 -o ~/Studium # ganzer Kurs -> ~/Studium/<Kursname>/<Ordner>/…
ilias download "KI-Programmierung" "Übungsblätter" # nur ein Ordner (Pfad relativ zum Kurs)
ilias download 900101 900311 # eine Datei per ref_id (aus `ilias ls --json`)
ilias download 900101 -n # --dry-run: nur anzeigen
- Zweiter Lauf lädt nur neue oder in ILIAS geänderte Dateien (Manifest
.ilias-download.jsonim Kursordner). Von Hand abgelegte Dateien mit gleichem Namen werden nicht überschrieben;--forcelädt trotzdem neu. - Offline-Objekte werden übersprungen. Einzelne verweigerte Dateien stehen als
failedin der Ausgabe, der Rest wird geladen, Exit-Code dann 1. Session abgelaufen -> Exit 3, Server -> Exit 4. --json:{ok, course, target_dir, summary{downloaded,skipped,planned,failed}, items[{ref_id,name,path,status,size,error_code,message}]}.- Abschnitte der Kursseite („Inhalt“, Objektblöcke) werden nicht zu Ordnern, nur ILIAS-Ordner/Gruppen.
Tests
Alle Tests laufen nur gegen localhost-Fake-Server; eine Netzwerk-Sperre lässt jeden Test scheitern, der einen echten Server erreichen will.
uv sync
uv run pytest tests/acceptance tests/attempt -q # ILIAS (Login-Vertrag F1 + A1–A6, Unit-Tests)
uv run pytest tests/moodle -q # Moodle (Fake-Moodle)
uv run python tests/acceptance/leak_check.py "<geheimnis>" ~/.config/ilias-cli # Secret-Leak-Check
Exit-Codes: 0 OK · 1 Auth-Fehler/sonstiges · 2 nicht eingeloggt · 3 Session abgelaufen · 4 Netzwerk/Server · 5 Parser-Fehler.
Metadata
Release files for ilias-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ilias_cli-0.1.0.tar.gz | 220.9 kB | Without provenance | Details for ilias_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ilias_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ilias_cli-0.1.0-py3-none-any.whl |
Total release size: 295.3 kB
Release files / ilias_cli-0.1.0.tar.gz
| Download URL | ilias_cli-0.1.0.tar.gz |
|---|---|
| Size | 220.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
949cc74c4922837177ab23a63b88bda327719dc39ed8b327fb7e7102382d2909
|
|
BLAKE2b-256 checksum How to use checksums |
7e1f97cd5065f5340dc5b0c12425a49060646965453434488ae6d4a59ff637da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / ilias_cli-0.1.0-py3-none-any.whl
| Download URL | ilias_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 74.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12a5b0349d483d987805a6e8e34346e3acbd2dce53ad74331b08ebb43782b731
|
|
BLAKE2b-256 checksum How to use checksums |
2a165b1efdf016fe3532d8def4acedf17453b68729c19e28f990c13bd4200fdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for ilias-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.