Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

lothc

Latest version: v0.4.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: rogxx
1 Stars
0 Forks
7 Versions
3.1K Downloads
Python Repo language

Scan summary

lothc was last scanned on 23 Nov 2026 at version 0.4.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 2 were published within 7 days (17–23 Nov 2026).
  • Findings: No rules fired in version 0.4.1.
  • Downloads: 3,058 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.1 LATEST 23 Nov 2026 No rules fired
0.4.0 17 Nov 2026 No rules fired
0.3.0 13 Nov 2026 No rules fired
0.2.3 12 Nov 2026 Not shown
0.2.2 5 Nov 2026 Not shown

No rules fired in 0.4.1

Findings

Findings for v0.4.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.4.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

lothc

PyPI CI CodSpeed codecov Python versions License

Lord Of The Http Clients — a fast, Rust-backed, typed HTTP client for Python, with first-class optional support for pydantic and msgspec as both decode and encode targets.

Installing

uv add 'lothc[pydantic,msgspec]'

(Any subset of the extras works — the base package alone gets you bytes/dict support.)

Quickstart

import asyncio
from lothc import HTTPClient
from pydantic import BaseModel


class Pokemon(BaseModel):
    id: int
    name: str


async def main() -> None:
    async with HTTPClient(base_url="https://pokeapi.co/api/v2/") as client:
        response = await client.get("pokemon/pikachu", into=Pokemon)
        print(response.status, response.data)  # 200 id=25 name='pikachu'


asyncio.run(main())

Why?

pyreqwest is a genuinely great Rust-backed HTTP client, and the inspiration for lothc. Its API is a builder (client.get(url).build() before you can .send()), so lothc gives it the requests/httpx call shape, and adds its own native transport, faster still. pyreqwest stays lothc's transport on Windows, for HTTP/2 and with native="off".

Where other clients' .json() returns an unvalidated dict, lothc decodes straight into a validated pydantic or msgspec type.

Fast

On Linux and macOS, lothc's own native transport (the default) runs async get(into=Struct) at about 2.2x bare pyreqwest under load: 97,501 requests a second, each decoded into a validated msgspec Struct. On its pyreqwest transport (Windows, http2=True, or native="off"), lothc stays close to pyreqwest's own throughput.

HTTP client throughput race — lothc's native transport finishes first, at more than twice pyreqwest's throughput, and other libraries take much longer

50,000 requests at concurrency 100 on an AWS c8a.xlarge, validation included. Full numbers.

Highlights

Typed decoding into= any type expression (Pokemon, list[Pokemon], ...) gives back a validated pydantic BaseModel or msgspec Struct, not a dict.
Two clients, one API HTTPClient (async) and SyncHTTPClient (sync) — identical surface.
Every verb get, post, put, patch, delete, head, options, download (each returning a Response: .data, .status, .headers) — see Verbs.
Typed params, headers & forms A BaseModel/Struct for query params or headers (with None-field omission), or a body sent urlencoded (data=) or as a real multipart form (form=), a file's content read from disk or streamed from an iterator, never held whole — see Verbs.
Precise static types Every verb is paired @overloads, not a cast-laden generic — your editor knows the exact return type.
SSE & streaming Spec-compliant SSE — automatic reconnect with Last-Event-ID, server retry: honored, typed decode (discriminated unions included) — plus raw or NDJSON-typed stream_get/stream_post — see SSE / Streaming.
Retries with real backoff max_retries/retry_methods/retry_statuses, Retry-After-aware, and a retry= rule that can decide each retry — see Retries.
Request hooks request_hook= wraps every attempt at a request, retries and SSE reconnects included, in your own context manager, which can add headers and sees the status: a tracing span per attempt — see Request hooks.
Authentication Static bearer_token, a per-request-refreshed bearer_auth, basic_auth, or default_headers for anything else — plus a ready-made OAuth 2 client-credentials provider (OAuthProvider: mint, leeway-based renewal, refresh-then-mint fallback, optional on-disk token cache) — see Authentication.
Cookies, redirects, proxy cookie_store, follow_redirects/max_redirects, proxy= — see Networking.
A real error hierarchy HTTPTransportError/HTTPTimeoutError/HTTPConnectionError for no response, HTTPResponseError and your own subclasses, chosen by status and body, for 4xx/5xx (or raise_for_status=False to get those back as a Response), HTTPDecodeError for a body that doesn't decode — see Error handling.

Development

See Development.

License

lothc is MIT. It's built on pyreqwest (Apache-2.0), which is built on the Rust crate reqwest (MIT or Apache-2.0). Thanks to both.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases lothc

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229