Skip to main content

Google Calendar Python connector

Install dex-connector-google-calendar==0.2.1 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 watches primary), 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 closes connection, usually with new_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's TriggerRunner with an in-memory cursor, as Go's generated NewEventChangedTrigger is. A memory cursor records a new baseline on every start, so use it only for tests and demonstrations.
  • define_event_changed_trigger_binding declares the binding in a Flow's get_connector_trigger_bindings; the calendarPicker unit saves calendarId and calendarName.

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dex-connector-google-calendar 0.2.1
File Size Uploaded Provenance Actions
dex_connector_google_calendar-0.2.1.tar.gz 122.3 kB Without provenance Details for dex_connector_google_calendar-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dex-connector-google-calendar 0.2.1
File Interpreter ABI Platform Actions
dex_connector_google_calendar-0.2.1-py3-none-any.whl Python 3 none any Details for dex_connector_google_calendar-0.2.1-py3-none-any.whl

Total release size: 170.0 kB

Release files / dex_connector_google_calendar-0.2.1.tar.gz

Download URL dex_connector_google_calendar-0.2.1.tar.gz
Size 122.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f42c981ceed23fa672173843300904dac5dc1229301eeb7d85e8523fb6b685ac
BLAKE2b-256 checksum
How to use checksums
481d71d6245992e8447fb041fca7752e476cd44b7b62d064e9678583b56768eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1-py3-none-any.whl

Download URL dex_connector_google_calendar-0.2.1-py3-none-any.whl
Size 47.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8931c2ee9223f24d2bd8009e640cdf0ad797240102a14b85ca67bb0ef9c45aa9
BLAKE2b-256 checksum
How to use checksums
a621cf510d8c7affa0beedecb1275e958e19411fc87da09c385e0987d06589b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page