Skip to main content

caldav

This project is a CalDAV (RFC4791) client library for Python.

Features:

  • create, modify calendar
  • create, update and delete event
  • search events by dates
  • async support via caldav.aio module
  • etc.

Quick Start

from caldav import get_davclient

with get_davclient() as client:
    principal = client.principal()
    calendars = principal.get_calendars()
    for cal in calendars:
        print(f"Calendar: {cal.name}")

Async API

For async/await support, use the caldav.aio module:

import asyncio
from caldav import aio

async def main():
    async with aio.get_async_davclient() as client:
        principal = await client.principal()
        calendars = await principal.get_calendars()
        for cal in calendars:
            print(f"Calendar: {cal.name}")

asyncio.run(main())

The user documentation (up-to-date with version 3.2) is embedded under docs/source - a rendered copy is available at https://caldav.readthedocs.io/

Other documentation:

There is also a directory docs/design containing lots of documents, mostly AI-generated, containing things like design decisions and other things that neither is deemed important enough to have a document on the root of the project nor deemed to be "user documentation".

The package is published at Pypi

HTTP Libraries

The sync client uses niquests by default (with fallback to requests). The async client prefers niquests as well, falling back to the httpx family (httpx2, httpxyz, httpx) - the first one installed wins. See HTTP Library Configuration for details.

Licences

The caldav library is dual-licensed under the GNU GENERAL PUBLIC LICENSE Version 3 or the Apache License 2.0.

Metadata

Release files for caldav 3.7.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 caldav 3.7.0
File Size Uploaded Provenance Actions
caldav-3.7.0.tar.gz 804.2 kB Without provenance Details for caldav-3.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / caldav-3.7.0.tar.gz

Download URL caldav-3.7.0.tar.gz
Size 804.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e121600e858e62c3631b9460167a099685f78f4ffda98b1a96e460c7b252fb45
BLAKE2b-256 checksum
How to use checksums
0c04d083c70cbdf6a201fd4a9c6184b3470bda55f14b13979ade80a5909fa623
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / caldav-3.7.0-py3-none-any.whl

Download URL caldav-3.7.0-py3-none-any.whl
Size 292.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41d052f535e3f3e733b84cc455b2f62145aa70097eb7e345697fbe451b5e3db7
BLAKE2b-256 checksum
How to use checksums
eb55152109585ebb2779e864db486a7d750bcd9af5c23fec82b0af0f778a9b46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for caldav 3.7.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

3.7.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