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_tool_github

Usage

Here's a basic example using the GitHub toolkit:

from swarmauri.tools.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.6.1.dev6.tar.gz (9.7 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.6.1.dev6-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_toolkit_github-0.6.1.dev6.tar.gz.

File metadata

  • Download URL: swarmauri_toolkit_github-0.6.1.dev6.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for swarmauri_toolkit_github-0.6.1.dev6.tar.gz
Algorithm Hash digest
SHA256 cee18c6cc16711c2bcd98264fb45bf88bbe1f416ddb4569dd3104a38b7a20e74
MD5 934c504bc943aa635c0606834588727c
BLAKE2b-256 37eacb9e261f06b1eb054f754c09ea377aa10f33df7a03a039e6c015dba3af59

See more details on using hashes here.

File details

Details for the file swarmauri_toolkit_github-0.6.1.dev6-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_toolkit_github-0.6.1.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 a124f8a587655be1a3e6ad778b61e211779bfb2f23362e1097d91bc5d4969295
MD5 85beca3d0f6d127617cb8496ebf990cc
BLAKE2b-256 3f25a63f528ffe1ec843a3d645e60dfa7dcd37329bbac277a0df9c29ce3c08fa

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