Skip to main content

iCloud CalDAV Adapter

Lokaler Python-CLI-/MCP-Adapter für Apple Kalender über https://caldav.icloud.com. Kalender und Termine lesen, neue Termine erstellen und vorhandene Einzeltermine ändern. Es gibt keine Löschfunktion.

Sicherheit und Grenzen

  • Nur Apple-ID und App-spezifisches Passwort werden benötigt: ICLOUD_APPLE_ID und ICLOUD_APP_PASSWORD. Beide gehören ausschließlich in einen Vault.
  • Feste HTTPS-Verbindung zu Apple CalDAV. Keine Zugangsdaten im Quelltext, in CLI-Argumenten oder Protokollen.
  • Schreibzugriffe erfolgen nur durch die ausdrücklich aufgerufenen Werkzeuge create-event und update-event.
  • Keine Teilnehmer-/Einladungsfelder, keine Löschoperation und kein Ändern von Serienterminen.
  • Kalender werden über die zuvor von list-calendars gelieferte iCloud-URL ausgewählt. Zeiträume sind begrenzt, Uhrzeiten benötigen eine Zeitzone oder einen UTC-Offset.
  • Ganztägige Termine verwenden YYYY-MM-DD; das Enddatum ist wie in iCalendar exklusiv.

Funktionen

  • list-calendars: Namen und URLs der Kalender auflisten.
  • list-events: Termine in einem angegebenen Zeitraum lesen.
  • create-event: Einzeltermin mit Titel, Start, Ende sowie optional Beschreibung und Ort erstellen.
  • update-event: Einzeltermin anhand seiner UID ändern. Start und Ende müssen gemeinsam geändert werden.
  • Aufruf ohne Unterbefehl oder mit mcp: MCP über stdio.

Installation und CLI

Python 3.10 oder neuer wird benötigt.

python -m pip install icloud-caldav-adapter
icloud-caldav-adapter list-calendars
icloud-caldav-adapter list-events --calendar-url 'https://caldav.icloud.com/...' --start 2026-12-01T00:00:00+01:00 --end 2027-01-01T00:00:00+01:00
icloud-caldav-adapter create-event --calendar-url 'https://caldav.icloud.com/...' --summary 'Beispiel' --start 2026-12-02T14:00:00+01:00 --end 2026-12-02T15:00:00+01:00
icloud-caldav-adapter update-event --calendar-url 'https://caldav.icloud.com/...' --uid 'UID' --location 'Büro'

Die beiden Secret-Umgebungsvariablen müssen vorher privat bereitgestellt werden. Die Ausgabe erfolgt als JSON.

Tests

Die Tests verwenden ausschließlich Scheinobjekte und synthetische iCalendar-Daten, niemals echte Zugangsdaten oder Kalender.

PYTHONPATH=src python -m unittest discover -s tests -v

Geprüft werden Kalender- und Terminformate, Erstellen und Ändern, Eingabevalidierung, Serienschutz, MCP-Werkzeugliste und das Fehlen jeder Löschfunktion.

Release und Nod

python -m build
python -m twine check dist/*

Für Nod: PyPI-Quelle icloud-caldav-adapter, CLI-Befehl icloud-caldav-adapter ohne Argumente, Authentifizierung über die Umgebungs-Secrets ICLOUD_APPLE_ID und ICLOUD_APP_PASSWORD.

Metadata

Release files for icloud-caldav-adapter 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for icloud-caldav-adapter 1.0.0
File Size Uploaded Provenance Actions
icloud_caldav_adapter-1.0.0.tar.gz 8.2 kB Without provenance Details for icloud_caldav_adapter-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for icloud-caldav-adapter 1.0.0
File Interpreter ABI Platform Actions
icloud_caldav_adapter-1.0.0-py3-none-any.whl Python 3 none any Details for icloud_caldav_adapter-1.0.0-py3-none-any.whl

Total release size: 16.7 kB

Release files / icloud_caldav_adapter-1.0.0.tar.gz

Download URL icloud_caldav_adapter-1.0.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
821e1a057d1e74039f309d23b666765614d0bf6de171c97e6d205cba90948a96
BLAKE2b-256 checksum
How to use checksums
a268c624838c677bf6c1206fcb993b6a88fe5fd493c75d8ffc6deb7fc3227631
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.2

Release files / icloud_caldav_adapter-1.0.0-py3-none-any.whl

Download URL icloud_caldav_adapter-1.0.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
124f5ab192730f7ed31e636594b1040c638c373ff2266fb5ec2c003b2573b845
BLAKE2b-256 checksum
How to use checksums
e0ec9b1bf78da2b4204adf7c45a0153c467e4ecabac5fdc59ea75c2cb1be794e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.2

Security for icloud-caldav-adapter 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page