Search the archive

14,369 indexed articles, 13,297 of them summarised by us.

Articles
14,369
Research papers
91,965
Models priced
2,253
Providers
163

12 results for “httpx”

Newest and most relevant first

A Python client for Ollama, sync or async, local or cloud

Python developers can now use one identical client to call Ollama models locally or via Ollama's cloud API, removing boilerplate and rewriting when scaling up.

Ollama, a tool that lets people run AI models on their own computers, offers an official Python library called ollama-python. It wraps the model's web interface so a few lines of Python can chat with a model, stream replies, or run code asynchronously. Notably, the same code works whether the model runs on your laptop or on Ollama's cloud servers, including large models like gpt-oss:120b. Python developers building with local AI models are the audience.

Ollama's official Python client (ollama-python) lets teams prototype against models on local hardware and switch to Ollama's cloud API, hosting models like gpt-oss:120b, without rewriting integration code; only the model name, host and auth header change. This reduces engineering overhead versus hand-rolled HTTP calls and avoids lock-in to any single inference vendor's SDK. Companies with Python-based AI services gain flexibility; no pricing or benchmark figures are given.

ollama-python is a thin httpx-based wrapper around the Ollama REST API supporting Python 3.8+. It exposes Client and AsyncClient with identical config fields, returns typed ChatResponse objects accessible via dict-style or attribute syntax, and enables streaming with a single stream=True flag (sync iterables or async generators). Cloud access works via local ollama signin plus pull, or directly against https://ollama.com with a Bearer API key header. Extra kwargs pass through to httpx.Client.

GitHub Opensource Projects →

llm-tools-datasette 0.1.1

Very little; a minor plugin fix for an LLM tool with no major impact.

A software update fixed a problem with a tool that lets AI systems use a database program. The change is small and doesn't affect most users.

A small update to an AI tool, unlikely to affect competition or costs for most users.

A plugin for LLMs was fixed after a dependency break caused by an update to httpx. No major performance changes noted.

Simon Willison’s Weblog →

datasette 1.0a40

Datasette 1.0 is still not stable; the 1.0a40 alpha ships a security fix, a plugin API for background tasks, and an httpx2 migration, but delays a stable release.

Datasette is a free, open-source tool for exploring and publishing data on the web. Version 1.0a40 fixes a security hole, adds a way for plugins to run background tasks, and fixes many bugs. People who publish data using it get a more reliable tool, but the long-awaited stable 1.0 release still hasn't arrived.

Simon Willison released Datasette 1.0a40, an alpha carrying the same security fix as 0.65.5 plus bug fixes from a 1.0 triage effort. Teams running Datasette in production should patch to 0.65.5 or this alpha now. The stable 1.0 release remains unreleased, so migration planning stays on hold; no pricing or adoption figures are given.

Datasette 1.0a40 includes the security fix from 0.65.5, a new datasette.add_background_task() method letting plugins launch and manage background tasks (contributed by Alex Garcia), and a migration of Datasette's internal datasette.client.get() from httpx to httpx2. Many bug fixes stem from a recent issue triage ahead of a 1.0 stable release, which remains pending. No benchmark or performance numbers are provided.

Simon Willison’s Weblog →

Don't sleep on wrapture

Python developers get a free alpha tool that can add unit-test mocking, call recording, timing analysis and OpenTelemetry tracing to live applications without touching any Python code, just a TOML config file.

Wrapture is a free Python tool released on August 31st that can temporarily swap parts of a running program for testing or watching what the program does, a technique called monkey patching. It can record every function call, trace slow code, and send timing data to standard monitoring systems. Python programmers who build, test or debug software can use it, though it is still alpha software.

Graham Dumpleton, the creator of a popular Python web-hosting tool, has released wrapture, an open-source alpha library for instrumenting and testing Python applications. The main draw for teams is zero-code operation: tracing is configured in a TOML file rather than by editing code, lowering adoption risk. It ships with a companion package covering major Python frameworks and exports to OpenTelemetry, a common industry standard, so it could complement or compete with existing paid monitoring setups.

Wrapture is a monkey patching library supporting both unittest.mock-style test mocking and New Relic-style observability. It records call timelines as trees, supports phased behaviour across multiple calls, and can patch attributes, dictionaries and generators as well as callables. Zero-code tracing is configured via TOML, and the companion wrapture-instrumentation package instruments flask, django, fastapi, grpc, httpx, sqlalchemy and roughly 15 other libraries. Traces export to OpenTelemetry; it remains in alpha.

Simon Willison’s Weblog →

llm-anthropic 0.27

Very little directly: the Anthropic Python SDK's 1.0 switch from httpx to httpx2 forced plugin maintainers like Willison to update, mirroring OpenAI's v3.0.0 two weeks earlier.

Simon Willison released version 0.27 of llm-anthropic, a tool that lets people use Anthropic's Claude AI models from the command line. The update was needed because Anthropic released a new 1.0 version of its Python library, which changed how it makes internet requests. OpenAI made the same change to its own library two weeks earlier. Developers using these libraries will need to upgrade.

Anthropic's Python SDK hit 1.0.0, swapping the httpx HTTP library for httpx2, the same shift OpenAI made in its v3.0.0 release two weeks prior. Anyone maintaining code that depends on these SDKs, like the llm-anthropic plugin, must migrate to stay compatible. The change is routine dependency maintenance, not new capability; there is no cost, pricing or risk impact stated.

llm-anthropic 0.27 adds compatibility with anthropic-sdk-python 1.0.0, which replaced httpx with the new httpx2 package. Willison prompted Fable 5 in Claude Code with the SDK's MIGRATION.md URL and instructions to get tests passing, producing PR #84 on the llm-anthropic repository. No benchmark numbers, timelines or limitations beyond the migration itself are given.

Simon Willison’s Weblog →

llm 0.33

Very little changes for most readers: this is a routine minor release of Simon Willison's llm CLI, useful mainly to existing plugin authors and template users.

Simon Willison released version 0.33 of llm, a command-line tool for running and comparing language models. The update lets users pass their own secret keys to embedding commands, stack multiple saved prompt templates together, and control how much reasoning detail models show. People who use llm regularly benefit most.

llm 0.33 is a minor update to a popular free command-line tool for calling AI models, relevant only to teams already using it. It aligns embedding API keys with how regular model keys work, permits reusable model-plus-options templates, and adds a reasoning_summary option. No costs, competitive moves or risks are involved.

llm 0.33 upgrades to the OpenAI Python library 3.x and swaps httpx for httpx2 (#1608, #1631), after a 0.32.1 hotfix. Embedding calls now accept per-call keys: llm embed/embed-multi take --key, and EmbeddingModel.embed(), embed_multi(), Collection.embed() and Collection.embed_multi() accept key= without mutating shared state, with a self.key fallback for old plugins (#757, #1620). Repeating -t/--template combines templates in order, and Responses API models support reasoning_summary of auto, concise or detailed (#1600).

Simon Willison’s Weblog →

llm 0.32.1

Developers using the LLM command-line tool had fresh installs break silently through a transitive dependency; this patch restores them and signals an httpx2 migration in 0.33.

LLM is a free tool that lets people use AI models from their computer's command line instead of a web browser. Version 0.32.1 fixes a problem where brand-new installations stopped working because of a broken dependency, a background software component the tool relied on but didn't install itself. Anyone who installs or updates LLM is affected; the fix pins the OpenAI library below version 3.

A dependency in the popular LLM command-line tool broke fresh installs because the OpenAI Python library dropped its bundled httpx library. The fix is a pin to openai<3, with a proper migration to httpx2 planned for version 0.33. The operational lesson for teams: transitive dependencies, libraries you get second-hand, are a real availability risk. No cost or competitive impact is stated.

llm 0.32.1 patches an install breakage caused by the OpenAI Python library removing its httpx dependency, which LLM relied on transitively without declaring it. The release pins openai<3 as a stopgap. The upcoming 0.33 release will switch from httpx to httpx2. No benchmark or performance figures are given.

Simon Willison’s Weblog →

Opennews Mcp

Developers building crypto trading tools can now get aggregated, AI-scored market data through one MCP server instead of maintaining dozens of scrapers, at the cost of a paid API token.

OpenNews MCP Server is a tool that plugs into AI assistants like Claude Code and gathers cryptocurrency market information in one place. It pulls from 85+ sources, including Bloomberg, CoinDesk, Binance listings, and whale wallet tracking, then adds an AI-written analysis with an impact score and a trading suggestion. It replaces the messy work of building separate data scrapers. Developers who already use AI assistants benefit most, though it requires a paid token from 6551.io, so hobbyists may skip it.

OpenNews MCP is a paid, token-based server (from 6551.io) that consolidates 85+ real-time crypto and finance data feeds behind one interface for AI assistants. Its differentiator is a pre-built AI analysis layer delivering impact scores, long/short/neutral signals, and bilingual summaries, plus 12 pattern-based prediction engines that could cut backtesting time. The vendor publishes a source-audit prompt, a sensible response to MCP supply-chain risk. Gain: small quant teams needing fast market intelligence; loss: those preferring in-house scrapers with full data control.

An MCP server (mcp, httpx, websockets) that exposes six data engines, 55 news sources (Bloomberg, Reuters, ECB), 9 exchange listing feeds (Binance, Coinbase, OKX), Hyperliquid on-chain whale tracking, meme sentiment, market data (funding rates, liquidations), and 12 prediction engines like SMART_MONEY_TRADE and PRICE_SPIKE. Every item passes through an AI layer producing 0-100 impact scores and directional signals. It communicates only with ai.6551.io; no benchmark or performance figures are given.

GitHub Opensource Projects →

Experimenting with Starlette 1.0 with Claude skills

Starlette 1.0 breaks compatibility with training data, but Simon Willison shows Claude can self-generate a Skill from the new release notes to write working 1.0 code.

Starlette, the Python web framework that quietly powers the popular FastAPI, just reached version 1.0. The update changes how apps handle startup and shutdown tasks, so older example code may not work. Because AI assistants learn from older code, Simon Willison taught Claude the new version by having Claude itself build a reference guide, then used it to generate a working task-management app.

Starlette 1.0 shipped in February 2026 with breaking changes, notably replacing on_startup/on_shutdown parameters with an async context manager 'lifespan' mechanism. Since FastAPI runs on Starlette, teams relying on AI-generated code face a training-data gap. Willison's workaround, having Claude build its own Skill document from the repo, offers a repeatable pattern for keeping AI coding current with new framework releases.

Starlette 1.0 (release candidate February 23, 2026) deprecates on_startup/on_shutdown in favor of a lifespan asynccontextmanager. Willison used claude.ai's skill-creator to clone the repo and generate a SKILL.md covering every feature, then prompted a separate chat to build a working app (Starlette 1.0 + aiosqlite + Jinja2), which Claude self-tested via TestClient and httpx against its own API endpoints.

Simon Willison’s Weblog →

Tips for getting coding agents to write good Python tests

Developers using coding agents can directly apply Simon Willison's concrete prompting tactics to get higher-quality Python test suites with less manual cleanup.

Simon Willison, a well-known programmer and writer, shared tips on his blog for getting AI coding assistants like Claude to write good Python tests. His main advice: name specific tools such as pytest-httpx for mocking network calls, and work in a project that already has a clean test suite, because the AI copies existing patterns. He also recommends pointing the agent at an example repository, like his datasette-enrichments project on GitHub, so it can imitate the testing style.

Willison's post argues that AI-written test quality depends mostly on project hygiene rather than clever prompting: agents mirror the patterns already in your codebase. Teams adopting AI coding tools should invest in clean, well-patterned pytest suites before delegating test writing, since duplicated setup code is the main anti-pattern to police. No costs, benchmarks or timelines are given; the value is practical workflow guidance for engineering leads.

Willison works in Python because pytest is heavily represented in model training data, so Claude reliably knows commands like 'use pytest-httpx to mock the endpoints' or 'refactor to pytest.mark.parametrize' and 'extract common setup into a fixture'. The main anti-pattern he flags is duplicated test setup code, which he tolerates less in implementation than tests. His strongest tactic is pasting a prompt telling the agent to clone a reference repo, e.g. datasette/datasette-enrichments, to /tmp and imitate its testing patterns.

Simon Willison’s Weblog →

A new way to extract detailed transcripts from Claude Code

Developers using Claude Code now have a shareable, detailed record of coding-agent sessions, replacing ad-hoc copy-paste workflows for preserving project context.

Simon Willison has released a free Python tool called claude-code-transcripts. It takes the conversation logs from Claude Code, a popular AI coding assistant, and turns them into clean, shareable web pages that show everything the AI did, including its hidden reasoning. Users run one command, pick a session, and get an HTML file they can host anywhere or share via a GitHub Gist. This helps anyone whose project decisions now live inside AI chat logs rather than traditional issue trackers.

Simon Willison's new claude-code-transcripts tool converts Claude Code session logs into shareable HTML pages, and can also pull sessions from Claude Code for web by using a reverse-engineered private API. The business relevance: project context and decision records are migrating from issue trackers into AI chat logs, and teams without such tooling lack an auditable trail of agent work. The web API dependency could break if Anthropic changes it.

claude-code-transcripts is a Python CLI (click, Jinja2, httpx, questionary) that renders local Claude Code session JSON into paginated HTML with thinking traces, runnable via 'uvx claude-code-transcripts' and shareable via '--gist'. For Claude Code for web, it fetches session JSON through a reverse-engineered API, extracting the OAuth token from the macOS Keychain via 'security find-generic-password' - a trick reverse-engineered using OpenAI Codex CLI, not Claude. The web endpoint is unofficial and may break; HTML generation is protected by syrupy snapshot tests.

Simon Willison’s Weblog →

Beyond Requests: Why httpx is the Modern HTTP Client You Need (Sometimes)

Requests is a common Python tool for web requests, but httpx is a faster, modern upgrade that handles multiple tasks at once. It matters because it speeds up apps that fetch data from the internet, like those in data science. Use it when you need efficiency.

The article compares Python's Requests library with httpx, positioning httpx as a modern alternative for async HTTP requests. Business leaders should consider httpx for data-heavy AI workflows to boost scalability, reduce latency, and support HTTP/2. Key takeaway: Migrate selectively to httpx for performance gains in API integrations.

Compares synchronous Requests with async httpx, highlighting httpx's support for HTTP/2, connection pooling, and async/await syntax. Key findings: httpx excels in concurrent requests and modern protocols, ideal for high-throughput apps. Suitable for replacing Requests in performance-critical scenarios.

Towards Data Science Blog →