Skip to main content

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.

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, run hypickle addadditionalfriends *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.
  • 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

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 main.py 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 installing pytest. To run manual tests (output to the screen needs to be judged by the tester), run python tests.py.

Acknowledgements:

The hypixel.py and leveling.py files were originally from https://github.com/Snuggle/hypixel.py/. 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

hypickle-1.1.1.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

hypickle-1.1.1-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

Details for the file hypickle-1.1.1.tar.gz.

File metadata

  • Download URL: hypickle-1.1.1.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for hypickle-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4ff87251c1e9f67bc4cf8bfd675d9a073e5f61dcc88219559ce0795d56980cb4
MD5 02cf8ab3da65c041319e06b2fe6760eb
BLAKE2b-256 c057de17ec14ee0c8623d50008554c894aa056c4b9d10b237df4510253e068d0

See more details on using hashes here.

File details

Details for the file hypickle-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: hypickle-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 37.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for hypickle-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c0b38fe52f338aa5ba944cfe0ca9724c1f31f7b9aa688e3859ffaa642bfb66b
MD5 3c389c136e1a3d8bfbea27fb4bf818c1
BLAKE2b-256 804b05fafc60dd8884c3a0cbb85775cb5059e38d9b2f698d17648370823b1855

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page