python-http-client
HTTP REST client, simplified for Python
Decision gist · record as of 2026-08-14
Yes, if you are building a client for a REST API or prototyping API interactions and prefer a chainable, attribute-based interface over manual URL construction. The package is lightweight, has no dependencies, and carries a permissive MIT license. However, note that the latest release was in 2022-03-09; if you need active feature development or rapid bug fixes, verify that the maintenance status meets your project's needs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 2.7 or 3.4+; the package supports Python 2.7 and Python 3.4 through 3.10.
- Low install friction with no runtime dependencies.
- The package is actively maintained as of 2026-06-25 and has been stable since its first release in 2016-02-26, though the latest release was in 2022-03-09.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2022-03-09 (1619 days) · last repo commit 2026-06-25 · 126 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 29,298,536 downloads/mo, #820 on PyPI
Alternatives
Verify before relying
pip install python_http_client
import python_http_client
global_headers = {"Authorization": "Bearer XXXXXXX"}
client = python_http_client.Client(host='base_url', request_headers=global_headers)
response = client.your.api.call.get()
print(response.status_code)- Whether the package's last release in 2022-03-09 reflects active maintenance or if it is in maintenance-only mode.
- Whether the attribute-chaining API design handles edge cases like reserved Python keywords in path segments.
What it is and what it does
python-http-client is a lightweight HTTP client library that simplifies RESTful API access by allowing you to build request paths through Python attribute chaining rather than constructing URLs as strings. Instead of manually building URLs and managing headers, you chain attributes that map to path segments and call HTTP methods (get, post, etc.) at the end. The library handles the underlying HTTP mechanics—request headers, query parameters, request bodies, and response parsing—while you focus on the API structure.
The package has no runtime dependencies and installs cleanly on Python 2.7 and modern Python 3 versions. It is designed for developers who want to interact with REST APIs without the boilerplate of traditional HTTP libraries, making it especially useful when you need to call many different endpoints on the same API or when you want a more intuitive, object-oriented interface to API navigation.
Use it for
- Building a client wrapper for a REST API where you want to expose endpoints as nested attributes rather than string URLs.
- Quickly prototyping API interactions in scripts without writing verbose URL construction and header management code.
- Integrating with Twilio SendGrid or other REST services where you need a simplified, chainable interface.
- Creating a generic API client that can adapt to different REST endpoints by configuring the base URL and headers once.
- Reducing boilerplate when making multiple calls to different endpoints of the same API service.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a client for a REST API or prototyping API interactions and prefer a chainable, attribute-based interface over manual URL construction.
The package is lightweight, has no dependencies, and carries a permissive MIT license. However, note that the latest release was in 2022-03-09; if you need active feature development or rapid bug fixes, verify that the maintenance status meets your project's needs.
Install
python-http-client on PyPI
Before you install
Low install friction with no runtime dependencies. The package is actively maintained as of 2026-06-25 and has been stable since its first release in 2016-02-26, though the latest release was in 2022-03-09.
Requires Python 2.7 or 3.4+; the package supports Python 2.7 and Python 3.4 through 3.10.
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install python_http_client
import python_http_client
global_headers = {"Authorization": "Bearer XXXXXXX"}
client = python_http_client.Client(host='base_url', request_headers=global_headers)
response = client.your.api.call.get()
print(response.status_code)
Verify before relying
- Whether the package's last release in 2022-03-09 reflects active maintenance or if it is in maintenance-only mode.
- Whether the attribute-chaining API design handles edge cases like reserved Python keywords in path segments.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,619 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 29,298,536 / month, #820 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: python_http_client-3.3.7-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 › “simplified HTTP requests”
- python-http-clientProvides a simplified Python interface for making HTTP requests to…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
- fetch-useRoutes HTTP requests through Browser-Use's proxy infrastructure with…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP 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.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also sendgrid · smtpapi · twentyc.rpc · types-python-http-client · twilio-stubs · twilio · linkedin-api-client · wadllib · SurveyGizmo · django-sendgrid-v5