protocol
protocol copied to clipboard
An ASCII Header Generator for Network Protocols
Added a way to list the included protocols without having to access the documentation to see the supported protocols.
In this protocol, `d` is mis-drawn as 8 bits when it's specified as 16. ``` ./protocol "a:64,b:8,c:16,d:16" 0 1 2 3 0 1 2 3 4 5 6 7 8...
For example: ./protocol "pos_x:32, pos_y:32, pos_z:32" ``` 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8...
this allows base=8 for octal numbers (bits of each byte) and base=16 for hexadecimal. The delimiter in arguments is »:«, why not in options too?
.. rather than immediately printing them, they can then be referenced by name on the commandline. For simplicity, I use the ';' as the separator between name and specification. If...
silence lots of warnings. tweak setup.py to work with multiple top-level files. add unicode box characters and --ascii, --unicode