Skip to main content

fetch-github-issues

PyPI Changelog Tests License

Fetch all GitHub issues for a repository and save them as JSON

Installation

Install this tool using pip:

pip install fetch-github-issues

Usage

To fetch all issues from a GitHub repository:

fetch-github-issues owner/repo --all

Or for just specific issues:

fetch-github-issues owner/repo 1 2 3

Other options:

  • --key xxx: GitHub API key - will use the GITHUB_TOKEN environment variable if this is not set.
  • --output path/to/dir: Output directory to save JSON. Default is the current directory.

For more help, run:

fetch-github-issues --help

You can also use:

python -m fetch_github_issues --help

Issue format

Issues will be saved in files called 1.json and 2.json and so on, where the filename is the issue number.

Each file will look like this:

{
    "issue": {
        "GitHub API issue representation": "..."
    },
    "comments": [
        {
            "GitHub API comment representation": "..."
        }
    ]
}

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd fetch-github-issues
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Release files for fetch-github-issues 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fetch-github-issues 0.1.2
File Size Uploaded
fetch_github_issues-0.1.2.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fetch-github-issues 0.1.2
File Interpreter ABI Platform
fetch_github_issues-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.2 kB

Release files / fetch_github_issues-0.1.2.tar.gz

Download URL fetch_github_issues-0.1.2.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ff61619487ca378f81623bd7431c552b963f12f28608458b5afb082ceffc1666
BLAKE2b-256 checksum
How to use checksums
a37c30d38203ee02fd368ec9dbf7e30ceced743899cc89cf511d96d9aeb228df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / fetch_github_issues-0.1.2-py3-none-any.whl

Download URL fetch_github_issues-0.1.2-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3079355c71e96907c202bdef18f746700a769b8367a35b77d3a60a949957fbef
BLAKE2b-256 checksum
How to use checksums
e4ce370baab045fda43c86595dc5f1ecada9cbcdc2f1b362d4806e45e92f944c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page