MrHelix's osu! star rating calculator rewritten for your Python needs
Project description
osu_sr_calculator
Package to calculate star rating of any osu beatmap with any mod combination.
Updated on: 19.02.2021
Disclaimer
calculated star ratings may be varying slightly from original values (margin of 0.01)
Usage
from osu_sr_calculator import calculateStarRating
starRating = calculateStarRating(returnAllDifficultyValues, filepath, map_id, mods, allCombinations)
calculateStarRating method accepts these parameters:
- returnAllDifficultyValues: returns total star rating value if False. when set to True, method will also return aim and speed difficulty
- filepath (optional if map_id is set): Path to .osu file
- map_id (optional if filepath is set): BeatmapID number of a beatmap
- mods (optional): Specify which mods to include during star rating calculation
- allCombinations (optional): when set to True, will return star rating of every possible mod combination
Examples
- local file nomod star rating:
starRating = calculateStarRating(filepath='path/to/file.osu')
# Response: { 'nomod': x.xxxx }
- BeatmapID DT star rating:
starRating = calculateStarRating(map_id=123456, mods=['DT'])
# Response: { 'DT': x.xxxx }
- All possible star ratings:
starRatings = calculateStarRating(filepath='path/to/file.osu', allCombinations=True)
# Response:
# {
# nomod: x.xxxx,
# DT: x.xxxx,
# HT: x.xxxx,
# HR: x.xxxx,
# HRDT: x.xxxx,
# HRHT: x.xxxx,
# EZ: x.xxxx,
# EZDT: x.xxxx,
# EZHT: x.xxxx,
# }
- Aim and Speed ratings:
starRatings = calculateStarRating(filepath='path/to/file.osu', returnAllDifficultyValues=True)
# Response:
# {
# nomod: {
# aim: x.xxxx,
# speed: x.xxxx,
# total: x.xxxx,
# }
# }
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 osu_sr_calculator-0.6.9.tar.gz.
File metadata
- Download URL: osu_sr_calculator-0.6.9.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53bdb79519a3f562c4512c551b426fdff5ffeff02f3c7b0ea3336ec9d0db96d4
|
|
| MD5 |
97a1a0efa6efbdb86c7478a45d97d640
|
|
| BLAKE2b-256 |
f154438d28b9c9a223934964efa280a212f9fce8e67eaf61ad82e61e25f2fa3d
|
File details
Details for the file osu_sr_calculator-0.6.9-py3-none-any.whl.
File metadata
- Download URL: osu_sr_calculator-0.6.9-py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd17506b42e50cd5e69cb55242617ed7655d367246a0faf6cdc561059d06a09d
|
|
| MD5 |
25bb8b19a8c4c932eda2a2f65860644d
|
|
| BLAKE2b-256 |
74f3d20b0ed6d90499ce18ad02c23b27648896462825004943755b63c0523380
|