Skip to main content

GitHub REST API cli

Project description

GitHub REST API

Installation

Install using pip:

pip install github-rest-cli

Install using uv:

uv pip install github-rest-cli

Usage

Set up python package dependencies in pyproject.toml:

uv sync

After sync the project, activate virtualenv in .venv directory:

source .venv/bin/activate

To list all installed packages, run:

uv pip list

Export your GitHub PAT as environment variable:

export GITHUB_AUTH_TOKEN="<github-auth-token>"

Run cli:

github-rest-cli -v

Dynaconf

This python cli app uses dynaconf to manage secrets and environment variables.

So that you can use your secrets and environment variables declared in settings.toml or .settings.toml, use the GITHUB prefix value of envvar_prefix declared in config.py.

List all defined parameters:

just dl

Validate all defined parameters:

just dv

NOTE: To run dynaconf validate dynaconf_validators.toml should exist.

Ruff

Run lint:

just lint

Run format:

just fmt

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-1.0.1.tar.gz (13.9 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-1.0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: github_rest_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.8

File hashes

Hashes for github_rest_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5f088de3a0c4af8d1d6ca4abb6c70a063bac333366a2a7d465732ef1770c5ee8
MD5 65ec6ee8dbaa80e44ed62b4012ed9abe
BLAKE2b-256 f819ac5dc7c41df753974f6a8701a8744abf5f9fdc8d933398063370cfbbe1ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for github_rest_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eae46cf87235ad0ebddd25deba123f4c9e990d4abcdaa9049c1842542b1d20a7
MD5 93813a0a53956a61abeaa21b954d4554
BLAKE2b-256 c992fb15839810cb0128865aba7461e46311a92b85e410a87d87a2264c6b98ac

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