Skip to main content

A command-line tool for browsing Reddit without requiring an API key

Project description

Reddit CLI Logo

Reddit CLI

Browse Reddit from your terminal. No API key, no authentication, no hassle.

PyPI Version License Tests Python

Explore subreddits, dive into discussions, and discover trending content - all from a sleek command-line interface.

Why Reddit CLI?

  • Zero setup - No API key needed, just install and go
  • Blazing fast - Async HTTP powered by httpx
  • Explore deeply - Pagination, sorting, and threaded comments
  • Clean output - Readable formatting right in your terminal

Features

  • Browse subreddits with 6 sorting modes (hot, new, top, rising, controversial, gilded)
  • View posts with full metadata
  • Threaded comment display with depth control
  • Pagination support for infinite scrolling
  • Subreddit info, rules, and moderator discovery
  • 100% type-annotated Python

Quick Start

# Install
uv add better-reddit-cli

# Browse the frontpage
reddit

# Explore a subreddit
reddit browse python --limit 10

# View a post and its comments
reddit view t3_abc123
reddit comments t3_abc123 --depth 3

# Discover subreddits
reddit subreddits --sort subscribers
reddit subreddit python --rules

Command Overview

Command Description
reddit Frontpage (hot posts)
reddit browse <sub> Browse a subreddit
reddit view <id> View a post
reddit comments <id> View post comments
reddit subreddit <name> Subreddit info
reddit subreddits List popular subreddits

Browse Options

--sort hot|new|top|rising|controversial|gilded
--limit <n>     Number of posts (max 100)
--period day|week|month|year|all
--after <id>    Next page
--before <id>    Previous page

Development

# Clone and install
git clone https://github.com/AliiiBenn/reddit-cli.git
cd reddit-cli
uv sync

# Run tests
uv run pytest

# Lint and type-check
uv run ruff check .
uv run mypy reddit_cli

# Try it out
uv run reddit browse python

Contributing

Contributions are welcome! Feel free to open issues or submit PRs.

License

MIT - See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

better_reddit_cli-0.2.0.tar.gz (75.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

better_reddit_cli-0.2.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file better_reddit_cli-0.2.0.tar.gz.

File metadata

  • Download URL: better_reddit_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 75.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for better_reddit_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 545e4a98efbee425c947290e56307da34ed82b9906759f1bfd139601c12e014f
MD5 ede7bd350545e21adbbbc005abf2c508
BLAKE2b-256 6fc81273796000a0187dbe52d4221da935d0c36d455ec0be09859f7c490c5433

See more details on using hashes here.

File details

Details for the file better_reddit_cli-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for better_reddit_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8131a4e770e703d3a58154ea4e69b541fc2cd56133e2b9f62a57fac6d1ca5c03
MD5 d5c5d7fcb5a350032b498cd69f7ec61a
BLAKE2b-256 93070febf8115250df53938eba971411ff020ab70d43e03b5693bc1c0f9dfa43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page