Skip to main content

GitHub REST API cli

Project description

GitHub REST API

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 -h

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.0.tar.gz (13.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.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for github_rest_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e15fd4051ce171a0a6ca1b7dd19966b0e67720cbecb664f899a1cc69a627cf10
MD5 a709f59179f7641f90ab3e85f8c0da7d
BLAKE2b-256 93c01c29de12f09a24cb398b66091220614ee8ab0e0b328289c5465a87c26cc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for github_rest_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b214513006082c4cfee69a80daab3e4cdf1da0c61b5307bdac353a520f35ba26
MD5 8cbff507c34500d0bbf20d5fdf776ca4
BLAKE2b-256 45acf45346bf31617624834e568f9b71b16df6f1d04e196d7729b3b457eeff31

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