A CLI tool to fetch OldSchool RuneScape hiscores
Project description
runescape-hiscore
A simple, polished CLI tool for fetching OldSchool RuneScape hiscores (Regular, Ironman, Hardcore Ironman, Ultimate Ironman).
Features colored tables, XP-to-next-level/200 M calculations, ASCII sparklines, and JSON/CSV export.
Features
- ๐ Auto-detect mode: Regular / Ironman / Hardcore Ironman / Ultimate Ironman
- ๐ Rich table via Rich
- โณ XP gaps: XP until next level (for levels < 99) and until 200 million
- ๐ Sparkline: ASCII chart of your XP distribution across skills
- ๐ Exports:
--jsonor--csvto dump raw data - ๐ฏ Easy install via PyPI and GitHub
Installation
pip install runescape-hiscore
Or install the very latest from GitHub:
pip install git+https://github.com/JustinDeanS/runescape-hiscore.git
Usage
# Show your hiscores in a pretty table:
hiscore <username>
# Export to JSON:
hiscore --json myhiscores.json <username>
# Export to CSV:
hiscore --csv myhiscores.csv <username>
Example
$ hiscore Zezima
โโโโโโโโโโโโโโโโโโโโโโโโ Hiscores for Zezima (Regular) โโโโโโโโโโโโโโโโโโโโโโโโ
XP distribution: โโโโโโโโโโโโโโโโโโโโโโโโ
Skill Lvl XP To Next To 200 M Rank
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Overall 1465 27,957,906 โ 172,042,094 1,332,933
Attack 76 1,343,681 131,900 198,656,319 1,312,184
Defence 76 1,342,072 133,509 198,657,928 1,197,925
โฆ
CLI Options
Usage: hiscore [OPTIONS] USERNAME
Fetch OSRS OldSchool hiscores
Options:
--json FILE Write stats as JSON
--csv FILE Write stats as CSV
-h, --help Show this help message and exit
Development
# Clone & enter repo
git clone https://github.com/JustinDeanS/runescape-hiscore.git
cd runescape-hiscore
# Create a dev environment
python3 -m venv .venv
source .venv/bin/activate
pip install -e '.[test]'
# Lint your changes
flake8 src
# Run unit tests
pytest --maxfail=1 --disable-warnings -q
# Build distributions
python -m build
# Publish to PyPI (after bumping version in setup.cfg)
twine upload dist/*
Contributing
- Fork the repo
- Create a feature branch:
git checkout -b feat/my-feature - Commit your changes & push:
git push origin feat/my-feature - Open a Pull Request
Please follow the existing code style and add tests for new functionality.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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
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 runescape_hiscore-0.1.3.tar.gz.
File metadata
- Download URL: runescape_hiscore-0.1.3.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
050669ef52feb4bea01c3e0848a44f3678db6ca4984a987963bc2310bdb6a7a8
|
|
| MD5 |
4a27e511fe154aa6d1130b855e84c3cb
|
|
| BLAKE2b-256 |
42608d74eb8728e6204359b8538f91aa128d4a22527ef82140e90e28f5c7261b
|
File details
Details for the file runescape_hiscore-0.1.3-py3-none-any.whl.
File metadata
- Download URL: runescape_hiscore-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
575e17b4bdf9aa66ae70ceccede4afe9ac578aa82c0e1647a6defe9ed4a6836b
|
|
| MD5 |
5bf379e47f15363dd1af7b68ab75e6cc
|
|
| BLAKE2b-256 |
2766b540bcd9895ca82a1342befeee57e026ac841bffe64f2ee861498f56ef56
|