Skip to main content

bedrockpy

Minecraft: Bedrock Edition Websocket Server

bedrockpy lets you create a websocket server that is able to interact with a player in a Minecraft game. As the name suggests: this project only works with the "Minecraft: Bedrock Edition".

Documentation Status License PyPI PyPI - Downloads

Quick Links

"Show me some Code"

Code says more than a thousand words.

from bedrock.server import Server

app = Server()

@app.server_event
async def ready(ctx):
    print(f"Ready @ {ctx.host}:{ctx.port}!")

@app.game_event
async def block_broken(ctx):
    await ctx.server.run(f"title @a title Who destroyed {ctx.id}?!")

app.start("localhost", 6464)

Please refer to the "Introduction" section in the documentation in order to get started with bedrockpy.

Requirements

  • Python 3.10 or greater
  • pip (usually comes with Python)
  • Minecraft (not Java Edition) (any version)1

Installation

You can install/upgrade bedrockpy with the following command:

pip install -U bedrockpy

If you are not using Windows, you may as well enable uvloop which speeds up the server:

pip install -U "bedrockpy[fast]"

NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG.

  1. This only applies to the client connecting to the server. ↩

Metadata

Release files for bedrockpy 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bedrockpy 1.0.1
File Size Uploaded Provenance Actions
bedrockpy-1.0.1.tar.gz 16.2 kB Without provenance Details for bedrockpy-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bedrockpy 1.0.1
File Interpreter ABI Platform Actions
bedrockpy-1.0.1-py3-none-any.whl Python 3 none any Details for bedrockpy-1.0.1-py3-none-any.whl

Total release size: 34.9 kB

Release files / bedrockpy-1.0.1.tar.gz

Download URL bedrockpy-1.0.1.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
09079e1db0a9cb73688834af86b9d1a9c2db929808e582137dc49bce8f92db49
BLAKE2b-256 checksum
How to use checksums
5cb720f35a6a970e25e90d303d09e8f54f04b4f12256835a662776940823b0c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.11.12 Linux/6.14.9-arch1-1

Release files / bedrockpy-1.0.1-py3-none-any.whl

Download URL bedrockpy-1.0.1-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00389da0d7f0eb135c02f26d972e4d3593ed2a6e0768c2d4b078a68234398cbe
BLAKE2b-256 checksum
How to use checksums
2a86aac3f5b956b16703f11be675a693bb391108de397217f94bb9afa5a439c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.11.12 Linux/6.14.9-arch1-1

Security for bedrockpy 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page