{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"}],"enrichment":{"capability":"Polling2 lets you wait for a function to return a desired condition without writing custom retry logic, handling timeouts and polling intervals automatically.","skillfed_tags":["retry-polling","testing-utility"],"use_cases":["Wait for an API endpoint to return a successful status code before proceeding in tests or deployment scripts.","Poll for the existence or non-existence of a file on disk with a timeout to avoid indefinite hangs.","Retry acquiring a resource lock or waiting for a thread to release a lock within a time limit.","Check for completion of an asynchronous background task by polling a status function periodically."],"what_it_does":"Polling2 is a utility for repeatedly calling a function until it returns a desired result or a timeout is reached. Instead of writing custom retry loops with exception handling and timing logic, you pass a callable to polling2.poll() along with timeout and step parameters, and it handles the polling loop for you\u2014returning the function's result when the condition is met or raising an exception if the timeout expires.\n\nThe package is useful in integration tests, waiting for external resources (files, API responses, locks), and any scenario where you need to retry an operation with configurable delays and timeouts. It's a fork of the original polling library, maintained to address issues the original project no longer handles.","worth_installing":"Yes, if you need a lightweight polling utility. The package has no dependencies, low install friction, and a permissive license. However, note that it is aging\u2014last released in 2021 and not actively developed\u2014so it is best suited for stable, simple polling tasks rather than projects requiring ongoing maintenance or new features."},"id":"polling2","links":{"html":"https://skillfed.io/packages/polling2","md":"https://skillfed.io/packages/polling2.md","pypi":"https://pypi.org/project/polling2/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2021-07-19","license_spdx":null,"license_treatment":"permissive","name":"polling2","python_support":"unspecified","summary":"Updated polling utility with many configurable options"},"popularity":{"monthly_downloads":2028715,"position":3353,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.5.0"}
