Skip to main content

Github Toolkit

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_toolkit_github


Swarmauri Toolkit Github

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.8.0.dev3.tar.gz (10.0 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.8.0.dev3-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_toolkit_github-0.8.0.dev3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.8.0.dev3.tar.gz
Algorithm Hash digest
SHA256 c0d220baf83d8e48ceac7e3bbdfab4847dc0c003ab6477c4ddf2ad2d74443720
MD5 40159a4dc7a3a020fb1c06a9d4542aef
BLAKE2b-256 431ae76d691c5f2d0425e8b1a5aa983773dd4be1211332d281f12f6c4a28f1ad

See more details on using hashes here.

File details

Details for the file swarmauri_toolkit_github-0.8.0.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.8.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 f3053ed4b7a09243c8209de5c59204b75f5171733d54cdc777861975bc54d6c1
MD5 d388925580d990f009869862040f4e88
BLAKE2b-256 4f787a1a083b21ad53bfcc7abdd8ec621c537c86c0b7aa832e4004bbfb8ff68c

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