Skip to content

Add Python CLI alternative (stock) - Full features#31

Open
Xpe935 wants to merge 2 commits into
shweshi:mainfrom
Xpe935:python-cli
Open

Add Python CLI alternative (stock) - Full features#31
Xpe935 wants to merge 2 commits into
shweshi:mainfrom
Xpe935:python-cli

Conversation

@Xpe935

@Xpe935 Xpe935 commented Apr 15, 2026

Copy link
Copy Markdown

Summary

Add pure Python CLI for stock price lookup as an alternative to the Node.js version.

Features

  • Current price for single/multiple tickers
  • Market summary (-m)
  • Market status query (-s)
  • JSON export (-j)
  • Colored output (red=down, green=up)

Uses the same terminal-stocks.dev API.

Why Python?

  • No Node.js/npm required
  • Works on any system with Python 3
  • Easier to install: just download one script

Usage

# Single ticker
stock MSFT

# Multiple tickers
stock MSFT,AAPL,NVDA

# Market summary
stock -m

# Market status
stock MSFT -s

# JSON output
stock MSFT -j

Credit

Original project by @shweshi
API: terminal-stocks.dev

- 基于 terminal-stocks web API
- 纯 Python 实现,无需 Node.js/npm
- 支持多股票查询,涨跌幅颜色显示

感谢原创作者: shweshi (https://github.com/shweshi/terminal-stocks)
@Xpe935 Xpe935 changed the title Add Python CLI stock price tool Add Python CLI alternative (stock) - Full features Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant