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!

fast and lightweight HTTP client written in pure Python

Project Description

HTTQ is a fast and lightweight HTTP client written in pure Python and distributed under the Apache 2 license. It is contained within a single file module with no external dependencies so it can be easily dropped into existing projects.

The HTTP class has separate methods for sending requests and receiving responses. This decoupling allows multiple requests to be pipelined on a single connection prior to the corresponding responses being read.

Example Code

Open an HTTP connection to http.io on port 8080, send a GET request to /hello and obtain the response content:

>>> from httq import HTTP
>>> http = HTTP(b"httq.io:8080")
>>> print(http.get(b"/hello").response().content)
hello, world

Get the same content using a full URL on a single-use connection:

>>> from httq import get
>>> print(get(b"http://httq.io:8080/hello").content)
hello, world
Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1

History Node

0.0.0

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
httq-0.0.2.tar.gz (10.1 kB) Copy SHA256 Checksum SHA256 Source May 19, 2015

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