Skip to main content

Github Toolkit

Project description

Swamauri Logo

PyPI - Downloads GitHub 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

This version

0.7.1

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

Uploaded Python 3

File details

Details for the file swarmauri_toolkit_github-0.7.1.tar.gz.

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.7.1.tar.gz
Algorithm Hash digest
SHA256 9eec06c8cc4ca3e389105fa7af0eb34d040f27ffc83e490cf2c9e78d9c3341f7
MD5 021d8d23713a05bcb6e6c65efa799858
BLAKE2b-256 e2223f199ceef26d77893a7d7a12dd4ad3c0aac75f4f3f93274dc90979c8a2c5

See more details on using hashes here.

File details

Details for the file swarmauri_toolkit_github-0.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 730b57fe3087e550cb7630a699613c7e6c2bb633f38f0be3757395fd9f60f704
MD5 6545a6a903b947c6db9c44a86b8bea5f
BLAKE2b-256 02e1561ff9d65c6ec945e3184118fd20f2747eea4fcdbb5c61943e10a5a59801

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