Skip to main content

A Python CLI tool for interacting with the GitHub REST API.

Project description

github-rest-cli

PyPI Python CI License: MIT

A Python CLI for common GitHub REST API operations—list and inspect repositories, create or delete them, manage Dependabot security settings, and create deployment environments.

Installation

With pip:

pip install github-rest-cli

With uv:

uv pip install github-rest-cli

Requires Python 3.11.5 or newer.

Authentication

See Authentication for PAT scopes and how to set GITHUB_AUTH_TOKEN (or .secrets.toml).

For API URL overrides, settings files, and Dynaconf environments, see Configuration.

Quick start

github-rest-cli --version
github-rest-cli --help
github-rest-cli repo list
github-rest-cli repo get --name my-repo
github-rest-cli repo create --name my-new-repo --private

Commands

Full command reference: CLI guide.

github-rest-cli repo --help
github-rest-cli dependabot --help
github-rest-cli environment --help

Contributing

See CONTRIBUTING.md for local development, testing, linting, and Dynaconf tooling.

Links

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_rest_cli-2.0.0.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

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

github_rest_cli-2.0.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file github_rest_cli-2.0.0.tar.gz.

File metadata

  • Download URL: github_rest_cli-2.0.0.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for github_rest_cli-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a8289cecbf519d7603b01a8e260ac29286171b85428c396f21689c3a78900fb0
MD5 1f7769dd14749c493b56ec963baecd08
BLAKE2b-256 f286b00f5156ed2c0c65b85c09932d9d5fb92ed442e5c1c0aa85e1cdd41a7bdc

See more details on using hashes here.

File details

Details for the file github_rest_cli-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: github_rest_cli-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for github_rest_cli-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1eedc49452905711b7c625edfbe80fb1ed79cb05b4ed464c410404d946ee90d9
MD5 cd169ea9451325a0dc7da91367296eb7
BLAKE2b-256 11583ee6380cb0dd6911664c6c1bea0fa9800c4ec1e4e0c28fd900ac41cbd074

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