mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
44 lines
1.4 KiB
ReStructuredText
44 lines
1.4 KiB
ReStructuredText
Network Applications
|
||
====================
|
||
|
||
|
||
|
||
HTTP
|
||
::::
|
||
|
||
The Hypertext Transfer Protocol (HTTP) is an application protocol for
|
||
distributed, collaborative, hypermedia information systems. HTTP is the
|
||
foundation of data communication for the World Wide Web.
|
||
|
||
Requests
|
||
--------
|
||
|
||
Python’s standard urllib2 module provides most of the HTTP capabilities you
|
||
need, but the API is thoroughly broken. It was built for a different time —
|
||
and a different web. It requires an enormous amount of work (even method
|
||
overrides) to perform the simplest of tasks.
|
||
|
||
Requests takes all of the work out of Python HTTP — making your integration
|
||
with web services seamless. There’s no need to manually add query strings to
|
||
your URLs, or to form-encode your POST data. Keep-alive and HTTP connection
|
||
pooling are 100% automatic, powered by urllib3, which is embedded within
|
||
Requests.
|
||
|
||
- `Documention <http://docs.python-requests.org/en/latest/index.html>`_
|
||
- `PyPi <http://pypi.python.org/pypi/requests>`_
|
||
- `GitHub <https://github.com/kennethreitz/requests>`_
|
||
|
||
|
||
Distributed Systems
|
||
::::::::::::::::::::
|
||
|
||
|
||
ZeroMQ
|
||
------
|
||
|
||
ØMQ (also spelled ZeroMQ, 0MQ or ZMQ) is a high-performance asynchronous
|
||
messaging library aimed at use in scalable distributed or concurrent
|
||
applications. It provides a message queue, but unlike message-oriented
|
||
middleware, a ØMQ system can run without a dedicated message broker. The
|
||
library is designed to have a familiar socket-style API.
|