mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2026-02-04 07:14:59 +00:00
8bcf94b58a88892f9f501054070ca69fca11b144
Bumps the pypi-updates group with 7 updates: | Package | From | To | | --- | --- | --- | | [google-auth](https://github.com/googleapis/google-auth-library-python) | `2.45.0` | `2.48.0` | | [google-api-python-client](https://github.com/googleapis/google-api-python-client) | `2.187.0` | `2.188.0` | | [black](https://github.com/psf/black) | `25.12.0` | `26.1.0` | | [types-python-dateutil](https://github.com/typeshed-internal/stub_uploader) | `2.9.0.20251115` | `2.9.0.20260124` | | [myst-parser](https://github.com/executablebooks/MyST-Parser) | `4.0.1` | `5.0.0` | | [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme) | `3.0.2` | `3.1.0` | | [sphinx-design](https://github.com/executablebooks/sphinx-design) | `0.6.1` | `0.7.0` | Updates `google-auth` from 2.45.0 to 2.48.0 - [Release notes](https://github.com/googleapis/google-auth-library-python/releases) - [Changelog](https://github.com/googleapis/google-auth-library-python/blob/main/CHANGELOG.md) - [Commits](https://github.com/googleapis/google-auth-library-python/compare/v2.45.0...v2.48.0) Updates `google-api-python-client` from 2.187.0 to 2.188.0 - [Release notes](https://github.com/googleapis/google-api-python-client/releases) - [Commits](https://github.com/googleapis/google-api-python-client/compare/v2.187.0...v2.188.0) Updates `black` from 25.12.0 to 26.1.0 - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/25.12.0...26.1.0) Updates `types-python-dateutil` from 2.9.0.20251115 to 2.9.0.20260124 - [Commits](https://github.com/typeshed-internal/stub_uploader/commits) Updates `myst-parser` from 4.0.1 to 5.0.0 - [Release notes](https://github.com/executablebooks/MyST-Parser/releases) - [Changelog](https://github.com/executablebooks/MyST-Parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/executablebooks/MyST-Parser/compare/v4.0.1...v5.0.0) Updates `sphinx-rtd-theme` from 3.0.2 to 3.1.0 - [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst) - [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/3.0.2...3.1.0) Updates `sphinx-design` from 0.6.1 to 0.7.0 - [Release notes](https://github.com/executablebooks/sphinx-design/releases) - [Changelog](https://github.com/executablebooks/sphinx-design/blob/main/CHANGELOG.md) - [Commits](https://github.com/executablebooks/sphinx-design/compare/v0.6.1...v0.7.0) --- updated-dependencies: - dependency-name: google-auth dependency-version: 2.48.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pypi-updates - dependency-name: google-api-python-client dependency-version: 2.188.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pypi-updates - dependency-name: black dependency-version: 26.1.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: pypi-updates - dependency-name: types-python-dateutil dependency-version: 2.9.0.20260124 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: pypi-updates - dependency-name: myst-parser dependency-version: 5.0.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: pypi-updates - dependency-name: sphinx-rtd-theme dependency-version: 3.1.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: pypi-updates - dependency-name: sphinx-design dependency-version: 0.7.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: pypi-updates ... Signed-off-by: dependabot[bot] <support@github.com>
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 using poetry:
# install poetry
pip install poetry
# install project and deps to virtualenv
poetry install
# run
poetry run sync-ics2gcal
Configuration
Create application in Google API Console
- Create a new project: 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
.icsfile,my-calendar.icsfor example.
Configuration parameters
start_from- start date:- full format datetime,
2018-04-03T13:23:25.000001Zfor 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.comfor examplesource- source.icsfilename,my-calendar.icsfor example
Usage
Manage calendars
manage-ics2gcal GROUP | COMMAND
GROUPS:
- property - get/set properties (see CalendarList resource), subcommands:
- get - get calendar property
- set - set calendar property
COMMANDS:
- 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
Documentation is available at sync-ics2gcal.readthedocs.io.
Languages
Python
100%
