{"id":20312489,"url":"https://github.com/gil9red/simple-wait","last_synced_at":"2025-10-12T05:34:58.043Z","repository":{"id":168390814,"uuid":"643966624","full_name":"gil9red/simple-wait","owner":"gil9red","description":"Simple wait","archived":false,"fork":false,"pushed_at":"2023-06-26T23:00:32.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-13T19:45:35.126Z","etag":null,"topics":["python","python-3","wait"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/simple-wait/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gil9red.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-22T14:22:04.000Z","updated_at":"2023-06-26T23:16:08.000Z","dependencies_parsed_at":"2023-08-17T01:01:11.689Z","dependency_job_id":null,"html_url":"https://github.com/gil9red/simple-wait","commit_stats":null,"previous_names":["gil9red/simple-wait"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/gil9red/simple-wait","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gil9red%2Fsimple-wait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gil9red%2Fsimple-wait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gil9red%2Fsimple-wait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gil9red%2Fsimple-wait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gil9red","download_url":"https://codeload.github.com/gil9red/simple-wait/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gil9red%2Fsimple-wait/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260183013,"owners_count":22971195,"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":["python","python-3","wait"],"created_at":"2024-11-14T18:06:21.401Z","updated_at":"2025-10-12T05:34:53.006Z","avatar_url":"https://github.com/gil9red.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-wait\nSimple wait\n\n[![tests](https://github.com/gil9red/simple-wait/actions/workflows/run-tests.yml/badge.svg)](https://github.com/gil9red/simple-wait/actions/workflows/run-tests.yml)\n[![upload to pypi](https://github.com/gil9red/simple-wait/actions/workflows/python-publish.yml/badge.svg)](https://github.com/gil9red/simple-wait/actions/workflows/python-publish.yml)\n[![pypi](https://img.shields.io/pypi/v/simple-wait.svg)](https://pypi.org/project/simple-wait/)\n[![Downloads](https://static.pepy.tech/badge/simple-wait)](https://pepy.tech/project/simple-wait)\n[![pypi python versions](https://img.shields.io/pypi/pyversions/simple-wait.svg)](https://pypi.org/project/simple-wait/)\n[![image](https://img.shields.io/badge/code%20style-black-000000.svg)](https://pypi.org/project/black/)\n[![License](https://img.shields.io/badge/license-MIT-black.svg)](https://opensource.org/licenses/MIT)\n\n## Example\n```python\nfrom datetime import datetime\nfrom simple_wait import wait\n\n\nprint(\"Start wait\")\nwait(seconds=5)\nprint(\"Finish wait\")\n\nwhile True:\n    print()\n    print(\"Current datetime:\", datetime.now())\n    print()\n    wait(minutes=1, seconds=30)\n```\n\n```python\nimport traceback\nfrom simple_wait import wait\n\n\nwhile True:\n    try:\n        # Process\n        ...\n        \n        wait(hours=8)\n\n    except:\n        print(traceback.format_exc())\n        wait(minutes=15)\n```\n\n## Installation\nYou can install with:\n```\npip install simple-wait\n```\n\nInstall or upgrade:\n```\npip install --upgrade simple-wait\n```\n\nInstall or update from github:\n```\npip install git+https://github.com/gil9red/simple-wait\n```\n\n## Description\n\nParameters `wait` function:\n\n| Name                   | Type                 | Default                                        |\n|------------------------|----------------------|------------------------------------------------|\n| days                   | `int`                | `0`                                            |\n| seconds                | `int`                | `0`                                            |\n| microseconds           | `int`                | `0`                                            |\n| milliseconds           | `int`                | `0`                                            |\n| minutes                | `int`                | `0`                                            |\n| hours                  | `int`                | `0`                                            |\n| weeks                  | `int`                | `0`                                            |\n| progress_bar           | `Iterable[str]`      | `(\"\u0026#124;\", \"/\", \"-\", \"\\\\\")`                   |\n| delay_seconds          | `float`              | `1`                                            |\n| log_pattern_progress   | `str`                | `\"[{progress_bar}] Time left to wait: {left}\"` |\n| log_pattern_cancel     | `str`                | `\"\\nWaiting canceled\\n\"`                       |\n| log_pattern_clear_line | `str`                | `\"\\r\" + \" \" * 100 + \"\\r\"`                      |\n| log                    | `TextIOWrapper`      | `sys.stdout`                                   |\n| is_need_stop           | `Callable[[], bool]` | `lambda: False`                                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgil9red%2Fsimple-wait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgil9red%2Fsimple-wait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgil9red%2Fsimple-wait/lists"}