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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file ics2todoist-0.1.0.tar.gz.

File metadata

  • Download URL: ics2todoist-0.1.0.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for ics2todoist-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3bbdb0ed7f61d95a6eca08c6a42d48f0a40b2177a305768ae450679c6701153a
MD5 edbc21427dd4018b31b4c658fc9a60ff
BLAKE2b-256 b9034bb27ae6b9d79fbf722c5736d864ba5247125bdd487d56b6c50c7e5258d6

See more details on using hashes here.

File details

Details for the file ics2todoist-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ics2todoist-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for ics2todoist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9062108b38a9614db3bc475d328ce0851c703c1a893d3023ce548a98db8e1323
MD5 eddc2810fbd476ec8ce4646fe07dd361
BLAKE2b-256 7f6a1d11cca8de737b060bfbcad86b1f7a140cc7678a4db92c927b02efd58ca2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page