Skip to main content

A simple Python package for interacting with the GitHub API.

Project description

github-utility

A simple Python package for interacting with the GitHub API.

Installation

pip install github-utility

Usage

Script Based

from github_utils import GitHubAPI

# Set your GitHub access token
access_token = "YOUR_ACCESS_TOKEN"

github_api = GitHubAPI(access_token)

# Get user information
user_data = github_api.get_user("shivampatil5606")
print(user_data)

# Create a new issue
issue_data = github_api.create_issue(
    owner="owner",
    repo="repo",
    title="Test Issue",
    body="This is a test issue."
)
print(issue_data)

CLI Based

export GITHUB_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"

# To get the user details
github-utility get-user --username <username>

# To create an issue on GitHub
github-utility create-issue -o <repo-owner> -r <repo-name> -t <issue-title> -b <issue-body>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github_utility-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

github_utility-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file github_utility-1.0.0.tar.gz.

File metadata

  • Download URL: github_utility-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.10 Linux/5.15.0-119-generic

File hashes

Hashes for github_utility-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e5f8c62ea5e83923fe2f94a83f0a76e44f60cf0ca2a415085ef41e3af45bd494
MD5 b5830768eda139b28b3ba8aa750127f2
BLAKE2b-256 592147193d051e4cf609f0dc9e8997b7578dfb5bde629ae8f9d4c62ab0d5100a

See more details on using hashes here.

File details

Details for the file github_utility-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: github_utility-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.8.10 Linux/5.15.0-119-generic

File hashes

Hashes for github_utility-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eefa47747c07446a0b07ed4b895f18d34ac7eb67db29e33ddbc8715368cdb464
MD5 67fccd23743da75737b6b4a650f41c9e
BLAKE2b-256 d77bffad7463fa748b970b2bdf934baac10ba9f6be81173c83de6bcbd63d9d42

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