Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

writes and handle the bytes exchanged on network

Project Description

netbytes

The netbytes module aims to offer an easy way to handle the bytes exchanded beetween server and clients.

Warning

netbytes does not replace the module socket, nor package twisted or alike. It only manages the str exchanged via network ; in fact, you may very well not doing any networking at all, it doesn’t care because technicaly, it has nothing to do with networking, even if designed to operate in such context.

As servers and clients can only exchange str, there is a need to establish an arbitrary convention for representing instructions, informations, data, etc… into str. A common technic, is to reserve the first bytes of the string to this purpose, and the rest of the string to contain data. And even this data must be rigourously encoded by an arbitrary convention… If not properly handled, the readability can quickly be a mess, and a nightmare to maintain.

This is where netbytes aims to be handfull : it creates a tree of all the type of bytes that can be exchanged beetween clients and server from a model easy to understand, and quick to design. The nodes of this tree can then be called to produce a string ready to be sent. And on the reciever side, this string can be processed by the tree, which call the appropriate handler. This way, the programmer spends less time in writing code to decode and interpret the recieved string of bytes, and the source code become a lot more readable, and maintainable.

News

2011-11-20 : a version 2.0 is under construction, it will support python 3 as well, and the docs will be accurate (actually there is little mistakes in it, but nothing really important). I chosed to name the next release 2.0 because the package will be multi-file, therefore requiring a deletion of previous versions. It should come by the end of the month.

Release History

Release History

This version
History Node

1.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
netbytes-1.3.tar.bz2 (92.6 kB) Copy SHA256 Checksum SHA256 Source Nov 19, 2011
netbytes-1.3.win32.exe (204.1 kB) Copy SHA256 Checksum SHA256 any Windows Installer Nov 19, 2011
netbytes-1.3.win-amd64.exe (231.8 kB) Copy SHA256 Checksum SHA256 any Windows Installer Nov 19, 2011
netbytes-1.3.zip (210.1 kB) Copy SHA256 Checksum SHA256 Source Nov 19, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting