{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/6"}],"enrichment":{"capability":"httsleep polls HTTP endpoints repeatedly until a success condition is met or an alarm condition triggers, supporting status code checks, JSON response matching via JSONPath, and custom callbacks.","skillfed_tags":["polling","abandoned"],"use_cases":["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"],"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.\n\nThe library is designed for scenarios where you need to wait for an asynchronous operation\u2014like a background job or a provisioning task\u2014to 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.","worth_installing":"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."},"id":"httsleep","links":{"html":"https://skillfed.io/packages/httsleep","md":"https://skillfed.io/packages/httsleep.md","pypi":"https://pypi.org/project/httsleep/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2018-11-04","license_spdx":null,"license_treatment":"permissive","name":"httsleep","python_support":"unspecified","summary":"A python library for polling HTTP endpoints - batteries included!"},"popularity":{"monthly_downloads":176893,"position":10230,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.1"}
