Skip to main content

xyberos-github

GitHub REST plugin — RFC-0019, M7 (community wave). User / repository / issue tools for Xyberos agents, via the GitHub REST API v3. Stdlib-only (urllib) with an injectable transport for tests.

Install

pip install -e ./github

Usage

from xyberos import create_app
from xyberos_github import GithubPlugin

app = create_app()
app.load_plugin(GithubPlugin())          # token from GITHUB_TOKEN (optional for public reads)

app.tools.execute("github_get_user", None, username="octocat")
app.tools.execute("github_list_repos", None, username="octocat", per_page=30)
app.tools.execute("github_create_issue", None, owner="o", repo="r", title="Bug", body="...")

Tools

Tool Notes
github_get_user(username) public profile
github_list_repos(username, per_page=30) public repositories
github_create_issue(owner, repo, title, body="") requires GITHUB_TOKEN

Tests

pip install pytest
pytest tests/

Canned responses via an injectable transport — no network.

Ship location

Plugin (xyberos.plugins entry point) — community wave (M7).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xyberos_github-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

xyberos_github-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xyberos_github-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xyberos_github-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a88169435ee60747deb995c64315adec5ca161680589149c93a880fd4d49aeae
MD5 00751df5bdda3954d9b6169726757608
BLAKE2b-256 515331da54afa243cbc4cc707032c3de1976692f29d38285f699b12df21e2932

See more details on using hashes here.

Provenance

The following attestation bundles were made for xyberos_github-0.1.0.tar.gz:

Publisher: pypi-plugins.yml on xyberos/xyberos-plugins

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

File details

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

File metadata

  • Download URL: xyberos_github-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xyberos_github-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 027f531a5fc3c03fb567ed8c03c99de7572a4e276ef0619390a66f1521df8ada
MD5 bf0f36f1d394984359ea363b717cc50e
BLAKE2b-256 894e7eac516a685b7e114fac69bc1b96d21e1f426aa2dca2ea990381fac68757

See more details on using hashes here.

Provenance

The following attestation bundles were made for xyberos_github-0.1.0-py3-none-any.whl:

Publisher: pypi-plugins.yml on xyberos/xyberos-plugins

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 Sentry Error logging StatusPage Status page