Skip to main content

A CLI tool to fetch OldSchool RuneScape hiscores

Project description

runescape-hiscore

PyPI version
CI

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: --json or --csv to 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

  1. Fork the repo
  2. Create a feature branch: git checkout -b feat/my-feature
  3. Commit your changes & push: git push origin feat/my-feature
  4. 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


Download files

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

Source Distribution

runescape_hiscore-0.1.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

runescape_hiscore-0.1.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for runescape_hiscore-0.1.3.tar.gz
Algorithm Hash digest
SHA256 050669ef52feb4bea01c3e0848a44f3678db6ca4984a987963bc2310bdb6a7a8
MD5 4a27e511fe154aa6d1130b855e84c3cb
BLAKE2b-256 42608d74eb8728e6204359b8538f91aa128d4a22527ef82140e90e28f5c7261b

See more details on using hashes here.

File details

Details for the file runescape_hiscore-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for runescape_hiscore-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 575e17b4bdf9aa66ae70ceccede4afe9ac578aa82c0e1647a6defe9ed4a6836b
MD5 5bf379e47f15363dd1af7b68ab75e6cc
BLAKE2b-256 2766b540bcd9895ca82a1342befeee57e026ac841bffe64f2ee861498f56ef56

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