A script that outputs realtime stats for custom lists of friends you create.
Project description
hypickle
A script that outputs realtime stats for custom lists of friends you create.
Installation:
To install, run the following command:
pip install hypickle
Besides installing the script, this will also automatically install its dependencies (the libraries requests
,
rich
, mplcursors
, deepdiff
, and any of their own dependencies).
Then, create a new folder that will be used to store persistent information (such as friends lists you create). In this folder, make a textfile called 'api-key.txt', and paste your hypixel api key as the first line.
- To get this api key, make a hypixel developer account. The first part of this guide is helpful to do this.
After setting this up, you will be able to open a terminal window in this directory and run various commands
with the hypickle
script (explained below).
Main features:
- Basic usage is to run with
hypickle *username/uuid*
- This will output stats for the specified player, and then output any friends for them.
- Since the
friends
endpoint of hypixel's API was deprecated, you must manually add any friends for them you want. To do this, runhypickle addfriends *username/uuid*
- If there's a player you run the program on often, consider making an alias for their uuid:
- Run
hypickle updateuuidaliases *username*
- Then when running
hypickle *username*
, the program will automatically substitute the username for the uuid. This is useful when running the program in quick succession for the same player, since the hypixel api forces a cooldown when sending in a username instead of a uuid.
- Run
- You can also add an optional argument called 'all', if you'd like to output all friends (not just those currently online).
- E.g.,
hypickle *username/uuid* all
- E.g.,
Developer commands:
Open the root directory of the project in the terminal, and then:
python3 main.py *args*
allows you to test any local changes you've made to the project.vulture .
will find unused code.mypy .
will typecheck.pylint *.py
will review the code for style.pydeps hypickle
will output a dependency graph of the project's modules.python unused-funcs.py
is a basic script I wrote that attempts to find functions which are never/rarely used.pytest tests.py
runs a few basic automated tests. Requires installingpytest
. To run manual tests (output to the screen needs to be judged by the tester), runpython tests.py
.
Acknowledgements:
The hypixel.py
and leveling.py
files were originally from Snuggle's repo. Since then I have made a number of modifications to them.
Project details
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
File details
Details for the file hypickle-1.1.3.tar.gz
.
File metadata
- Download URL: hypickle-1.1.3.tar.gz
- Upload date:
- Size: 35.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa3fc2624dd4e63da2e5e0d52f473ebca5506a308513d4a76747696f245b592 |
|
MD5 | cc7d2ee4c1793112f9b5c16d567573cf |
|
BLAKE2b-256 | 5450ce1ee4de82e2152e00f118c31fd0021440f15f2a91849c9ad5edaee9c84f |
File details
Details for the file hypickle-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: hypickle-1.1.3-py3-none-any.whl
- Upload date:
- Size: 39.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8878c923f71e0039e000c7e4b809bb9ab23260581e5149095c6a2bfcafe13474 |
|
MD5 | 42d67411d25e74deff69ce6ea6ce698a |
|
BLAKE2b-256 | ee98bea28fc0e72d65b1df67feb7422c4aea9676fa7dd26e12258a898c4111c3 |