Skip to main content

org2ical

pypi python Downloads license

tests build codecov

Generate an iCalendar (.ics) file based on a OrgMode (.org) file.

This package is especially useful if your OrgMode file is too large to be exported with OrgMode iCalendar Export.

Installation:

pip install -U org2ical

Usage:

import org2ical
# Ref: https://orgmode.org/manual/Timestamps.html
org_str = """
* Meet Peter at the movies
  <2006-11-01 Wed 19:15>
* Discussion on climate change
  <2006-11-02 Thu 20:00-22:00>
"""
ical_str, warnings = org2ical.loads(org_str)
assert warnings == []
print(ical_str)

Results:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//j3soon//org2ical//EN
BEGIN:VEVENT
DTSTAMP:20221114T153849Z
UID:2f8059beaf05751acc703c2a12eee7e8
DTSTART:20061101T191500Z
DTEND:20061101T191500Z
SUMMARY:Meet Peter at the movies
DESCRIPTION:  <2006-11-01 Wed 19:15>\n\nOrg Path: Meet Peter at the movies
CATEGORIES:TIMESTAMP
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20221114T153849Z
UID:72b76db7dacae0489b50bb9c9b3b3c34
DTSTART:20061102T200000Z
DTEND:20061102T220000Z
SUMMARY:Discussion on climate change
DESCRIPTION:  <2006-11-02 Thu 20:00-22:00>\n\nOrg Path: Discussion on climate change
CATEGORIES:TIMESTAMP
END:VEVENT
END:VCALENDAR

Please note that the DTSTAMP here depends on your current time.

Import to Thunderbird's Lightning Calendar

  1. Export a Org (.org) file to an iCal (.ics) file using org2ical.
  2. In Thunderbird, select Events and Tasks > Import... and follow the steps to import the iCal file.
  3. (Optional) Set category colors:
    DEADLINE : rgb(255, 128, 128)
    SCHEDULED: rgb(128, 192, 128)
    TIMESTAMP: rgb(128, 128, 255)
    CLOCK    : rgb(255, 192, 128)
    
  4. (Optional) Fill events with category color by following this Stack Overflow answer.

Metadata

Release files for org2ical 0.0.4

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

Source distribution (sdist)

Source distribution for org2ical 0.0.4
File Size Uploaded Provenance Actions
org2ical-0.0.4.tar.gz 6.0 kB Without provenance Details for org2ical-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for org2ical 0.0.4
File Interpreter ABI Platform Actions
org2ical-0.0.4-py3-none-any.whl Python 3 none any Details for org2ical-0.0.4-py3-none-any.whl

Total release size: 12.0 kB

Release files / org2ical-0.0.4.tar.gz

Download URL org2ical-0.0.4.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e1313face4e48e0b8ecd18054a098010c3c1ebdd9feb2be50b141ebfa9ec0582
BLAKE2b-256 checksum
How to use checksums
b452ffbc6c93fcfe428c93865fb2df7ffd315656305631a9581615c6b144054d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / org2ical-0.0.4-py3-none-any.whl

Download URL org2ical-0.0.4-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cdcba17b50edfded94c4af472929e91e3f5ec6d97106527919b189670f9b9b00
BLAKE2b-256 checksum
How to use checksums
3a61f9c1c1af932e076bae522e35172279672cfd7912d4e2fcfc4ddc181a9fd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for org2ical 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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