Skip to main content

CortexFlow plugin — list upcoming Google Calendar events.

Project description

cortexflow-google-calendar

Example CortexFlow plugin: a calendar_list_events tool that lists upcoming events from a Google Calendar via Calendar API v3.

Install

pip install -e ./cortexflow-sdk        # not yet on PyPI
pip install -e examples/plugins/cortexflow-google-calendar

Setup

This tool expects an OAuth2 access token with the https://www.googleapis.com/auth/calendar.readonly scope, set as GOOGLE_CALENDAR_ACCESS_TOKEN. Obtaining and refreshing that token (the OAuth consent flow against Google's identity service) is outside this plugin's scope — wire it up via your own token-refresh job or a library like google-auth-oauthlib.

Usage

from cortexflow_google_calendar import GoogleCalendarEventsTool

tool = GoogleCalendarEventsTool(access_token="ya29....")
result = await tool.execute(calendar_id="primary", limit=5)
print(result.output)

Once installed alongside the CortexFlow gateway, PluginRegistry.discover() finds it via the cortexflow.plugins entry point declared in pyproject.toml.

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

cortexflow_google_calendar-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cortexflow_google_calendar-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file cortexflow_google_calendar-0.1.0.tar.gz.

File metadata

File hashes

Hashes for cortexflow_google_calendar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d00f341d05b6264fb97bf23dd6954fc2fe2355e5065afe1b5a13e526b1352da
MD5 df2763008a496f2086bf957f0e83f477
BLAKE2b-256 f7212f20893d8132eae1d396242f05fb54030a59c2db883632881e60f010c52d

See more details on using hashes here.

File details

Details for the file cortexflow_google_calendar-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cortexflow_google_calendar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 452c803c677d2eeaea4fd98efc4241c0e28fe3abefb6484e5d52356f46dbedba
MD5 1ce1f437320af745fb629620095c26fb
BLAKE2b-256 2818058658364ba41c0b50fc1c31fdf7e48ec49de893eb6037f20575e9a3b7b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page