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.dev12.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.

File details

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

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.7.0.dev12.tar.gz
Algorithm Hash digest
SHA256 5fd2b9146710bc2f01916a40f368f745b2fe79fbbef3a07ffaebe98751156329
MD5 39464b985947712dd98867e319a1bd38
BLAKE2b-256 064cc968f940ea0f202e2e41502b8cef8acdfd18a0d758ce7997ba8d817b4ef4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.7.0.dev12-py3-none-any.whl
Algorithm Hash digest
SHA256 b7d0de730f97f20c922411802247afb276532bbce1f24c982a2adc0019feeaee
MD5 8dacfcd063af5b0261702e6b2641c5f4
BLAKE2b-256 b5423e9f07ade76515d2888ea6971dc9a23468b0c37971de91aee6296a724880

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