Google Calendar Python connector
Install dex-connector-google-calendar==0.2.0 alongside a compatible Dex Python SDK; it requires dex-connectors-sdk>=0.12.0 for the poll Trigger kit. The package exposes Client, generated Config and Credentials, a generated project connection with Google OAuth and Workspace delegated refresh, operation-specific Step factories for listEvents, getEvent, createEvent, updateEvent, and queryFreeBusy, and the eventChanged Trigger.
See examples/calendar_events for a runnable Flow with the static connection name google-calendar-events-reader. The example lists a bounded event window and persists the public result. It uses the generated project connection, so the Worker reads credentials from Dex project storage and never takes a token from Flow input.
eventChanged Trigger
eventChanged polls one calendar with Google Calendar incremental sync and delivers one EventChangedEvent (calendar_id, change_kind, and the event) per created, updated, or cancelled event, at parity with the Go connector; the connector README describes the baseline, change kinds, recurring events, expired sync tokens, and rate limits. The binding's sync cursor document and Trigger event IDs are byte for byte the Go connector's, and a change a Go replica recorded in the inbox replays in Python.
new_project_event_trigger_runner(project, connection, routes)is the durable path: it loads each binding's saved calendar (an unsaved binding watchesprimary), records every change in the binding's project Trigger inbox, and commits the sync token in the binding's project poll cursor only after that. The caller opens and closesconnection, usually withnew_project_connection, and shares it with the Flow.new_event_trigger_runner(connection, routes)takes targets and cursor stores directly; a route without a cursor keeps it in memory.new_event_changed_trigger(...)is one binding'sTriggerRunnerwith an in-memory cursor, as Go's generatedNewEventChangedTriggeris. A memory cursor records a new baseline on every start, so use it only for tests and demonstrations.define_event_changed_trigger_bindingdeclares the binding in a Flow'sget_connector_trigger_bindings; thecalendarPickerunit savescalendarIdandcalendarName.
The connection's pollInterval (at least 5 seconds) sets the delay between polls. A 429 or a Google usage-limit 403 pauses every binding of the connection, and a 410 Gone records a new baseline and logs a WARN record to the dex_connectors.sdk.trigger logger. Records carry binding identity, never event payloads or credentials.
examples/event_changed is the runnable Trigger example: the calendar-event-changes binding of the static google-calendar-watcher connection starts one GoogleCalendarEventChangePython Flow per change, which reads a created or updated event back with new_get_event_step.
Tests
Run provider replay, the generated OAuth agreement cases, and the Trigger unit tests with uv run pytest tests. The example integration tests require a running dexcli dev and DEX_FLOW_SERVICE_ADDRESS: uv run pytest examples/calendar_events/integration_test.py examples/event_changed/integration_test.py.
Go-recorded provider fixtures and a real Dex stack with a local Google stand-in verify request, Trigger delivery, and Flow behavior. Live Google consent, delegated token minting against Google, Calendar API calls, and incremental sync against a live calendar remain unverified.
Metadata
Release files for dex-connector-google-calendar 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dex_connector_google_calendar-0.2.0.tar.gz | 119.9 kB | Without provenance | Details for dex_connector_google_calendar-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dex_connector_google_calendar-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for dex_connector_google_calendar-0.2.0-py3-none-any.whl |
Total release size: 166.6 kB
Release files / dex_connector_google_calendar-0.2.0.tar.gz
| Download URL | dex_connector_google_calendar-0.2.0.tar.gz |
|---|---|
| Size | 119.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b8377f509e5847c6748ec5e76c9f1e1caf8ffb5b337efa2fe750a15b65a322f
|
|
BLAKE2b-256 checksum How to use checksums |
5e8b91c6279ebc8713dfd1b0d0c90813c378dcababab6557a30614ba4fa86f63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / dex_connector_google_calendar-0.2.0-py3-none-any.whl
| Download URL | dex_connector_google_calendar-0.2.0-py3-none-any.whl |
|---|---|
| Size | 46.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3826e0603b4b223e195a0d065109bcaaab149c3666cfe9e796c98e56a15b5c7
|
|
BLAKE2b-256 checksum How to use checksums |
5f8811105d66457641ef55361573ebb4713b159dc150d3f80fd474e6d5848dd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for dex-connector-google-calendar 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.