Skip to main content

Dalec plugin to retrieve caldav data

Project description

📅 dalec-caldav

Stable Version Code style: black Imports: isort semver

Django Aggregate a Lot of External Content -- CalDav

Aggregate last event from a given CalDav instance.

Plugin of 🤖 dalec.

Installation

pip install dalec_caldav

In django settings INSTALLED_APPS, add:

INSTALLED_APPS = [
    ...
    "dalec",
    "dalec_prime",
    "dalec_caldav",
    ...
    ]

Usage

General usage:

{% load dalec %}

{% dalec "caldav" content_type [channel=None] [channel_object=None] [template=None] %}

Events

Retrieves latest event of all calendars accessible for the current user:

{% dalec "caldav" "event" %}

Retrieves latest event of a calendar defined by an url:

{% dalec "caldav" "event" channel="url" channel_object="https://nextcloud.org/remote.php/dav/public-calendars/<calendarID>"%}

Settings

Django settings must define:

  • DALEC_CALDAV_BASE_URL : CalDav instance url (ex: https://caldav.org/)
  • DALEC_CALDAV_API_USERNAME : CalDav username (ex: admin)
  • DALEC_CALDAV_API_PASSWORD : CalDav user password (ex: azeazeaezdfqsmlkrjzr)

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

dalec-caldav-0.1.1.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

dalec_caldav-0.1.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

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