Skip to main content

GitHub REST API cli

Project description

GitHub REST API

Use

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.

Set up python package dependencies in pyproject.toml:

uv sync

Activate virtualenv:

source .venv/bin/activate

Export required environment variables:

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

Run the github-rest-api cli:

github-rest-api -h

Dynaconfg

List all defined parameters:

dynaconf -i github_rest_api.config.settings list

Validate all defined parameters:

dynaconf -i github_rest_api.config.settings validate

NOTE: dynaconf_validators.toml must exist.

Ruff

Install ruff via uv:

uv tool install ruff

Run check:

ruff check .

Run format:

ruff format .

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-0.2.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

github_rest_cli-0.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: github_rest_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.19

File hashes

Hashes for github_rest_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6fa9181f20108b4248a7313352429b8506b2c2528ffadd596d7c874122a47a88
MD5 52a21fd42085e63d6152d7b029d3d383
BLAKE2b-256 2a8bc5cfbd12292cb9b88a2f24c25ac8ad0ee90f272acc7dc30835490ff203c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for github_rest_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0485fef0b50475a6fba2043098ecdbeda90f04dfadc5c39199b8b560696e9b5c
MD5 048335cd82394609bad61a5312954766
BLAKE2b-256 8345d6cb2607f7a38e60bbeffb7973d09ea817c31c0ad615a0069ea1a670352e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page