CLI tool to fetch trending GitHub repositories
Project description
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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trending_repos-0.1.1.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trending_repos-0.1.1.tar.gz.
File metadata
- Download URL: trending_repos-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e04472af344cc6568303bbf543eaa80482e2918038c0ea96df8fdd80937a294f
|
|
| MD5 |
17eb839fe10ef43d36821e6efaba8fd4
|
|
| BLAKE2b-256 |
7982b507703bd15c1d987a080bf04888ca3af2b938569fb9c1549b6d5ca64e7b
|
File details
Details for the file trending_repos-0.1.1-py3-none-any.whl.
File metadata
- Download URL: trending_repos-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40bb9d17bd11aaaf4bbaf8fa17c47921cbd2ec40271ff8e6c9b85a52cf8db565
|
|
| MD5 |
c03931075d6db73a5eda80ae509a1a49
|
|
| BLAKE2b-256 |
b85282ee828edba9297f46ce524fffca2a30446ab87fc2fe759c712159a73dd1
|