httsleep
A python library for polling HTTP endpoints - batteries included!
Decision gist · record as of 2026-08-14
No. The package is abandoned (last commit 2018-11-04, no activity since). Its classifiers list Python 2.7 through 3.7 support, and compatibility with current Python versions is untested. For new projects, consider a maintained alternative. If you have legacy code already using httsleep, it may still work, but do not adopt it for new work.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with low friction—pure Python wheel with only two runtime dependencies.
- However, the package is abandoned; the last commit was 2018-11-04 and no maintenance has occurred since.
License · maintenance · safety
Apache (permissive) — Licensed under Apache (permissive), so you can use it freely in commercial and private projects without viral obligations, though you must include a copy of the license.
last release 2018-11-04 (2840 days) · last repo commit 2018-11-04 · 48 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 176,893 downloads/mo, #10,230 on PyPI
Alternatives
Verify before relying
pip install httsleep
from httsleep import httsleep, Alarm
until = {'status_code': 200, 'jsonpath': [{'expression': 'status', 'value': 'OK'}]}
alarms = [{'status_code': 404}]
try:
response = httsleep('http://myendpoint/jobs/1', until, alarms=alarms, max_retries=20)
except Alarm as e:
print("Alarm matched:", e.alarm)- Whether httsleep works reliably on Python versions after 3.7, given the last release predates those versions
- Whether jsonpath-rw and requests dependencies have known security issues or breaking changes since 2018-11-04
What it is and what it does
httsleep is a polling library that repeatedly calls an HTTP endpoint until your success conditions are satisfied or an alarm condition fires. You define what success looks like (e.g., status code 200 and a specific JSON field value), set optional alarm conditions that should halt polling early (e.g., a 404 or an error flag in the response), and call the library with a URL and retry limit. It uses jsonpath-rw to match nested JSON fields and requests to make the actual HTTP calls.
The library is designed for scenarios where you need to wait for an asynchronous operation—like a background job or a provisioning task—to complete. You can attach callbacks to alarm conditions to add custom logic. If a success condition is met, you get the response; if an alarm fires, you get an exception with the response and the alarm that triggered it.
Use it for
- Poll a job-status endpoint until a background task completes or fails, with early exit on error codes
- Wait for a service to become healthy after deployment, checking both HTTP status and response body fields
- Monitor an async operation with custom callbacks that decide whether to treat a response as a real failure
- Test HTTP endpoints in integration tests by polling until expected state is reached or timeout occurs
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last commit 2018-11-04, no activity since). Its classifiers list Python 2.7 through 3.7 support, and compatibility with current Python versions is untested. For new projects, consider a maintained alternative. If you have legacy code already using httsleep, it may still work, but do not adopt it for new work.
Install
httsleep on PyPI
Before you install
Installation is straightforward with low friction—pure Python wheel with only two runtime dependencies. However, the package is abandoned; the last commit was 2018-11-04 and no maintenance has occurred since.
License in practice
Licensed under Apache (permissive), so you can use it freely in commercial and private projects without viral obligations, though you must include a copy of the license.
Quickstart
pip install httsleep
from httsleep import httsleep, Alarm
until = {'status_code': 200, 'jsonpath': [{'expression': 'status', 'value': 'OK'}]}
alarms = [{'status_code': 404}]
try:
response = httsleep('http://myendpoint/jobs/1', until, alarms=alarms, max_retries=20)
except Alarm as e:
print("Alarm matched:", e.alarm)
Verify before relying
- Whether httsleep works reliably on Python versions after 3.7, given the last release predates those versions
- Whether jsonpath-rw and requests dependencies have known security issues or breaking changes since 2018-11-04
Package facts
| License | Apache permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesjsonpath-rwrequests |
| Maintenance | Abandoned 2,840 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 176,893 / month, #10,230 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7 |
Evidence: httsleep-0.3.1-py2.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 › “http polling library”
- httsleephttsleep polls HTTP endpoints repeatedly until a success condition is…
- azure-mgmt-coreProvides ARM-specific extensions to Azure Core for use by Azure…
- gripcontrolImplements the GRIP (Generic Real-time Interoperability Protocol)…
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 polling2 · waiter · waiting · busypie · http-exceptions · python-retry · jsonpath-rw · retryhttp · total-connect-client · jsonpath-python