Hachi NIO protocol lib for Python
Project description
Hachi NIO protocol lib for Python
Hachi Protocol is a lightwight network I/O socket communication format to transfer data between applications based on my old project irineu/eight-protocol initialy designed for NodeJS only.
for
Objective
When you test a simple socket communication, in the more of times everything works fine, but when your project grow up, after publish and test with remote and bad connections, you will get some problems with truncated messages or messages with extra data (part of the next message). It is normal. You'll need create a protocol to handle this situation, maybe implement a header or a terminator (bad ideia), maybe you are already frustated with that notice.
The Hachi Protocol is an implementation plug-and-play of a transparent protocol for handle those situations for you, and the most important: it does not change your code too much. The protocol itself is encapsulated in this library and you can do your business stuff without take care about the bits (like the HTTP protocol).
The message transfered is distributed in two sections:
Header
A Key/Value object to identify the message (parameter: transaction, id, token, type, etc...), you can set any object.
Body
Binary Data, you can pass anything here
Quick Start
TODO
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
Built Distribution
Hashes for hachi_nio-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e3877c623c77f3b8856edd8934f2653de95fc503451ed9bca7dac1d2715b838 |
|
MD5 | dd53ef9eed93ff02162c1aead1a4fd80 |
|
BLAKE2b-256 | 47652ea1b6bf1ef28fc64047d088746df8e4a3390de2d6ec6b1f99331b0092bb |