Commit b542a36c07

b542a36c072c353e9f3ba23c0fec99e55da8289a

parent: 4bc7876448

Verified · cmc

cmc <hello@cleberg.net> · 2026-04-16 03:33 UTC

update README

Layout: unified · split

README.md +58 −18
@@ -1,15 +1,18 @@
11# NBA
22
3NBA is a simple Python package that provides you with a quick and easy
4command-line interface to current NBA scores and standings.
3![](./screenshots/preview.png)
54
6See the [Installation](#installation) & [Usage](#usage) sections below
7for more information.
5NBA is a Python package that provides a command-line interface to current NBA
6scores, standings, statistical leaders, playoff picture, and live box scores.
7It supports both a static one-shot mode and an interactive TUI with
8auto-refresh.
89
910# Table of Contents
1011
1112- [Installation](#installation)
1213- [Usage](#usage)
14 - [Interactive TUI](#interactive-tui)
15 - [Static output](#static-output)
1316- [Contributing](#contributing)
1417
1518# Installation
@@ -24,33 +27,70 @@ pipx install nba-scores
2427
2528## Manual
2629
27To run the script locally, run the following commands:
28
2930```shell
3031git clone https://git.cleberg.net/nba-scores.git
3132cd nba-scores
32pipx install .
33uv sync
3334```
3435
35![Installation](./screenshots/installation.png)
36
3736# Usage
3837
3938[Back to top](#table-of-contents)
4039
41All commands can be passed to the program with the following template:
42`nba <ARGUMENT>`
40## Interactive TUI
41
42Launch the full interactive terminal UI:
43
44```shell
45nba --tui
46```
47
48Optional flags:
49
50| Flag | Description |
51|--------------------|--------------------------------------------------------|
52| `--tui` | Launch the interactive TUI |
53| `--scores` | Open TUI on the Scores tab (default) |
54| `--standings` | Open TUI on the Standings tab |
55| `--refresh N` | Auto-refresh interval in seconds (default: 60, min: 10)|
56
57### TUI tabs
58
59| Tab | Key | Description |
60|-----------------|-----|----------------------------------------------------------|
61| Scores | `s` | Today's games with live scores and status |
62| Standings | `t` | East / West conference standings, side by side |
63| Leaders | `l` | Top 25 players by stat category |
64| Playoff Picture | `p` | Conference seeding with clinch and elimination status |
65| Box Score | `b` | Per-player live stats for a selected game |
66
67### TUI key bindings
68
69| Key | Action |
70|---------|------------------------------------------------|
71| `1`–`9` | Load box score for game N from the Scores tab |
72| `,` | Cycle to the previous leaders stat category |
73| `.` | Cycle to the next leaders stat category |
74| `r` | Refresh all data immediately |
75| `q` | Quit |
76
77### Leaders stat categories
78
79Cycles through: Points, Rebounds, Assists, Steals, Blocks, Efficiency, FG%, FT%, 3P%
80
81## Static output
82
83Print scores or standings directly to the terminal without launching the TUI:
4384
4485| Argument | Shortcut | Description |
4586|---------------|----------|-----------------------------------|
46| `--scores` | `-sc` | Show today's scoreboard |
47| `--standings` | `-st` | Show current conference standings |
48
49Scores:
50![Scores](./screenshots/scores.png)
87| `--scores` | `-sc` | Print today's scoreboard |
88| `--standings` | `-st` | Print current conference standings|
5189
52Standings:
53![Standings](./screenshots/standings.png)
90```shell
91nba --scores
92nba --standings
93```
5494
5595# Contributing
5696
screenshots/preview.png added

Binary file not shown.