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

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.7.2.dev3.tar.gz
Algorithm Hash digest
SHA256 c527eb415f93bc5727d888fa6436f113ec44611da10d776d6f0b65f4aa422a16
MD5 185ba24151f6177e6b91a2a19c242146
BLAKE2b-256 aec8a83cae97f5e2ec0b7a99d91652241c89c60307d2cc780be68e465689f91e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.7.2.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 8b06f465bf643c7d1a80f4c8f537a05682f3b51455a99bf74d3c12885007766a
MD5 4c871b0809e86f3f7fae05360d5316d9
BLAKE2b-256 512595c0c5ebedd227acabbbbbc2f1c153d33c05fb0f14e6da7fc794e8cc1e23

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