Source code: Lib/socket.py This module provides access to the BSD socket interface. It is available on all modern Unix systems, Windows, MacOS, and probably additional platforms. Availability: not ...
Useful methods for working with http.client, completely decoupled from code specific to urllib3. At the very core, just like its predecessors, urllib3 is built on top of http.client – the lowest le...
The socket is one of the most crucial primitives for systems communication. It is the endpoint on which an application can send and/or receive information, either between processes on the same system, or to any other network-connected system. Tens or perhaps even hundreds were used behind the scenes for the simple task of getting this blog post to reach your screen. They are a fundamental aspect of how applications and systems communicate with each other.
Дополняемый список способов запустить веб-сервер на Python: socketserver, http.server, asyncio, wsgiref, etc...
What is an event loop? What event loops are good for? How to implement an event loop in Python in less than 100 lines of code.
В статье рассматривается пошаговая реализация простого HTTP/1.1 сервера на Python
A list of practical knowledge-building projects. Contribute to arpit-omprakash/100ProjectsOfCode development by creating an account on GitHub.
A practical introduction to network programming, from socket configuration to network buffers and HTTP connection modes.
A backport of os.sendfile() for Python 2.6 and 2.7 - giampaolo/pysendfile
How to check host availability with AWS Lambda and minimal footprint
When building an application which talks to some dependencies over the network it's generally recommended to always specify timeouts[^default-timeouts]. This...
sendfile(2) is a UNIX system call which provides a
Last time I wrote about UDP, a simple but unreliable abstraction over IP. For reliable data transfer, the key protocol is TCP. However, this reliability comes at a cost: TCP is significantly more complicated than UDP. Rather than slog through RFC 793, we can start by looking at Python’s socket library. This is just a Pythonic wrapper around BSD sockets. These allow you to interact with network interfaces more-or-less as if they were files (e.g. with read and write, or their counterparts recv and send).
How to use Python to query a dns name and return the list of IPs