Skip to main content

Tool that synchronizes Jekyll event collection with remote calendar

Project description

Calendar synchronization

This is a small tool that can be used to synchronize a Jekyll event collection with a remote calendar.

Installation

Use Python package manager

pip install twomartens.calendarsync

Afterwards you can use tm-calendarsync to access the CLI interface. If you installed the package into a virtual environment, this environment needs to be activated. Otherwise the tm-calendarsync command will not be known.

Usage

tm-calendarsync calendar_url event_collection_path

The CLI interface validates the input and guarantees that the URL is valid and the directory of the event collection exists. It however does not make logical checks. So you need to make sure that the directory is actually the correct one. The URL for the calendar must be readable without authentication and point to an ICS file.

If the input is correct the tool will go through ALL events of the calendar and create files in the event collection directory. The filename of these is as follows:

YYYY-MM-DD-title.markdown where all spaces in the title are replaced by underscores (_).

The content of these files follows this structure:

# preamble for Jekyll event (this line is not actually written)
---
layout: event
title:  <name>
date: <created>
start_date: <begin>
end_date: <end>
location: <location>
---

The full usage of this tool becomes obvious if you create a cronjob or something similar that executes this code every x amount of time.

Note: Even if you run this as a cronjob it will not yet result in any visible changes to the Jekyll-powered website. You will need to trigger the build yourself in whatever way makes sense to you.

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

twomartens.calendarsync-1.0.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

twomartens.calendarsync-1.0.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file twomartens.calendarsync-1.0.2.tar.gz.

File metadata

File hashes

Hashes for twomartens.calendarsync-1.0.2.tar.gz
Algorithm Hash digest
SHA256 57b8426ee7257be4f44110bbb7ab096edef8dc0e60abac12b88fafdcf7491934
MD5 12513070f8bde4e990c8977a20ed285d
BLAKE2b-256 3cec7d1f7d40cd7c9df2e3def6ab4fb5dd3a991ab696719e434fec9b5c709d67

See more details on using hashes here.

File details

Details for the file twomartens.calendarsync-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for twomartens.calendarsync-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 041e61a95270d23dd982f3dccba1fa1d69c73a4838f37e29ed74dfcd435de0de
MD5 66fbef32de2a5597d3c4ff1a88d12c97
BLAKE2b-256 304e3c5f18fd9b8b82eb6ef41786129580dfd29d7cb0af6c80f9a7764fd061b4

See more details on using hashes here.

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