Skip to main content

CalDAV (RFC4791) client library

Project description

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 documentation was updated as of version 2.0, and is available at https://caldav.readthedocs.io/

The package is published at Pypi

HTTP Libraries

The sync client uses niquests by default (with fallback to requests). The async client uses httpx if installed (pip install caldav[async]), otherwise falls back to niquests. See HTTP Library Configuration for details.

Licences:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

caldav-3.0.0a1.tar.gz (10.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

caldav-3.0.0a1-py3-none-any.whl (178.4 kB view details)

Uploaded Python 3

File details

Details for the file caldav-3.0.0a1.tar.gz.

File metadata

  • Download URL: caldav-3.0.0a1.tar.gz
  • Upload date:
  • Size: 10.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for caldav-3.0.0a1.tar.gz
Algorithm Hash digest
SHA256 ab81c656f11556aef7989383bbbbbaf78baea77aec8c861c45e10072c1db7625
MD5 7e9f75315b8132a2e47c7aa3dc6d190c
BLAKE2b-256 3ee3c2ec9d6e4562f94334dc0b85af2bdb2c354fd2fb5d8e12c6d4c5f6a41e53

See more details on using hashes here.

File details

Details for the file caldav-3.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: caldav-3.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 178.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for caldav-3.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 e446519159873a1b9187da855326118df72be8fca78e8985ee8cd8a4d5f4e8f4
MD5 475ad10e72812d7beefbe8ce2f046f61
BLAKE2b-256 fcbe48d1eeb4d652b7a269745206c00c9c7652f45147818cf52148be9e18b5a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page