Find out what happens in ICS calendar files - query and filter RFC 5545 compatible `.ics` files for events, journals, TODOs and more.
Project description
ics-query
Find out what happens in ICS calendar files - query and filter RFC 5545 compatible .ics
files for events, journals, TODOs and more.
Installation
You can install this package from the PyPI.
pip install ics-query
ics-query at
- occurrences at certain times
You can get all events that happen at a certain day.
ics-query --components VEVENT at 2029-12-24 calendar.ics
You can get all events that happen today.
ics-query --components VEVENT at `date +%Y-%m-%d` calendar.ics
You can get all TODOs that happen at in certain month.
ics-query --components VTODO at 2029-12-24 calendar.ics
ics-query at
- time ranges
ics-query --output=count
- count occurrences
ics-query --output=ics
- use ics as output (default)
ics-query --select-index
- reduce output size
Examples: 0,2,4
0-10
ics-query all
- the whole calendar
ics-query between
- time ranges
ics-query between dt dt
ics-query between dt duration
ics-query --select-component
- filter for components
ics-query --select-uid
- filter by uid
How to edit an event
To edit a component like an event, you can append it to the calendar and increase the sequence number.
Example:
- get the first event
--select-index=0
TODO: recurring-ical-events: set recurrence-id, sequence number - change the summary
- increase sequence number
- add the event to the end of the calendar file
- show that the occurrence has changed
Piping calendars
cat calendar.ics | ics-query --output=count --filter-component=VEVENT all > calendar-event-count.int
Notifications
Examples:
- There are x todos in the next hour
- There are x events today
- Please write a journal entry!
Changelog
-
v0.0.1a
- first version
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 Distribution
ics_query-0.1.dev8.tar.gz
(34.9 kB
view hashes)
Built Distribution
Close
Hashes for ics_query-0.1.dev8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28340b5e78b81749c2f37b85f460fc0aead3b063d4545346aa441331dabf8e7d |
|
MD5 | d63d6798151c8f99784fc5db921e87fd |
|
BLAKE2b-256 | 683638bc56fdc79f66b8671d793ce3ab77e67d174f3dbfb80806730536e23faf |