Skip to content

FrahHS/protopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProtoPY

ProtoPY, Minecraft protocol in python


Documentation: https://protopy.gitbook.io/protopy/

Source Code: https://github.com/FrahHS/protopy


ProtoPY is a Python library that allows interacting with the Minecraft protocol in a simple and efficient manner.

  • Fast to code: Really quick to develop features, especially if you're already familiar with Bukkit plugin development, packet handling is very similar to event handling.

Installation

$ pip install protopy

Example

  • Create a file main.py with:
from protopy import ProtoPY
from protopy.packets.clientbountpackets import ClientBoundFinishConfigurationPacket


host = 'localhost'
port = 25565
protocol_version = 765

client = ProtoPY(host=host, port=port, protocol_version=protocol_version)

client.login('XSteve')

@client.listener
def on_login(packet: ClientBoundFinishConfigurationPacket):
    print("Connected!")

License

This project is licensed under the terms of the GPL-3.0 license.

About

Minecraft TCP protocol in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published