{"repo":"EndstoneMC/raknet-python","free":true,"listed":false,"github":"https://github.com/EndstoneMC/raknet-python","clone":"git clone https://github.com/EndstoneMC/raknet-python.git","description":"Python bindings for the RakNet networking library with synchronous and asyncio APIs","language":"Python","stars":71,"topics":["raknet","networking","bedrock","minecraft","asyncio","udp"],"license":"BSD-3-Clause","category":"networking-infra","readme_excerpt":"raknet Python bindings for RakNet, the UDP networking library used by Minecraft Bedrock. It ships a faithful binding of RakNet's public API and a pythonic layer on top of it, with both a synchronous and an asyncio interface. Installation Requires Python 3.12 or newer. Prebuilt abi3 wheels are published for Windows and Linux (x86-64); a single wheel works across all supported Python versions. The three layers Module Interface Use it for --- --- --- raknet synchronous blocking servers and clients, threads raknet.asyncio asyncio event-loop applications; mirrors the sync API with await raknet.raw faithful C++ binding direct access to RakPeerInterface and every RakNet type The two high-level layers share one connection model: a Peer accepts and initiates connections, and each Connection is a message pipe with send / recv . Anything the high-level layer does not cover is reachable through peer.raw . Quick start Server Client asyncio The asyncio layer is the same API with await in front; per-call timeouts are left to asyncio.timeout() . Server-list ping More runnable programs are in examples/. Messages send and recv move bytes verbatim; there is no added framing. RakNet reads the first byte of every packet as a message id and only delivers packets whose id is a user id ( = 0x86 , ID USER PACKET ENUM ). Lower ids are consumed as RakNet's own control traffic, so each payload must begin with a user id. Minecraft Bedrock uses 0xFE . Reliability, priority and the ordering channel are per","default_branch":null,"files":null,"tree":[],"storefront":"/r/EndstoneMC","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/EndstoneMC/raknet-python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}