A terminal-based Hacker News reader that displays stories in a beautiful table format.
Project description
HN UI
A terminal-based Hacker News reader that displays stories in a beautiful table format.
Features
- View top, new, best, ask, show, and job stories from Hacker News
- Customizable number of stories to display
- Start from any rank in the story list
- Rich terminal interface with colored output
- Rate-limited API calls to respect Hacker News API limits
- Concurrent fetching for improved performance
Installation
pip install hn-ui
Usage
# Show top 50 stories (default)
hnd
# Show top 10 stories
hnd -n 10
# Show new stories
hnd -m new
# Show stories starting from rank 20
hnd -s 20
# Show 5 ask stories starting from rank 10
hnd -m ask -s 10 -n 5
Command Line Options
-m, --mode: Story mode to display (choices: top, new, best, ask, show, job)-s, --start: Start from this rank article (1-based index, default: 1)-n, --num: Number of articles to display (default: 50)
Story Modes
- top: Top stories (up to 500)
- new: New stories (up to 500)
- best: Best stories (up to 500)
- ask: Ask HN stories (up to 200)
- show: Show HN stories (up to 200)
- job: Job stories (up to 200)
Requirements
- Python 3.12+
- requests
- rich
Development
This project uses uv for dependency management. To set up for development:
uv sync
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
hn_ui-0.1.1.tar.gz
(4.1 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
hn_ui-0.1.1-py3-none-any.whl
(4.7 kB
view details)
File details
Details for the file hn_ui-0.1.1.tar.gz.
File metadata
- Download URL: hn_ui-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95cbef1b06d7c021d91171195161d018beafc34c98e6777751a4e376bf57d962
|
|
| MD5 |
5a59e2fc50070cdb64056fa9179e9c6c
|
|
| BLAKE2b-256 |
95047628954cae4b6eb43c88b03f2ee34d0baf8561ff4a895b69c164599b03e0
|
File details
Details for the file hn_ui-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hn_ui-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5872ac46dfd50b99bc396d8a0e6cd21a278879090b63af39b97fbf8d46ae574f
|
|
| MD5 |
56ec2d9bced0f04409610dae8df64f83
|
|
| BLAKE2b-256 |
6dd5255de1553e2ebd266d241d0e6c435f85e19c9af2e8309a2f30cf47bf4de4
|