Library for creating servers and clients Minecraft Java Edition
Project description
pyCubes
pyCubes is a library for creating servers and clients Minecraft Java Edition.
❗ 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()
After that add a low-level handler:
async def process_handshake(packet_id: int, packet: cubes.ReadBuffer):
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('127.0.0.1', 25565)
A more detailed example can be found here.
All packages are described here.
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.3.1.tar.gz
(11.2 kB
view details)
Built Distribution
pyCubes-0.3.1-py3-none-any.whl
(12.4 kB
view details)
File details
Details for the file pyCubes-0.3.1.tar.gz
.
File metadata
- Download URL: pyCubes-0.3.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.10.0 Linux/5.11.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3d736dc664f1996891bc32153b10d400c40882eb22deb282ce83ec3c16346c7 |
|
MD5 | c64566cde069a447c078101f704529e9 |
|
BLAKE2b-256 | 2b36439fceda1cdf77ad94ffdecb3709c2b97e524996dfd3e4990e8a6633a785 |
File details
Details for the file pyCubes-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: pyCubes-0.3.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.10.0 Linux/5.11.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d298099ed3314fe56496af724d05bb1e786f9b648653b8efaf86c769a3856a59 |
|
MD5 | 9ae899ccffe879fc60f0eaa8e5384e92 |
|
BLAKE2b-256 | cf2d1749309503c316a53c04316a30ed3149382dd070f958a0022b6f7a736205 |