Library providing an interface to minecraft-data
Project description
minebase
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58b818988a18b9d226318ee41cfb0099b54856747728d8fbb3010d8958657ac8
|
|
| MD5 |
876348af83ea6c5e6e50d5355aa8feca
|
|
| BLAKE2b-256 |
19622ab7d00106cae063bb0327b98015663dc6ce91d293658dd7286332d520ac
|
Provenance
The following attestation bundles were made for minebase-0.2.0.tar.gz:
Publisher:
publish.yml on py-mine/minebase
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
minebase-0.2.0.tar.gz -
Subject digest:
58b818988a18b9d226318ee41cfb0099b54856747728d8fbb3010d8958657ac8 - Sigstore transparency entry: 363094905
- Sigstore integration time:
-
Permalink:
py-mine/minebase@0b8250383ecd61941e60b74af2e804dedbf23ed1 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/py-mine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0b8250383ecd61941e60b74af2e804dedbf23ed1 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba0fbd01c5fc69640692ebf123424a9960407eeac5bf2310f919102ffd6f50c7
|
|
| MD5 |
e5305f6d73085c9c962d3578501fff7d
|
|
| BLAKE2b-256 |
2d108226602bdaff5e9d06bcdf559a9f85dc8c4a0b5995539f041e477df1ffd3
|
Provenance
The following attestation bundles were made for minebase-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on py-mine/minebase
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
minebase-0.2.0-py3-none-any.whl -
Subject digest:
ba0fbd01c5fc69640692ebf123424a9960407eeac5bf2310f919102ffd6f50c7 - Sigstore transparency entry: 363094916
- Sigstore integration time:
-
Permalink:
py-mine/minebase@0b8250383ecd61941e60b74af2e804dedbf23ed1 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/py-mine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0b8250383ecd61941e60b74af2e804dedbf23ed1 -
Trigger Event:
push
-
Statement type: