Skip to main content

Convert iCalendar tasks to CSV for import into Todoist.

Project description

Build Status Documentation Status Python Versions Version on PyPI

A tool (and library) to convert tasks in iCalendar format (RFC 5545) to CSV format (RFC 4180) for import into Todoist.

Installation

This package can be installed using pip, by running:

pip install ics2todoist

Command-Line Examples

To convert iCalendar files with extension .ics to a CSV file named todo.csv:

ics2todoist -o todo.csv *.ics

To convert iCalendar files with extension .ics to a CSV file named todo.csv using redirection:

cat *.ics | ics2todoist >todo.csv

API Examples

To convert iCalendar in todo.ics to CSV on stdout:

from ics2todoist import ics_to_todoist
ics_to_todoist(['todo.ics'], sys.stdout)

To convert iCalendar files with extension .ics to a CSV file named todo.csv:

from glob import glob
from ics2todoist import ics_to_todoist
with open('todo.csv', 'w', encoding='utf-8') as csvfile:
    ics_to_todoist(glob('*.ics'), csvfile)

To convert a string of iCalendar data into a TodoistCsvRow:

from ics2todoist import Ics2TodoistConverter
converter = Ics2TodoistConverter()
row = converter.ical_to_todoist(get_ical_string())

Documentation

The project documentation is hosted on Read the Docs. See the CLI documentation for command-line options and usage, and the API documentation for the Python API.

Contributing

Contributions are welcome and very much appreciated! See the contributing guidelines for recommendations.

License

This project is available under the terms of the MIT License. See the summary at TLDRLegal

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

ics2todoist-0.1.0.tar.gz (23.9 kB view hashes)

Uploaded Source

Built Distribution

ics2todoist-0.1.0-py3-none-any.whl (11.1 kB view hashes)

Uploaded Python 3

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