Skip to main content

A module to parse Minecraft player information

Project description

MinePlayer

MinePlayer 是一款簡單的模組,提供使用者解析一個 Minecraft 玩家的資訊!

MinePlayer is a simple module that allows users to parse information about a Minecraft player!

INFO:root:=== Create a new player. ===
INFO:root:Player Sam510208 created.
INFO:root:=== Get the player's UUID. ===
INFO:root:Player Sam510208's UUID is 9ea020446a4c4e4686b8e5d0bde8ce56.

特色 (Feature)

  • 簡單易用 (Easy to use)
  • 基於 GNU v3.0 開源 (Open Source based GNU v3.0)
  • 支持所有相容於 CraftAvatar 的玩家頭像服務,並可自行決定 (Supports all CraftAvatar-compatible player avatar services at your discretion)
  • 可取得幾乎所有 CraftAvatar 服務提供的頭像資源,甚至是玩家 Skin! (Get access to almost all avatar assets provided by the CraftAvatar service, even player Skins!)

範例 (Example)

import mineplayer
import logging

logging.basicConfig(level=logging.INFO)

# Create a new player
logging.info("=== Create a new player. ===")
player = mineplayer.MinePlayer("Sam510208")
logging.info(f"Player {player.username} created.")

# Get the player's UUID
logging.info("=== Get the player's UUID. ===")
uuid = player.uuid
logging.info(f"Player {player.username}'s UUID is {uuid}.")

# Get the player's information
logging.info("=== Get the player's information. ===")
info = player.info
logging.info(f"Player {player.username}'s information is {info}.")

範例收錄於 test.py

謝誌 (Thanks)

貢獻 (Countributing)

如果您希望貢獻此專案,我們非常歡迎!請Fork此儲存庫,開啟一個以自己貢獻的內容為名的分支,在該分支上開發。 開發完畢後,在GitHub頁面上提供完整說明,然後我們會盡快幫助您審核

如果您在使用此程式時出了什麼問題,歡迎在GitHub的Issues告訴我們!我們會盡力幫助您的

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

mineplayer-1.0.3.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

MinePlayer-1.0.3-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file mineplayer-1.0.3.tar.gz.

File metadata

  • Download URL: mineplayer-1.0.3.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for mineplayer-1.0.3.tar.gz
Algorithm Hash digest
SHA256 7c046189eaa3266b0d3d814f5d7b849307c257cc800044c0da2c9ddc5eb41bf8
MD5 12a53a97f1133bbbbd68cb4120a9289a
BLAKE2b-256 700362b6b018a47e028e4442626f1b182b12e7899e44049ca77d59636c593619

See more details on using hashes here.

File details

Details for the file MinePlayer-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: MinePlayer-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for MinePlayer-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b6b56b6a5114e31cfb15f4c8327127e5b24232244bd94b5deb7a4cd436c678b5
MD5 6eb14b8f2fac97b9d72c01293dec372f
BLAKE2b-256 0a6da70e7c626538434515329095f5f77f89bcbe37d94b8d50d6750100d85c38

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