Skip to main content

Bidirectional synchronize calendar events within notion and google calendar

Project description

CI PyPI version pre-commit Code style: black

Notion-GCal-Sync

Notion-GCal-Sync is a python application to bidirectional synchronize calendar events within notion and google calendar.

Getting started

Follow these instructions.

Usage

IMPORTANT: Make sure you followed the setup and configured the config.yml with your notion token and page for Notion API and gathered and setup credentials client_secret.json for Google Calendar API.

From pip and running directly

notion-gcal-sync

With docker (Not the mounting of client_secret.json and config.yml)

docker run --net=host -it \
    -v $(pwd)/config.yml:/app/notion_gcal_sync/config.yml \
    -v $(pwd)/client_credentials.json:/app/notion_gcal_sync/client_credentials.json \
    notion-gcal-sync

On first run or when token is old you will be asked to authorize the application. Follow the link and authorize with your account. After authorization the application will continue.

$ notion-gcal-sync
...
Please visit this URL to authorize this application:
https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=***

Notes

BE AWARE OF THE FOLLOWING:

  • This sync will update your source links in gcal. Links to mail etc. will get overwritten with a link to the notion page. The original links will be put on top of the description
  • This sync will update all your invites from other calendars not specified to your default calendar. There is a button on gcal to restore back
  • Goals defined from calendar apps are skipped.
  • Recurrent original events are skipped. Recurrent occurrences of events are created one by one in notion. Changing in notion will change only an occurrence in GCal.

Notes

With around ~2500 events in gcal the sync:

  • to get all events took ~1min

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

notion-gcal-sync-1.0.3.tar.gz (26.6 kB view hashes)

Uploaded Source

Built Distribution

notion_gcal_sync-1.0.3-py3-none-any.whl (29.7 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