Skip to main content

icalendar_light

https://github.com/idlesign/icalendar_light

release lic ci coverage

Description

Light and easy iCalendar event reader

No fancy stuff, just iCalendar (.ics) events reading.

  • Requires Python 3.6+;

  • Uses namedtuple for event representation;

  • Features iterative event reading to be fast and minimize memory usage.

API

from icalendar_light.toolbox import Calendar

for event in Calendar.iter_events_from_file('my_calendar.ics'):
    print(Calendar.event_stringify(event))

# Or get events upcoming in next 5 days from iCalendar represented as lines:
lines = []  # Let's imagine this one is not empty %)
events = Calendar.iter_events_upcoming(lines, days_forward=5)

CLI

Requires click package (can be installed with: pip install icalendar_light[cli]).

; Show upcoming event for next 90 days
$ icalendar_light upcoming my_calendar.ics --days 90

Metadata

Release files for icalendar_light 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for icalendar_light 1.0.0
File Size Uploaded
icalendar_light-1.0.0.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for icalendar_light 1.0.0
File Interpreter ABI Platform
icalendar_light-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 18.3 kB

Release files / icalendar_light-1.0.0.tar.gz

Download URL icalendar_light-1.0.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2a40283b5735b70480023a64e48b060a7d990c5facb7c2b85c256717d4dabf83
BLAKE2b-256 checksum
How to use checksums
e2bf54df35c6b157aeb13b2f0675495ec900363d2927ed03f46f144fb38e54a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Release files / icalendar_light-1.0.0-py2.py3-none-any.whl

Download URL icalendar_light-1.0.0-py2.py3-none-any.whl
Size 6.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3d7470d8609856b46f6b50bbf9162f0a29669473d837bbd100b5b7f9fb8a4ccc
BLAKE2b-256 checksum
How to use checksums
6bb6286e5eb1d421e07aa8b7bb6276cd9d0e32a5abd522ec361ac529439d9783
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page