Library for serializing/deserilizing Minecraft JE packets
Project description
pyCubes
pyCubes is a library for serializing and deserializing Minecraft Java Edition packets.
❗ 0.x versions are not stable. The library API is subject to change.
Installation:
pip install pyCubes
Usage:
First you need to create application instance:
import cubes
app = cubes.Application('127.0.0.1', 25565)
After that add a low-level handler:
async def process_handshake(packet: cubes.ReadBuffer) -> None:
print('Protocol version:', packet.varint)
print('Server host:', packet.string)
print('Server port:', packet.unsigned_short)
print('Next state:', cubes.ConnectionStatus(packet.varint))
app.add_low_level_handler(cubes.ConnectionStatus.HANDSHAKE, 0x00, process_handshake)
All that remains is to launch the application:
app.run()
A more detailed example can be found here.
All packages are described here.
Development
Run formatting:
make format
Run linters:
make lint
Run tests:
make test
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
pyCubes-0.1.1.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file pyCubes-0.1.1.tar.gz
.
File metadata
- Download URL: pyCubes-0.1.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.8.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bfbabf0ec2c5c4ae8d6443f03a47f4ccdd8a67d650944250c311c6f493213d9 |
|
MD5 | fc9b0df04e25c99ac0a374e9c377cc22 |
|
BLAKE2b-256 | 61b7ee9243edc87980f6099fb8aa046df3016e149849643f6f9495ca79c58d60 |
File details
Details for the file pyCubes-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pyCubes-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.8.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65bb36113f756546c93e1b46164d6fe7b4c56bce037fa2f2827017c7355063ec |
|
MD5 | 974f2f25e8dbcbdfbeb2b448e71655ca |
|
BLAKE2b-256 | 431d88be634327a21e994a5005dc4e260105c0c27b36a94c3df65c82462c55d7 |