Skip to content

A python module to synchronize CalDav calendars

License

Notifications You must be signed in to change notification settings

OneBlue/calsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calsync

A simple python3 module to synchronize events between calendars

Installation

Install via:

pip3 install git+https://github.com/OneBlue/calsync

Usage

calsync can be used either as a command line tool, or via a python invocation.

Command line usage

calsync input-calendar-url output-calendar-url <--input-username user> <--input-password password> <--output-username> <--output-password> <--dry-run>

Python usage

import calsync
from requests.auth import HTTPBasicAuth

new_events, updated_events = calsync.sync(
  input_calendar=<input_calendar_url>,
  output_calendar=<output_calendar_url>,
  input_auth=HTTPBasicAuth(<username>, <password>), # Optional
  output_auth=HTTPBasicAuth(<username>, <password>)) # Optional

Usage to import facebook events into a CalDAV collection

  • Navigate to this page
  • Right click -> Copy URL on the 'Add to calendar' button, at the top right corner of the page
  • Use this url as the input URL with calsync (not authentication needed)

Sample command line: calsync <url-copied-from-facebook> <caldav-calendar-url> --output-username <caldav-username> --output-password <caldav-password>

About

A python module to synchronize CalDav calendars

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages