Datasette plugin for outputting iCalendar files
Project description
datasette-ics
Datasette plugin that adds support for generating iCalendar .ics files with the results of a SQL query.
Installation
Install this plugin in the same environment as Datasette to enable the .ics
output extension.
$ pip install datasette-ics
Usage
To create an iCalendar file you need to define a custom SQL query that returns a required set of columns:
event_name
- the short name for the eventevent_dtstart
- when the event starts
The following columns are optional:
event_dtend
- when the event endsevent_duration
- the duration of the event (use instead ofdtend
)event_description
- a longer description of the eventevent_uid
- a globally unique identifier for this eventevent_tzid
- the timezone for the event, e.g.America/Chicago
A query that returns these columns can then be returned as an ics feed by adding the .ics
extension.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for datasette_ics-0.2a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2417bf6ecd3a2a996ebdba322efdebb7a02ec5bf9eac7ecca0b58674c59b007 |
|
MD5 | be83bf75e3496179de8270a4830f5b4e |
|
BLAKE2b-256 | f6a0f2df8049e4a6dbd89f716a60d9e46ca95a09cf617bd1ad37262e277f7059 |