Skip to main content

No project description provided

Project description

GH Issues

GH Issues is a wrapper for the GitHub API Issues Endpoint that makes it easy to work with a Github Issue's body as a Python object.

Installation

pip install gh-issues

Usage

from gh_issues import Repo, Issue

repo = Repo(
    owner="python-community-news", repo="gh-issues"
    )
issue = Issue(repo=repo, issue_number=1)

If the issue text is

# Issue Header
This is some text

the issue would be represented as

issue.issue_header
>>> "This is some text"

Nested Issues

Nested issues are supported. If the issue text is

# Issue Header
This is some text referencing issue #2

You can access the issue referenced by the issue

for issue in Issue.get_content_issues('issue_header'):
    print(issue.issue_header)

>>> <Issue - #2: This is the issue #2 Title by @user>

Contributing

Review the Contributing Guidelines for information on how to contribute to this project.

License

This project is licensed under the terms of the MIT License.

Code of Conduct

This project is governed by the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to kjaymiller@gmail.com

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

gh_issues-2024.10.2a4.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

gh_issues-2024.10.2a4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file gh_issues-2024.10.2a4.tar.gz.

File metadata

  • Download URL: gh_issues-2024.10.2a4.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for gh_issues-2024.10.2a4.tar.gz
Algorithm Hash digest
SHA256 15b21f94bb2a57598929546bf83d6b39c606bc0b14894547b4abe40335f46fc5
MD5 9a4c37307af3ce2dbb96c623c63076e1
BLAKE2b-256 9b3e9430040c672a6c2b1352911cd96b3cb73463d0f96dc0b4909c98096ed67e

See more details on using hashes here.

File details

Details for the file gh_issues-2024.10.2a4-py3-none-any.whl.

File metadata

File hashes

Hashes for gh_issues-2024.10.2a4-py3-none-any.whl
Algorithm Hash digest
SHA256 9a534e60049a52d4a120f92328de1f552f49238af03bbb29151ea718de34f0c4
MD5 365e25ae8b6a310e1ea5a00348423552
BLAKE2b-256 970a13bf02315061748bf79e345ecd3e63163ee8509d231f38891d3d6e6f606e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page