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.2.tar.gz (5.4 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.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cortexflow_google_calendar-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5f09e7a0c2c34ead3ed4d24edfb7f3c249fbebde203f266d5ce2642451cf7916
MD5 098297762520908e7f1ae9de8f6263c8
BLAKE2b-256 3612250a35ad31d0b06ee2191e16dfc0a02a94f5c7f142c4ed9992a637eaea5c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cortexflow_google_calendar-0.1.2.tar.gz:

Publisher: publish-pypi.yml on TheAmitChandra/CortexFlow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for cortexflow_google_calendar-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 219a81630680d69ef506209a523c9f66cefb6387d86b15b14a844c7ea44eb837
MD5 1921a73504f5504a80ac568be5885a29
BLAKE2b-256 ff96aa2157b726da2e9cd95a395d17c5af41fa017e85c7c4fdf1133bd8010139

See more details on using hashes here.

Provenance

The following attestation bundles were made for cortexflow_google_calendar-0.1.2-py3-none-any.whl:

Publisher: publish-pypi.yml on TheAmitChandra/CortexFlow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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