Sync ics file with Google calendar
Project description
sync_ics2gcal
Python scripts for sync .ics file with Google calendar
Installation
To install from PyPI with pip, run:
pip install sync-ics2gcal
Or download source code and install:
python setup.py install
Configuration
Create application in Google API Console
- Create a new project: https://console.developers.google.com/project
- Choose the new project from the top right project dropdown (only if another project is selected)
- In the project Dashboard, choose "Library"
- Find and Enable "Google Calendar API"
- In the project Dashboard, choose "Credentials"
- In the "Service Accounts" group, click to "Manage service accounts"
- Click "Create service account"
- Choose service account name and ID
- Go back to "Service Accounts" group in "Credentials"
- Edit service account and click "Create key", choose JSON and download key file.
Create working directory
For example: /home/user/myfolder
.
- Save service account key in file
service-account.json
. - Download sample config and save to file
config.yml
. For example:
wget https://raw.githubusercontent.com/b4tman/sync_ics2gcal/develop/sample-config.yml -O config.yml
- (Optional) Place source
.ics
file,my-calendar.ics
for example.
Configuration parameters
start_from
- start date:- full format datetime,
2018-04-03T13:23:25.000001Z
for example - or just
now
- full format datetime,
- (Optional)
service_account
- service account filename, remove it from config to use default credentials - (Optional)
logging
- config to setup logging google_id
- target google calendar id,my-calendar@group.calendar.google.com
for examplesource
- source.ics
filename,my-calendar.ics
for example
Usage
Manage calendars
manage-ics2gcal <subcommand> [-h] [options]
subcomands:
- list - list calendars
- create - create calendar
- add_owner - add owner to calendar
- remove - remove calendar
- rename - rename calendar
Use -h for more info.
Sync calendar
just type:
sync-ics2gcal
How it works
License
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
sync-ics2gcal-0.1.1.tar.gz
(115.9 kB
view hashes)
Built Distribution
Close
Hashes for sync_ics2gcal-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c65a63056b5c92f48366dbf1319a43c3fafd7165a33baecfefaad5aa27f5e5 |
|
MD5 | b5f9f22ae1fe9bbf2bae49141b224ca0 |
|
BLAKE2b-256 | e1dcb1a812aa807d83ee1dfbfff680b2c54fe5c4ef5b74e84e8c41a2a660d21e |