Skip to main content

Github Toolkit

Project description

Swarmauri Logo

PyPI - Downloads PyPI - Python Version PyPI - License PyPI - Version


GitHub Tools Package

A collection of GitHub tools for repository, issue, pull request, branch, and commit management using PyGithub.

Installation

pip install swarmauri_toolkit_github

Usage

Here's a basic example using the GitHub toolkit:

from swarmauri.toolkits.GithubToolkit import GithubToolkit

# Initialize the toolkit with your GitHub token
toolkit = GithubToolkit(token="your_github_token")

# Create a repository
result = toolkit.github_repo_tool(
    action="create_repo",
    repo_name="my-new-repo"
)

# Create an issue
result = toolkit.github_issue_tool(
    action="create_issue",
    repo_name="owner/repository",
    title="Bug Report",
    body="Description of the issue"
)

# Create a pull request
result = toolkit.github_pr_tool(
    action="create_pull",
    repo_name="owner/repository",
    title="New Feature",
    head="feature-branch",
    base="main"
)

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

swarmauri_toolkit_github-0.7.0.dev7.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

swarmauri_toolkit_github-0.7.0.dev7-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_toolkit_github-0.7.0.dev7.tar.gz.

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.7.0.dev7.tar.gz
Algorithm Hash digest
SHA256 02da4715bd2413c314dfdec9c93150fc3862bdb7b1f995f168a5c2c8a2a4758f
MD5 e74713de6bf5c8d5766b29489c756b72
BLAKE2b-256 7a1d4607c3704534d85c4dfbe94ce83fde329115550bf24b4a2e0b331b9399dd

See more details on using hashes here.

File details

Details for the file swarmauri_toolkit_github-0.7.0.dev7-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.7.0.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 371c0fab6c3a7571f0ce232ba768413b26f73fa8753915cbe5528dfd034ee0fc
MD5 b2317b5e92cd2951ac2cf3fcb140b86d
BLAKE2b-256 1ae8abe15c91b01bc721478dae5d2897a3833a0ed03409fcf7f3858ef0e157e3

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