Skip to main content

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

Project details


Download files

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

Source Distribution

httq-0.0.2.tar.gz (10.1 kB view details)

Uploaded Source

File details

Details for the file httq-0.0.2.tar.gz.

File metadata

  • Download URL: httq-0.0.2.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for httq-0.0.2.tar.gz
Algorithm Hash digest
SHA256 867444a682a4e0c87271a48d0e87725dd5a711f8ebb9876dba2493b5e73a1947
MD5 d3ede7959335831f34a4ce9104e1c326
BLAKE2b-256 3879a805e7b94122d85646486f10e7064386db7d2c552ed52319f82638c1fa23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page