Skip to main content

Library providing an interface to minecraft-data

Project description

minebase

discord chat supported python versions current PyPI version CI minecraft-data autoupdate

Minebase is a python wrapper around PrismarineJS/minecraft-data. It provides python bindings to access minecraft data useful for custom minecraft clients, servers and libraries.

Installation

From PyPI (stable):

pip install minebase

From repo (latest):

pip install git+htps://github.com/py-mine/minebase

Usage

from minebase import load_version, load_common_data, Edition
from pprint import pprint  # pretty print (for easier readability)

common_data = load_common_data(Edition.PC)
version_info = load_version("1.21.6", Edition.PC)

status_server_bound_packets = version_info["protocol"]["status"]["toServer"]["types"]["packet"]
pprint(status_server_bound_packets)

Output:

['container',
 [{'name': 'name',
   'type': ['mapper',
            {'mappings': {'0x00': 'ping_start', '0x01': 'ping'},
             'type': 'varint'}]},
  {'name': 'params',
   'type': ['switch',
            {'compareTo': 'name',
             'fields': {'ping': 'packet_ping',
                        'ping_start': 'packet_ping_start'}}]}]]

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

minebase-0.3.0.tar.gz (19.7 MB view details)

Uploaded Source

Built Distribution

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

minebase-0.3.0-py3-none-any.whl (20.8 MB view details)

Uploaded Python 3

File details

Details for the file minebase-0.3.0.tar.gz.

File metadata

  • Download URL: minebase-0.3.0.tar.gz
  • Upload date:
  • Size: 19.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for minebase-0.3.0.tar.gz
Algorithm Hash digest
SHA256 086c2bb996fa20004dc9a6712ccc38eb77934a3b3e8d6565cc18f2d91dc91a41
MD5 c2a38b18fbeb9a4d883b1ed2e6db4024
BLAKE2b-256 52680cd265b183b2db0853709ee06dca4e6cb16b6fa66099372bf50a0e50cf4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for minebase-0.3.0.tar.gz:

Publisher: publish.yml on py-mine/minebase

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file minebase-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: minebase-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for minebase-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 093c4b32e13eff0eeace0479fa73aca03b2b3d1ad8995da4b535ba5521aad254
MD5 3bd2677298e382d401fab9666396ec84
BLAKE2b-256 d44bd7f85c6eab9608144625f3b4157919e0e5c40febcb5b6c1e99e923fee4f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for minebase-0.3.0-py3-none-any.whl:

Publisher: publish.yml on py-mine/minebase

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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