Skip to main content

CortexFlow plugin — list recent GitHub repository events (pushes, PRs, issues).

Project description

cortexflow-github

Example CortexFlow plugin: a github_events tool that lists recent events (pushes, PRs, issues) for a GitHub repository via the public REST API.

Install

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

Usage

Set GITHUB_TOKEN in your environment for authenticated requests (raises the rate limit from 60/hr to 5000/hr) — optional, the tool works without it.

from cortexflow_github import GitHubEventsTool

tool = GitHubEventsTool()
result = await tool.execute(owner="TheAmitChandra", repo="CortexFlow", limit=5)
print(result.output)

Once installed alongside the CortexFlow gateway, cortex plugin add cortexflow-github (or simply having it installed in the same environment) makes PluginRegistry.discover() find 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_github-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

cortexflow_github-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cortexflow_github-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cortexflow_github-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd41bda70d0e4627a43ceddd910133161bcf21861001a4bfe57c7813b6e8068f
MD5 fbecf16edbefb5ddc48df521f8e34bec
BLAKE2b-256 1541643fb9768b8c099ab93d6bd3b5de7ffeb60c2f017ab08318523bd4785fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cortexflow_github-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b9367a7a726aa19a1104e1fd497e31562f0e3e38efd1216542fd2ff2419b5b6
MD5 187fbdf16436daac506c12e8185d490a
BLAKE2b-256 604999d0021d7b7d7112da6202056a1f96ad7bbf31d8dc1e95d9ed362b9d9852

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