Skip to main content

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

pip install hachi-nio

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

hachi_nio-0.0.5.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file hachi_nio-0.0.5.tar.gz.

File metadata

  • Download URL: hachi_nio-0.0.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for hachi_nio-0.0.5.tar.gz
Algorithm Hash digest
SHA256 298e9c321ca0386089f97038e2c4ac8e3a0970b9b52878ef4c1172ed1401eed4
MD5 84e9adc902ba4a285cabdc3fa4da4dc9
BLAKE2b-256 b8d8fabbf0ac2a2c57f5ea23a66c73d6ccc26f19c52a5a6d09ed7685c9e3866d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page