rabbit666666 / protocolite

protocol file generator for python and lua.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A tool for generate net message from protocol define to lua table or python dict. now, it only support generate Python and Lua.

  • protocol define in python.
  • output python and lua code for parsing and serializing.
  • the setter function will check input type.

An example of protocol define.

class Apple:
    name: str
    weight: float
    size: float

class Pair:
    name: str
    weight: float
    size: float

class Basket:
    apples: [Apple]
    pairs: [Pair]

About

protocol file generator for python and lua.


Languages

Language:Python 95.7%Language:Lua 4.3%