Skip to main content

gh-things: Github things

@readwithai - X - blog - machine-aided reading - 📖⚡️🖋️

A collection of command-line utilities to fetch information about "objects" in a machine-readable way (JSON) way.

Motivation

I often interact with github. It is nice to be able to automate the things I am doing, or just do then from the shell. gh has some good functionality but some of the features are lacking and JSON output is based on extracting individual fields.

This repository is a dumping ground for various tools to fetch inforfmation from github. It wraps the gh tool (normally gh api) to avoid having to deal with authentication.

Alternatives and prior work

The Github API is complete and can easily be called with gh api. You do however have to remember the API and read documentation when using it - which is fiddly for many tasks. This project provides a simpler and self-documenting interface to common parts of the api.

gh itself can often view objects with the --json and --jq methods.

Installation

You can install gh-things using pipx with:

pipx instal gh-things

gh-things requires the gh command-line tool.

Usage

To get information about a repository you can run:

gh-things repo url

Caveats

I will slowly add features here as I need them. I'll likely add methods for users and stargazers soon.

About me

I am @readwithai. I create tools for reading, research and agency sometimes using the markdown editor Obsidian.

I also create a stream of tools that are related to carrying out my work. As you are looking at this page, you might be interested in gh-views - a tool to get view statistics about a github page, gh-star-timeline which fetches and maintains star counts for a repository, or symbolboard2 and alternative ergonomic keyboard layout.

I write about lots of things - including tools like this - on X. My blog is more about reading and research and agency.

@readwithai logo

Metadata

Release files for gh-things 1.1.3

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

Source distribution (sdist)

Source distribution for gh-things 1.1.3
File Size Uploaded Provenance Actions
gh-things-1.1.3.tar.gz 3.0 kB Without provenance Details for gh-things-1.1.3.tar.gz

Release files / gh-things-1.1.3.tar.gz

Download URL gh-things-1.1.3.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b116ef164b22707a1ce7f6139d71597f68a487117ec374ac637608b04901c595
BLAKE2b-256 checksum
How to use checksums
b488a9fa5552264843b567c2ce79045a4379da163b3d2896932a2f8b60c98325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for gh-things 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.3 This release

1 release file No provenance

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