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.0a2.tar.gz (10.2 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.0a2-py3-none-any.whl (187.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for caldav-3.0.0a2.tar.gz
Algorithm Hash digest
SHA256 848368a79e96e69ad0124cbabc8346fba271d379500672ffc4c3e12690ab3b41
MD5 967d4d17d69a33f589e5947bf9e93ac6
BLAKE2b-256 928b977c34cfe1a9c64fb26614b12614fa37ea3588240af7187b903c52606e47

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for caldav-3.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 643c48d8638abccb001fc1a4c37ad78ee07e2df1e830679c519d822fbad4e689
MD5 381c76a62622cf88801a50cffeaf1f1d
BLAKE2b-256 5c8cc6209ecae4f097ab04c6fa05ec7d96add49aaf79f26f833ed79dd9ca630d

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