OSRS Hiscores
Simple OSRS Hiscores client for Python.
Installation
pip install osrs-hiscores-client
Usage
from osrs_hiscores.client import HiscoresClient
from osrs_hiscores.enums import PlayerType, Skill, Activity
rsn = "Lynx Titan"
client = HiscoresClient()
# PlayerType also has PlayerType.IRONMAN, PlayerType.HARDCORE_IRONMAN and PlayerType.ULTIMATE_IRONMAN, PlayerType.DEADMAN_MODE, PlayerType.SEASONAL and PlayerType.TOURNAMENT
stats = client.get_player_stats(rsn, PlayerType.NORMAL)
# You can access specific skill using ID.
agility_skill = stats.get_skill_by_id(Skill.AGILITY)
if agility_skill is not None:
print(f"Player {stats.rsn} has agility level of {agility_skill.level}, {agility_skill.experience} experience and rank {agility_skill.rank}.")
# Player Lynx Titan has agility level of 99, 200000000 experience and rank 24.
# You can loop all skills.
for skill in stats.skills.values():
print(f"Player {stats.rsn} has {skill.name} level of {skill.level}, {skill.experience} experience and rank {skill.rank}.")
# You can access specific activity using ID.
jad_activity = stats.get_activity_by_id(Activity.TZTOK_JAD)
if jad_activity is not None:
print(f"Player {stats.rsn} has {jad_activity.score} Jad KC and rank {jad_activity.rank}.")
# Player Lynx Titan has activity TzTok-Jad score of 186 and rank 375.
# You can also loop all activities.
for activity in stats.activities.values():
print(f"Player {stats.rsn} has activity {activity.name} score of {activity.score} and rank {activity.rank}.")
Metadata
Release files for osrs-hiscores-client 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| osrs_hiscores_client-3.0.0.tar.gz | 8.0 kB | Without provenance | Details for osrs_hiscores_client-3.0.0.tar.gz |
Release files / osrs_hiscores_client-3.0.0.tar.gz
| Download URL | osrs_hiscores_client-3.0.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0582cfdc5f9f1ef04f2c143f39d03fb92a4397f4ec771fdd112b5c55b8babdeb
|
|
BLAKE2b-256 checksum How to use checksums |
8766418b750b52e3bf816ccc76fd36e4db48ae9568d510a2f73b87a87f05198d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Security for osrs-hiscores-client 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.