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-0.0.1.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-0.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: liblocator-0.0.1.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-0.0.1.tar.gz
Algorithm Hash digest
SHA256 41c8c1df310a4037328b1a343f8f84cdd2b440cdd552330b7fe9308e94355212
MD5 8ec64be0a5c38df980747b122abadbd7
BLAKE2b-256 76d985cee0306bd82bb25ec6864191e473f29ee0d75ce61ee86d37313780cbfc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liblocator-0.0.1-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-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 530a3dd74495fa2cfbc3cd6275ac8dbf1ef8d18a56402faf2d0f875ec3c9d4f7
MD5 dc1ee13d51075b2858507091058fb531
BLAKE2b-256 11c9b0f1c4a9ab959591d067bbe265d20b309ec21fac7ee4432826d68726533c

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