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.2.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.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: github_rest_cli-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f46348feb2f85bf4598921a69179c72873fa16a8e61cb22ef399cc372ae01808
MD5 28995b3e52549c760aec6fb3beb24661
BLAKE2b-256 506ea5473b7e81afb066eb9483a623435da3ff0f2bdd4a0674645317b70e957a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for github_rest_cli-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76d54a2d52143870c7ac38bfbce357925241252c7377ab062493ce85e31d3f1f
MD5 666cb61f5cc6cd5773e188cb457f423e
BLAKE2b-256 5aa116cbad23ff07e5723714146af48b49ed92a2c9fad61b83059d9668daff7b

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