Skip to main content

httping

Sockets, but updated, better, lighter, 100% stronger — no limits on packet sending.

import httping

resp = httping.HTTPClient().get("https://example.com")
print(resp.status, resp.text()[:50])

Install

pip install httping

Quickstart

Connection (raw socket)

from httping import Connection

conn = Connection.connect("example.com", 80)
conn.send_all(b"GET / HTTP/1.1\r\nHost: example.com\r\n\r\n")
data = conn.recv_all()
print(data)

HTTP client

from httping import HTTPClient

c = HTTPClient()
resp = c.get("https://api.example.com/data")
print(resp.ok, resp.json())

HTTP server

from httping import HTTPServer, Response

app = HTTPServer(port=8080)

@app.get("/")
def home(req):
    return Response.text("hello!")

@app.get("/data")
def data(req):
    return Response.json({"key": "value"})

app.serve()

No packet limits

  • send_all() — keeps sending until every byte is written
  • recv_all() — reads until the peer closes
  • recv_exact(n) — reads exactly n bytes
  • recv_until(delim) — reads up to a delimiter (with PayloadTooLarge guard)

All recv* methods handle partial reads internally.

Metadata

Release files for pyhttping 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 pyhttping 0.1.1
File Size Uploaded Provenance Actions
pyhttping-0.1.1.tar.gz 7.3 kB Without provenance Details for pyhttping-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyhttping 0.1.1
File Interpreter ABI Platform Actions
pyhttping-0.1.1-py3-none-any.whl Python 3 none any Details for pyhttping-0.1.1-py3-none-any.whl

Total release size: 15.5 kB

Release files / pyhttping-0.1.1.tar.gz

Download URL pyhttping-0.1.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a3762bce591e6f1b987b0f8abefbff652d74a6f97f900220824d09f9a0e359af
BLAKE2b-256 checksum
How to use checksums
8dfd719b65dac3df6941b80a7cd527b00e6971117206817d82e262b3033f8e41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / pyhttping-0.1.1-py3-none-any.whl

Download URL pyhttping-0.1.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9482a45c21d7f4e0680fb780ded41d192d192985949ab60761ecb8ed731006e3
BLAKE2b-256 checksum
How to use checksums
2c3a44e2f8b72a7a7979bff9ee35e415c7a3a8204120887a691b2f7882a0b0a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for pyhttping 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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