Skip to main content

NioFlux

A lightweight asynchronous scalable TCP frame protocol server.

Installation

pip install -U nioflux

or

uv add -U nioflux

Develop you tcp frame protocol server

import asyncio

from nioflux import Server, StrDecode, StrEncode, PipelineStage


class MyProtocolHandler(PipelineStage):
    def __init__(self):
        super().__init__()

    async def __call__(self, data, extra, err, fire, io_ctx):
        print('Recv:', data)
        return data, extra, err, fire


async def main():
    server = Server([StrDecode(), MyProtocolHandler(), StrEncode()])
    print('Server: ', server)
    await server.run()


if __name__ == '__main__':
    asyncio.run(main())

Metadata

Release files for nioflux 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nioflux 0.0.2
File Size Uploaded
nioflux-0.0.2.tar.gz 17.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nioflux 0.0.2
File Interpreter ABI Platform
nioflux-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 37.9 kB

Release files / nioflux-0.0.2.tar.gz

Download URL nioflux-0.0.2.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d9523297be5d13aeb13ed3c223233e11e7ecf4cd07f9c40d530a0c654ceabab4
BLAKE2b-256 checksum
How to use checksums
2f08777cb5c97203c39783dea661fe11f5f608e53e121c3506d18f8d4789c179
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release files / nioflux-0.0.2-py3-none-any.whl

Download URL nioflux-0.0.2-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d24df0149b4310d630d9b5f7cf675a66ac59ef7668244c363a62418ac8453eaa
BLAKE2b-256 checksum
How to use checksums
6a09411d2b9357b8fde99d8a9ca91431193ce56acde8941c0c32a15676699d6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page