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,
# }
# }
Release files for osu-sr-calculator 1.1.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 | |
|---|---|---|---|
| osu_sr_calculator-1.1.0.tar.gz | 28.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| osu_sr_calculator-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.4 kB
Release files / osu_sr_calculator-1.1.0.tar.gz
| Download URL | osu_sr_calculator-1.1.0.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09b644461ddcca749c8ebf3e60780eeef6e17b9caff35660924b16abbacd4e34
|
|
BLAKE2b-256 checksum How to use checksums |
1882f921359f4cb9f4c0d2807bb390df3c419db9b074ace944141d2cf40128c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / osu_sr_calculator-1.1.0-py3-none-any.whl
| Download URL | osu_sr_calculator-1.1.0-py3-none-any.whl |
|---|---|
| Size | 35.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98ce23b7567d26139bcfdd2f53ba865da46e2e3db0cbfd50dc281c82ac21548e
|
|
BLAKE2b-256 checksum How to use checksums |
4cb95b2cc7220c85e06e31198d22da827a1f6dfe41f9e949864c6e5339bc4054
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|