Skip to main content

Get the locator bar colour of any minecraft player

Project description

liblocator

A small Python library to fetch the locator bar colour of any Minecraft player!

Usage

In the terminal, run:

liblocator-cli <username>

to get the colour of a player. You can use liblocator as a library, like this:

import liblocator
colour = liblocator.getDotColour("lostssss")

which returns a list like this:

['#8aadc1', [138, 173, 193]]

(which is hex code + RGB).

Multiple Usernames

Separate multiple usernames with commas, like this:

liblocator-cli Grian,PearlescentMoon

Hex-Only Output

The --hex flag makes liblocator simply print the hex code of the player's locator bar dot, and nothing else, like this:

liblocator-cli Smallishbeans --hex

this can be useful to embed liblocator in projects made in other languages.

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

liblocator-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

liblocator-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file liblocator-1.0.0.tar.gz.

File metadata

  • Download URL: liblocator-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for liblocator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 80383d2f692b69c02c3bafb86505f052f93681697beb704ba5ec17b015500ddc
MD5 52638b5b102c86962aa80a5e1d3cae0c
BLAKE2b-256 69911371e926b2aeb9741e276cb60d5d66eebb8df35dae0d51c5edf0fd006d27

See more details on using hashes here.

File details

Details for the file liblocator-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: liblocator-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for liblocator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbbfaa75f78661765b65b3f5c24973f425256f094398e862596fca8775ca1c6b
MD5 7b144470178398bf948698e7e8ff72ab
BLAKE2b-256 938cc9b985d1fabc09d4ed1c0d47d3c45f139bba1674a3d309ae6c6b46878bfd

See more details on using hashes here.

Supported by

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