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.2.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.2.0-py3-none-any.whl (20.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minebase-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 58b818988a18b9d226318ee41cfb0099b54856747728d8fbb3010d8958657ac8
MD5 876348af83ea6c5e6e50d5355aa8feca
BLAKE2b-256 19622ab7d00106cae063bb0327b98015663dc6ce91d293658dd7286332d520ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for minebase-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: minebase-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba0fbd01c5fc69640692ebf123424a9960407eeac5bf2310f919102ffd6f50c7
MD5 e5305f6d73085c9c962d3578501fff7d
BLAKE2b-256 2d108226602bdaff5e9d06bcdf559a9f85dc8c4a0b5995539f041e477df1ffd3

See more details on using hashes here.

Provenance

The following attestation bundles were made for minebase-0.2.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