Convert iCalendar tasks to CSV for import into Todoist.
Project description
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
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
Built Distribution
Hashes for ics2todoist-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9062108b38a9614db3bc475d328ce0851c703c1a893d3023ce548a98db8e1323 |
|
MD5 | eddc2810fbd476ec8ce4646fe07dd361 |
|
BLAKE2b-256 | 7f6a1d11cca8de737b060bfbcad86b1f7a140cc7678a4db92c927b02efd58ca2 |