PyBedrock Net
PyBedrock Net is a Python networking toolkit for building Minecraft Bedrock Edition clients, bots, server tools, and protocol experiments. It is created and maintained by ZENKAI with a focus on a clean API, simple scripts, and protocol code that can grow without becoming difficult to use.
The project is organized around the complete Bedrock client journey:
- Client and sessions — simple client configuration, connection lifecycle, and reusable sessions.
- RakNet and transport — UDP transport, connection handling, reliability, fragmentation, compression, and packet flow.
- Protocol and packets — codecs, VarInts, readers, writers, registries, version resolution, handshakes, login, gameplay, movement, chat, commands, inventory, player, and world packets.
- Authentication — offline mode plus the foundations for Microsoft/Xbox account sessions and token management.
- World data — chunks, subchunks, palettes, blocks, cache, and world state.
- Entities and players — entity models, metadata, tracking, and player state.
- Bots and automation — movement, navigation, actions, and controllers.
- Events and discovery — event dispatching, server ping, and protocol detection.
The package is intentionally built in tested layers: low-level binary primitives first, then transport and protocol packets, then high-level client and bot APIs. This makes it useful for both a quick server script and a larger Bedrock automation project.
Install
pip install pybedrock-net
Command line
bedrock-ping play.example.com
bedrock-ping play.example.com --port 19132 --timeout 5
Python
from pybedrock_net import BedrockClient
client = BedrockClient("play.example.com", 19132)
status = client.ping()
print(status.description, status.players_online, "/", status.players_max)
The current release provides a real RakNet unconnected ping/pong flow, a reusable UDP transport, binary codecs, and server status parsing. Full authenticated login, encrypted Xbox sessions, reliable framed gameplay packets, and world/chunk decoding are being expanded behind tested APIs in upcoming releases rather than being presented as finished prematurely.
Author
ZENKAI
- TikTok: https://www.tiktok.com/@s_xwn?_r=1&_t=ZS-994W6rldVjQ
- YouTube: https://www.youtube.com/@szewq
- Telegram: https://t.me/s_xwn
Development
python -m pytest
python -m build
MIT licensed.
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 pybedrock_net-0.1.5.tar.gz.
File metadata
- Download URL: pybedrock_net-0.1.5.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7351ba7df46f80a3d1e72123d59558820932607ce13a02704b180c402ab1338b
|
|
| MD5 |
d2293192d8497ac9cf34a3ab11aa318b
|
|
| BLAKE2b-256 |
2d1c5200bcd6e1fda0bf33b42e89ee352135c13238c540f4039d1eee01597dfe
|
File details
Details for the file pybedrock_net-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pybedrock_net-0.1.5-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3a9b7d83bb8c58a8f060e637f71c1cd2c2b6afb5a4812375629c385c8ed7a71
|
|
| MD5 |
0bc2a2ec1c6da42f30ecfa31e0024d7c
|
|
| BLAKE2b-256 |
91012a30b8a03f089f7dba5cb2238757184f00091a5610873c8d04984ba0b661
|