senitherweight


Namesenitherweight JSON
Version 0.0.1 PyPI version JSON
download
home_page
SummaryHypixel SkyBlock Weight Calculator.
upload_time2023-01-03 21:19:46
maintainer
docs_urlNone
authortimnoot
requires_python
license
keywords python hypixel skyblock senither weight weight senither
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # senitherweight

[![discord](https://img.shields.io/discord/840150806682664970?logo=discord&style=for-the-badge)](https://discord.gg/ej92B474Ej)
[![license](https://img.shields.io/badge/license-MIT-green?style=for-the-badge)](LICENSE)
[![pypi](https://img.shields.io/pypi/v/senitherweight?style=for-the-badge)](https://pypi.org/project/senitherweight/)

Hypixel SkyBlock Weight Calculator

## Information

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

- [Senither](https://github.com/Senither/) - Original author of the calculator
- [timnoot](https://github.com/timnoot) - Ported the calculator to Python.

## Usage

```py
from senitherweight import SenitherWeight
import asyncio

senither = SenitherWeight("API-KEY-HERE")


async def main():
    # using a UUID
    print(await senither.get_weight("e710ff36fe334c0e8401bda9d24fa121"))

    # using a username
    print(await senither.get_weight_from_name("timnoot"))

    # functions for if you wish to see a certain profile instead of the most recently used profile
    print(await senither.get_weight_from_name("MooshiMochi", "Orange"))
    print(await senither.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(SenitherWeight.get_weight_raw(
        {
            'mining': 183102234.88907138, 'foraging': 61906511.969001345, 'enchanting': 508444404.0935615,
            'farming': 136267563.7507943, 'combat': 418778146.1766783, 'fishing': 110893816.12596695,
            'alchemy': 112877401.723031, 'taming': 488698175.13185537
        },
        {
            'healer': {'experience': 129196634.63940006},
            'mage': {'experience': 156073711.0390862},
            'berserk': {'experience': 304167530.58791596},
            'archer': {'experience': 235720208.66076514},
            'tank': {'experience': 192383702.58436698}
        },
        900529694,
        {
            'zombie': {'xp': 2115212},
            'spider': {'xp': 1913691},
            'wolf': {'xp': 1200006},
            'enderman': {'xp': 1000500},
            'blaze': {'xp': 255}
        },
    ))


asyncio.run(main())
```

Example output of one of the functions, in JSON:

```json
{
  "total": 5902.302984602829,
  "skill_weight": 3013.6795988302724,
  "dungeon_weight": 2357.485394537336,
  "slayer_weight": 531.1379912352199
}
```

[//]: # (## API)

[//]: # ()
[//]: # (If you aren't using Python or JavaScript and you need an API, take a look)

[//]: # (at [lilyweight-worker](https://lilydocs.antonio32a.com/).)



            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "senitherweight",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,hypixel,skyblock,senither weight,weight,senither",
    "author": "timnoot",
    "author_email": "<hypixelskyhub@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/c2/ea/8120a6a6d7df3260edbc1cbaa1ae5a79ab10caa47fa83dbc8ed8ee83f86e/senitherweight-0.0.1.tar.gz",
    "platform": null,
    "description": "# senitherweight\r\n\r\n[![discord](https://img.shields.io/discord/840150806682664970?logo=discord&style=for-the-badge)](https://discord.gg/ej92B474Ej)\r\n[![license](https://img.shields.io/badge/license-MIT-green?style=for-the-badge)](LICENSE)\r\n[![pypi](https://img.shields.io/pypi/v/senitherweight?style=for-the-badge)](https://pypi.org/project/senitherweight/)\r\n\r\nHypixel SkyBlock Weight Calculator\r\n\r\n## Information\r\n\r\nWritten without any external libraries other than `aiohttp` which is used to fetch data from the Hypixel API.\r\n\r\nThis requires a Hypixel API key. You may obtain one by logging onto `hypixel.net` with your Minecraft client and typing\r\n/api new.\r\n\r\n## Credits\r\n\r\n- [Senither](https://github.com/Senither/) - Original author of the calculator\r\n- [timnoot](https://github.com/timnoot) - Ported the calculator to Python.\r\n\r\n## Usage\r\n\r\n```py\r\nfrom senitherweight import SenitherWeight\r\nimport asyncio\r\n\r\nsenither = SenitherWeight(\"API-KEY-HERE\")\r\n\r\n\r\nasync def main():\r\n    # using a UUID\r\n    print(await senither.get_weight(\"e710ff36fe334c0e8401bda9d24fa121\"))\r\n\r\n    # using a username\r\n    print(await senither.get_weight_from_name(\"timnoot\"))\r\n\r\n    # functions for if you wish to see a certain profile instead of the most recently used profile\r\n    print(await senither.get_weight_from_name(\"MooshiMochi\", \"Orange\"))\r\n    print(await senither.get_weight(\"0ce87d5afa5f4619ae78872d9c5e07fe\", \"Mango\"))\r\n\r\n    # get raw weight from raw data, read the JSDoc for more information\r\n    # this does not return the uuid and username fields but it does not make any requests\r\n    print(SenitherWeight.get_weight_raw(\r\n        {\r\n            'mining': 183102234.88907138, 'foraging': 61906511.969001345, 'enchanting': 508444404.0935615,\r\n            'farming': 136267563.7507943, 'combat': 418778146.1766783, 'fishing': 110893816.12596695,\r\n            'alchemy': 112877401.723031, 'taming': 488698175.13185537\r\n        },\r\n        {\r\n            'healer': {'experience': 129196634.63940006},\r\n            'mage': {'experience': 156073711.0390862},\r\n            'berserk': {'experience': 304167530.58791596},\r\n            'archer': {'experience': 235720208.66076514},\r\n            'tank': {'experience': 192383702.58436698}\r\n        },\r\n        900529694,\r\n        {\r\n            'zombie': {'xp': 2115212},\r\n            'spider': {'xp': 1913691},\r\n            'wolf': {'xp': 1200006},\r\n            'enderman': {'xp': 1000500},\r\n            'blaze': {'xp': 255}\r\n        },\r\n    ))\r\n\r\n\r\nasyncio.run(main())\r\n```\r\n\r\nExample output of one of the functions, in JSON:\r\n\r\n```json\r\n{\r\n  \"total\": 5902.302984602829,\r\n  \"skill_weight\": 3013.6795988302724,\r\n  \"dungeon_weight\": 2357.485394537336,\r\n  \"slayer_weight\": 531.1379912352199\r\n}\r\n```\r\n\r\n[//]: # (## API)\r\n\r\n[//]: # ()\r\n[//]: # (If you aren't using Python or JavaScript and you need an API, take a look)\r\n\r\n[//]: # (at [lilyweight-worker]&#40;https://lilydocs.antonio32a.com/&#41;.)\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Hypixel SkyBlock Weight Calculator.",
    "version": "0.0.1",
    "split_keywords": [
        "python",
        "hypixel",
        "skyblock",
        "senither weight",
        "weight",
        "senither"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ffdf6bdf847e79b9fc5b39454f781d4e110c3f7bb37406396a46c42ffa63fae",
                "md5": "7326f7e6042e6f6eb332b4c28be8edf2",
                "sha256": "ad40f632c13d87187daaf87cfcd27eceb2aca6297e064571d032cf4847bd7811"
            },
            "downloads": -1,
            "filename": "senitherweight-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7326f7e6042e6f6eb332b4c28be8edf2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10495,
            "upload_time": "2023-01-03T21:19:44",
            "upload_time_iso_8601": "2023-01-03T21:19:44.613720Z",
            "url": "https://files.pythonhosted.org/packages/5f/fd/f6bdf847e79b9fc5b39454f781d4e110c3f7bb37406396a46c42ffa63fae/senitherweight-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c2ea8120a6a6d7df3260edbc1cbaa1ae5a79ab10caa47fa83dbc8ed8ee83f86e",
                "md5": "9c8eca3f8d05fc554cfd79e89006823c",
                "sha256": "00967ebfe0d9cf844ede07b78ae75a8741e2f5cd6415e4df93431d49044dc16b"
            },
            "downloads": -1,
            "filename": "senitherweight-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "9c8eca3f8d05fc554cfd79e89006823c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9886,
            "upload_time": "2023-01-03T21:19:46",
            "upload_time_iso_8601": "2023-01-03T21:19:46.582290Z",
            "url": "https://files.pythonhosted.org/packages/c2/ea/8120a6a6d7df3260edbc1cbaa1ae5a79ab10caa47fa83dbc8ed8ee83f86e/senitherweight-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-03 21:19:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "senitherweight"
}
        
Elapsed time: 0.02366s