Skip to main content

Library for creating servers and clients Minecraft Java Edition

Project description

pyCubes

PyPI PyPI - Python Version PyPI - License Downloads

Test Lint codecov

Code style: black Imports: isort


Documentation


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)

Uploaded Source

Built Distribution

pyCubes-0.3.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

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

Hashes for pyCubes-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a3d736dc664f1996891bc32153b10d400c40882eb22deb282ce83ec3c16346c7
MD5 c64566cde069a447c078101f704529e9
BLAKE2b-256 2b36439fceda1cdf77ad94ffdecb3709c2b97e524996dfd3e4990e8a6633a785

See more details on using hashes here.

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

Hashes for pyCubes-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d298099ed3314fe56496af724d05bb1e786f9b648653b8efaf86c769a3856a59
MD5 9ae899ccffe879fc60f0eaa8e5384e92
BLAKE2b-256 cf2d1749309503c316a53c04316a30ed3149382dd070f958a0022b6f7a736205

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page