{"id":13501871,"url":"https://github.com/RedHatQE/wait_for","last_synced_at":"2025-03-29T10:32:20.113Z","repository":{"id":46601540,"uuid":"41535912","full_name":"RedHatQE/wait_for","owner":"RedHatQE","description":"Wait utility","archived":false,"fork":false,"pushed_at":"2021-10-04T11:13:02.000Z","size":67,"stargazers_count":16,"open_issues_count":1,"forks_count":14,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-13T22:46:17.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedHatQE.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-28T08:26:04.000Z","updated_at":"2024-02-02T11:58:31.000Z","dependencies_parsed_at":"2022-08-24T17:31:52.812Z","dependency_job_id":null,"html_url":"https://github.com/RedHatQE/wait_for","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHatQE%2Fwait_for","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHatQE%2Fwait_for/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHatQE%2Fwait_for/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHatQE%2Fwait_for/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedHatQE","download_url":"https://codeload.github.com/RedHatQE/wait_for/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246173879,"owners_count":20735405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T22:01:53.739Z","updated_at":"2025-03-29T10:32:19.839Z","avatar_url":"https://github.com/RedHatQE.png","language":"Python","readme":"wait-for\n========\n\nIntroduction\n------------\n\nWaits for a certain amount of time for an action to complete\nDesigned to wait for a certain length of time,\neither linearly in 1 second steps, or exponentially, up to a maximum.\nReturns the output from the function once it completes successfully,\nalong with the time taken to complete the command.\n\n.. note::\n   If using the expo keyword, the returned elapsed time will be inaccurate\n   as wait_for does not know the exact time that the function returned\n   correctly, only that it returned correctly at last check.\n\nUsage\n-----\n\n.. code-block:: python\n\n  from wait_for import wait_for\n\n  class Incrementor():\n      value = 0\n\n      def i_sleep_a_lot(self):\n          time.sleep(.1)\n          self.value += 1\n          return self.value\n\n\n  incman = Incrementor()\n  ec, tc = wait_for(incman.i_sleep_a_lot,\n                    fail_condition=0,\n                    delay=.05)\n  print(\"Function output {} in time {} \".format(ec, tc))\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRedHatQE%2Fwait_for","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRedHatQE%2Fwait_for","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRedHatQE%2Fwait_for/lists"}