lilyweight
Hypixel SkyBlock Weight Calculator
Information
This is a reimplementation of https://github.com/Antonio32A/lilyweight in Python. Which is a reimplementation of https://github.com/LappySheep/hypixel-skyblock-weight
Written without any external libraries other than aiohttp which is used to fetch data from the Hypixel API.
This requires a Hypixel API key. You may obtain one by logging onto hypixel.net with your Minecraft client and typing
/api new.
Credits
- LappySheep - Original author of the calculator
- Desco - Ported the calculator to JavaScript.
- Antonio32A - Ported the calculator to JavaScript.
- timnoot - Ported the calculator to Python.
Usage
import asyncio
from lilyweight import LilyWeight
# replace HYPIXEL_API_KEY with your Hypixel API key
lily = LilyWeight("HYPIXEL_API_KEY")
async def main():
# using a UUID
print(await lily.get_weight("e710ff36fe334c0e8401bda9d24fa121"))
# using a username
print(await lily.get_weight_from_name("timnoot"))
# functions for if you wish to see a certain profile instead of the most recently used profile
print(await lily.get_weight_from_name("MooshiMochi", "Orange"))
print(await lily.get_weight("0ce87d5afa5f4619ae78872d9c5e07fe", "Mango"))
# get raw weight from raw data, read the JSDoc for more information
# this does not return the uuid and username fields but it does not make any requests
print(LilyWeight.get_weight_raw(
{ # Skill levels in a dict
'enchanting': 60,
'taming': 60,
'alchemy': 60,
'mining': 60,
'farming': 60,
'foraging': 52,
'combat': 60,
'fishing': 60
},
{ # Skill experience in a dict
'enchanting': 842351020.815073,
'taming': 2884548541.3704095,
'alchemy': 125648244.46351068,
'mining': 510669860.4613964,
'farming': 200263881.0307403,
'foraging': 68274086.12834656,
'combat': 3590591634.1474257,
'fishing': 227814154.47671163
},
{ # Dungeon completions in a dict
'0': 22.0, '1': 138.0, '2': 967.0, '3': 100.0, '4': 172.0, '5': 323.0, '6': 578.0, '7': 1201.0
},
{ # Master dungeon completions in a dict
'1': 907.0, '2': 40.0, '3': 1100.0, '4': 873.0, '5': 2729.0, '6': 1508.0, '7': 974.0
},
1316600722.1128976, # Total experience in the catacombs
**{ # Slayer experience as kwargs
'zombie': 34954055, 'spider': 64968075, 'wolf': 1526995, 'enderman': 3575580, 'blaze': 259305
}
))
asyncio.run(main())
Example output of one of the functions, in JSON:
{
"total": 14439.880600696824,
"skill": {
"base": 10346.795817290036,
"overflow": 173.30267908613297
},
"catacombs": {
"completion": {
"base": 1226.2725420124711,
"master": 532.7492424907152
},
"experience": 1057.0997512507508
},
"slayer": 1103.6605685667157
}
API
If you aren't using Python or JavaScript and you need an API, take a look at lilyweight-worker.
Release files for lilyweight 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lilyweight-0.0.5.tar.gz | 12.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lilyweight-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.8 kB
Release files / lilyweight-0.0.5.tar.gz
| Download URL | lilyweight-0.0.5.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eba8e3f0b9ce2bbd3bf3b633598ddb38993d2538efce80100194f54a8aa7e688
|
|
BLAKE2b-256 checksum How to use checksums |
2c2761abbe7977ec6a01b646fcc9de4973ac435e0676392cd13ad617f7ad955f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|
Release files / lilyweight-0.0.5-py3-none-any.whl
| Download URL | lilyweight-0.0.5-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a0c34beb21a42e7b8320b0a66f825ad5e7a842c0697eceda738aeb24cb63e5a
|
|
BLAKE2b-256 checksum How to use checksums |
f2c733f37332166e543c1b1d7ea54bd93d439eb5af47c9f06422efe45e04c37f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|