smithy-http
HTTP components for Smithy tooling.
Decision gist · record as of 2026-08-14
Yes, if you are developing or testing code that uses a Smithy-generated Python client. The MockHTTPClient is a standard testing utility for that ecosystem. Pre-Alpha status and active maintenance are acceptable for a foundational library with no known vulnerabilities. Install only if you need Smithy client testing; it is not a general-purpose HTTP library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12 or later; intended for use with Smithy-generated Python clients.
- Active maintenance with a release 1 day old.
- Single runtime dependency (smithy-core) keeps install friction low.
License · maintenance · safety
Apache License 2.0 (permissive) — Apache License 2.0 (permissive) places no significant restrictions on use, modification, or redistribution in proprietary or open-source projects.
last release 2026-08-13 (1 days) · last repo commit 2026-08-13 · 83 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 423,511 downloads/mo, #6,772 on PyPI
Alternatives
Verify before relying
pip install smithy-http
from smithy_http.testing import MockHTTPClient
mock_client = MockHTTPClient()
mock_client.add_response(status=200, headers=[("Content-Type", "application/json")], body=b'{"message": "success"}')
# Pass mock_client to your Smithy client config for testing- Whether MockHTTPClient supports async/await patterns beyond the shown example
- Scope of HTTP functionality covered by the primitives layer beyond testing utilities
- Compatibility guarantees with smithy-core versions given the Pre-Alpha status
What it is and what it does
smithy-http is a low-level HTTP component library for the Smithy code generation framework's Python tooling. It defines interfaces and primitives that Smithy-generated SDK clients use to handle HTTP transport, and provides testing utilities so developers can verify client behavior without making real network requests.
The package's main entry point is MockHTTPClient, a test double that implements the HTTPClient interface and lets you queue responses, capture requests, and inspect call counts. It's designed to integrate with Smithy client configuration so you can swap in the mock during test setup. The package also includes helper functions like create_test_request() for constructing test HTTP objects and raises MockHTTPClientError when no responses are available.
Use it for
- Unit test Smithy-generated SDK clients by mocking HTTP responses without network I/O
- Verify request structure and headers sent by a Smithy client before it reaches the network
- Simulate error conditions and edge-case HTTP responses to test client error handling
- Inspect captured requests after a client call to assert the correct operation was invoked
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are developing or testing code that uses a Smithy-generated Python client.
The MockHTTPClient is a standard testing utility for that ecosystem. Pre-Alpha status and active maintenance are acceptable for a foundational library with no known vulnerabilities. Install only if you need Smithy client testing; it is not a general-purpose HTTP library.
Install
smithy-http on PyPI
Before you install
Active maintenance with a release 1 day old. Single runtime dependency (smithy-core) keeps install friction low. Pre-Alpha status signals this is early-stage tooling.
Requires Python 3.12 or later; intended for use with Smithy-generated Python clients.
License in practice
Apache License 2.0 (permissive) places no significant restrictions on use, modification, or redistribution in proprietary or open-source projects.
Quickstart
pip install smithy-http
from smithy_http.testing import MockHTTPClient
mock_client = MockHTTPClient()
mock_client.add_response(status=200, headers=[("Content-Type", "application/json")], body=b'{"message": "success"}')
# Pass mock_client to your Smithy client config for testing
Verify before relying
- Whether MockHTTPClient supports async/await patterns beyond the shown example
- Scope of HTTP functionality covered by the primitives layer beyond testing utilities
- Compatibility guarantees with smithy-core versions given the Pre-Alpha status
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.12 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesmithy-core |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 423,511 / month, #6,772 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Free Threading :: 2 - BetaProgramming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries |
Evidence: smithy_http-0.4.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “smithy http client testing”
- smithy-httpProvides HTTP primitives, interfaces, and testing utilities for…
- smithy-aws-event-streamProvides low-level Python components for handling Amazon Event…
- smithy-jsonProvides JSON serialization and deserialization support for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also httmock · respx · urllib3-mock · smithy-core · smithy-json · smithy-aws-core · sanic-testing · pook · responses · smithy-aws-event-stream