https://github.com/lbrealdev/github-rest-cli
A Python CLI tool for interacting with the GitHub REST API.
https://github.com/lbrealdev/github-rest-cli
argparse cli dynaconf github-rest-api python uv
Last synced: 6 days ago
JSON representation
A Python CLI tool for interacting with the GitHub REST API.
- Host: GitHub
- URL: https://github.com/lbrealdev/github-rest-cli
- Owner: lbrealdev
- License: mit
- Created: 2022-05-25T00:12:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-11-11T14:31:22.000Z (2 months ago)
- Last Synced: 2025-11-11T16:19:15.737Z (2 months ago)
- Topics: argparse, cli, dynaconf, github-rest-api, python, uv
- Language: Python
- Homepage: https://pypi.org/project/github-rest-cli/
- Size: 191 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub REST API
## Installation
Install using `pip`:
```shell
pip install github-rest-cli
```
Install using `uv`:
```shell
uv pip install github-rest-cli
```
## Usage
Set up python package dependencies in `pyproject.toml`:
```shell
uv sync
```
After sync the project, activate virtualenv in `.venv` directory:
```shell
source .venv/bin/activate
```
To list all installed packages, run:
```shell
uv pip list
```
Export your **GitHub PAT** as environment variable:
```shell
export GITHUB_AUTH_TOKEN=""
```
Run cli:
```shell
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:
```shell
just dl
```
Validate all defined parameters:
```shell
just dv
```
**NOTE:** To run dynaconf validate `dynaconf_validators.toml` should exist.
### Ruff
Run lint:
```shell
just lint
```
Run format:
```shell
just fmt
```