A NATS protocol parser written in Python
-
This project was created to parse the NATS protocol in order to understand how it works and to be able to create a NATS client from scratch.
-
This project was created to compare the performance of a Regular Expressions parser with a look ahead bytes parser.
git clone https://github.com/charbonats/protocol.git
cd protocol
rye run bootstrapTests can be run using pytest, but it's recommended to use the rye command to collect coverage:
rye run testBenchmarks can be run individually using python -m benchmarks command, but it's recommended to use the rye command to run all benchmarks sequentially and collect results into a single directory:
rye run bench