trending-repos
A CLI tool to fetch and display trending GitHub repositories, filtered by time range and programming language.
Installation
From PyPI
pip install trending-repos
From source
git clone https://github.com/abab754/trending-repos.git
cd trending-repos
python -m venv myenv
source myenv/bin/activate
pip install -r requirements.txt
Usage
trending-repos [OPTIONS]
Options
| Option | Short | Type | Default | Description |
|---|---|---|---|---|
--duration |
-d |
day | week | month | year |
week |
Time range to filter repos by |
--limit |
-l |
integer (1–100) | 10 |
Number of repositories to display |
--language |
-lang |
string | python |
Programming language to filter by |
--help |
Show help message and exit |
Examples
# Top 10 trending Python repos from the past week (defaults)
trending-repos
# Top 5 repos from the past day
trending-repos --duration day --limit 5
# Top 20 JavaScript repos from the past month
trending-repos --duration month --limit 20 --language javascript
# Top trending Go repos from the past year
trending-repos -d year -l 15 -lang go
Example output
Trending repos · last week · language: python · top 3
============================================================
#1 some-user/awesome-repo
★ 4,231 stars | Python
A really awesome Python project
#2 another-user/cool-tool
★ 2,108 stars | Python
A cool tool that does cool things
#3 user/project
★ 987 stars | Python
No description
============================================================
Notes
- Uses the GitHub Search API. No authentication required, but unauthenticated requests are limited to 10 requests per minute.
- Language names must match GitHub's canonical names (e.g.
javascriptnotjs,c++notcpp).
Metadata
Release files for trending-repos 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trending_repos-0.1.1.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trending_repos-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / trending_repos-0.1.1.tar.gz
| Download URL | trending_repos-0.1.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e04472af344cc6568303bbf543eaa80482e2918038c0ea96df8fdd80937a294f
|
|
BLAKE2b-256 checksum How to use checksums |
7982b507703bd15c1d987a080bf04888ca3af2b938569fb9c1549b6d5ca64e7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Release files / trending_repos-0.1.1-py3-none-any.whl
| Download URL | trending_repos-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40bb9d17bd11aaaf4bbaf8fa17c47921cbd2ec40271ff8e6c9b85a52cf8db565
|
|
BLAKE2b-256 checksum How to use checksums |
b85282ee828edba9297f46ce524fffca2a30446ab87fc2fe759c712159a73dd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|