Skip to main content

The TCP network protocol provides a bidirectional stream of data between two network applications, but it turns out that most protocols do not use the communication link as a stream. In most network protocols, the stream is chopped up into individual units. The name given to these units varies by protocol: some call it a packet; in others, it’s a record; and many protocols actually use plain text, separating the units with carriage return/newline pairs. Regardless of the name, however, the vast majority of protocols impose some sort of separation onto the stream of data and only deal in whole units.

The Framer library is a network communications library, built on top of asyncio, for managing these units, which it calls frames. The Framer library is built as an asyncio protocol which also happens to implement the behavior of an asyncio transport. The protocol object can have framers set on both directions of the communication; these framers translate between the stream interface provided by TCP and the sequence of frames desired by the application.

A framer is simply an object implementing a couple of methods which implement the transformation from a stream to a frame and from a frame to a sequence of bytes to transmit on the stream. These framers can range from rather trivial–as in a text-oriented protocol like SMTP–all the way to a complex binary data transmission protocol such as some forms of RPC.

Release files for framer 0.1.1

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

Source distribution (sdist)

Source distribution for framer 0.1.1
File Size Uploaded
framer-0.1.1.tar.gz 30.3 kB Details

Release files / framer-0.1.1.tar.gz

Download URL framer-0.1.1.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3177d933c8cb086b0cfda00e7da9c5f8f08e0689a0d5b5fbedb93c86af708d22
BLAKE2b-256 checksum
How to use checksums
1911b551fe240404fa52f2813a1e28210076acf5243079edb3efefa2fd2fb711
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

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