⭐️ GitHub Random Star ⭐️
If you have starred way too many GitHub repositories and need a way of keeping track of them. This simple CLI tool throws you quasi random starred repos at you to look at and explore.
If you are struggling with selection paralysis; it also allows for selecting random repositories from a GitHub user.
Installation
Install with Pipx or Pip.
pipx install github-random-star
Install with GitHub CLI.
gh extension install ddkasa/gh-random-star
Usage
- Setup GitHub API token as the
GITHUB_TOKENenvironment variable. If this is not setup it will use the public access point with lower rates.
PyPi
- Run the script through
gh-star <command> <account> <flags>. - Run
gh-star help starto get help.
GitHub CLI
- Run the script through
gh random-star <command> <account> <flags>. - Run
gh random-star help starto get help.
Commands
starRandomly select from all starred items of a GH user.repoRandomly select from a GH users repositories.
Arguments
<account>Username of the GitHub account to retrieve the starred items from. Required
Flags
-t, --totalTotal amount of random items you want to pick from. Defaults to 3.-r, --refreshWhether to fetch new cached data or not. Will re fetch all starred items instead of using cache.--max-historyThe amount of historic choices to cache. Defaults to 100. Set to -1 to keep history unlimited.GH_STAR_MAX_HISTORYenvironment variable can be used to override this value.-i, --ignoreIf to use a list of repositories to ignore. Defaults to true.--max_resultsThe amount of starred items to retrieve from GitHub. Defaults to all.
Examples
PyPI
gh-star star ddkasagh-star repo ddkasagh-star star ddkasa -t 5gh-star star ddkasa -r -t 5
GitHub CLI
gh random-star star ddkasagh random-star repo ddkasa
Contributing
Development is run through Poetry.
Basic Setup
git clone https://github.com/ddkasa/github-random-starcd github-random-starpoetry shellpoetry installpoetry run gh-star
- Lint with
ruff check toggl_api - Check typing with
mypy toggl_api
Testing
- Use
pytestfor all tests - Use
pytest -m unitfor unit tests - Use
pytest -m integrationfor integration tests - Test all supported python versions through
tox
License
MIT. Look at the LICENSE for details.
Metadata
Release files for github-random-star 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| github_random_star-1.2.0.tar.gz | 9.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| github_random_star-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.4 kB
Release files / github_random_star-1.2.0.tar.gz
| Download URL | github_random_star-1.2.0.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad382790fbc117fa1636b6898aa6b6c729050105867b1ce68af99f0b8125553d
|
|
BLAKE2b-256 checksum How to use checksums |
82ba4215b9a9704e09d40b6a2faa6b6ef4357969896dec13c4b8034c27e81139
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure
|
Release files / github_random_star-1.2.0-py3-none-any.whl
| Download URL | github_random_star-1.2.0-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7d830ea9fe1e1b0ffdc4a925c3351e6ec54ab556f16f4d3cdf0b14cc556b5eb
|
|
BLAKE2b-256 checksum How to use checksums |
dbb910f9adcb5b6cde11d278a1d9fa9d8912ec6b07d1d1c1f864af804db3b20d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.1 Linux/6.5.0-1025-azure
|