minebase


Nameminebase JSON
Version 0.1.2 PyPI version JSON
download
home_pageNone
SummaryLibrary providing an interface to minecraft-data
upload_time2025-08-06 13:40:06
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords data minecraft
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # <img src="https://i.imgur.com/nPCcxts.png" height="25" style="height: 25px"> minebase

[![discord chat](https://img.shields.io/discord/936788458939224094.svg?logo=Discord)](https://discord.gg/C2wX7zduxC)
![supported python versions](https://img.shields.io/pypi/pyversions/minebase.svg)
[![current PyPI version](https://img.shields.io/pypi/v/minebase.svg)](https://pypi.org/project/mcproto/)
[![CI](https://github.com/py-mine/minebase/actions/workflows/main.yml/badge.svg)](https://github.com/py-mine/minebase/actions/workflows/main.yml)

Minebase is a python wrapper around [`PrismarineJS/minecraft-data`](https://github.com/PrismarineJS/minecraft-data). It
provides python bindings to access minecraft data useful for custom minecraft clients, servers and libraries.

## Installation

From PyPI (stable):

```bash
pip install minebase
```

From repo (latest):

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

## Usage

```python
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:

```python
['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'}}]}]]
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "minebase",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "ItsDrike <itsdrike@protonmail.com>",
    "keywords": "data, minecraft",
    "author": null,
    "author_email": "ItsDrike <itsdrike@protonmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/09/33/839401f9c402f5d9576d544973b1fd2b54a6a579b174a5dbd372ef302b1a/minebase-0.1.2.tar.gz",
    "platform": null,
    "description": "# <img src=\"https://i.imgur.com/nPCcxts.png\" height=\"25\" style=\"height: 25px\"> minebase\n\n[![discord chat](https://img.shields.io/discord/936788458939224094.svg?logo=Discord)](https://discord.gg/C2wX7zduxC)\n![supported python versions](https://img.shields.io/pypi/pyversions/minebase.svg)\n[![current PyPI version](https://img.shields.io/pypi/v/minebase.svg)](https://pypi.org/project/mcproto/)\n[![CI](https://github.com/py-mine/minebase/actions/workflows/main.yml/badge.svg)](https://github.com/py-mine/minebase/actions/workflows/main.yml)\n\nMinebase is a python wrapper around [`PrismarineJS/minecraft-data`](https://github.com/PrismarineJS/minecraft-data). It\nprovides python bindings to access minecraft data useful for custom minecraft clients, servers and libraries.\n\n## Installation\n\nFrom PyPI (stable):\n\n```bash\npip install minebase\n```\n\nFrom repo (latest):\n\n```bash\npip install git+htps://github.com/py-mine/minebase\n```\n\n## Usage\n\n```python\nfrom minebase import load_version, load_common_data, Edition\nfrom pprint import pprint  # pretty print (for easier readability)\n\ncommon_data = load_common_data(Edition.PC)\nversion_info = load_version(\"1.21.6\", Edition.PC)\n\nstatus_server_bound_packets = version_info[\"protocol\"][\"status\"][\"toServer\"][\"types\"][\"packet\"]\npprint(status_server_bound_packets)\n```\n\nOutput:\n\n```python\n['container',\n [{'name': 'name',\n   'type': ['mapper',\n            {'mappings': {'0x00': 'ping_start', '0x01': 'ping'},\n             'type': 'varint'}]},\n  {'name': 'params',\n   'type': ['switch',\n            {'compareTo': 'name',\n             'fields': {'ping': 'packet_ping',\n                        'ping_start': 'packet_ping_start'}}]}]]\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Library providing an interface to minecraft-data",
    "version": "0.1.2",
    "project_urls": {
        "Source code": "https://github.com/py-mine/minebase"
    },
    "split_keywords": [
        "data",
        " minecraft"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "03454f2c299f6c8c2df70bd3090347502050331ce2425a0f6fd7d4726f560f0b",
                "md5": "bfc95706f7892786a96ee49cc2eb64b8",
                "sha256": "13b3332e2a411836340b69c1e3dea3ff50bac68831b08ce60c4f05be4a801f3e"
            },
            "downloads": -1,
            "filename": "minebase-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bfc95706f7892786a96ee49cc2eb64b8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 20665791,
            "upload_time": "2025-08-06T13:40:03",
            "upload_time_iso_8601": "2025-08-06T13:40:03.488172Z",
            "url": "https://files.pythonhosted.org/packages/03/45/4f2c299f6c8c2df70bd3090347502050331ce2425a0f6fd7d4726f560f0b/minebase-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0933839401f9c402f5d9576d544973b1fd2b54a6a579b174a5dbd372ef302b1a",
                "md5": "4d6ea42d2c9f70cb1c65d23dc40cff8c",
                "sha256": "0ccba2770c29d7a22ced72b30abb9be109d1f7456107c6d98d36400d97c9d9d4"
            },
            "downloads": -1,
            "filename": "minebase-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "4d6ea42d2c9f70cb1c65d23dc40cff8c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 19618497,
            "upload_time": "2025-08-06T13:40:06",
            "upload_time_iso_8601": "2025-08-06T13:40:06.306509Z",
            "url": "https://files.pythonhosted.org/packages/09/33/839401f9c402f5d9576d544973b1fd2b54a6a579b174a5dbd372ef302b1a/minebase-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-06 13:40:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "py-mine",
    "github_project": "minebase",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "minebase"
}
        
Elapsed time: 2.09270s