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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for github_rest_cli-1.0.3.tar.gz
Algorithm Hash digest
SHA256 63826e252c92db22cf2617635b36e6025a55c5a0570b44f2539f39737230f22f
MD5 6bda071b0cad725b13e664e83e43d8bc
BLAKE2b-256 38d0e0714a37e1e132c0c2c1ef7e3f404b71690aab50899052521fc93312d005

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for github_rest_cli-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9dbffbfd58b84e8b1935b08592e1ea03b241efb1e86ed6a0713d10d4d804f351
MD5 3f0ddb6164e21709ff46561b101b6fa9
BLAKE2b-256 7a0354163613303c656a0163b29379b4584f3013d099c5cff2a6611c6d5fc1f6

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