{"id":25166106,"url":"https://github.com/sky-alin/regta","last_synced_at":"2025-04-30T20:50:05.502Z","repository":{"id":42514250,"uuid":"430840276","full_name":"SKY-ALIN/regta","owner":"SKY-ALIN","description":"📅 Production-ready scheduler with async, multithreading and multiprocessing support for Python","archived":false,"fork":false,"pushed_at":"2024-07-06T00:28:56.000Z","size":651,"stargazers_count":22,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-25T02:05:50.135Z","etag":null,"topics":["asyncio","multiprocessing","multithreading","python","scheduler"],"latest_commit_sha":null,"homepage":"https://regta.alinsky.tech","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/SKY-ALIN.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2021-11-22T19:33:03.000Z","updated_at":"2024-12-26T03:47:48.000Z","dependencies_parsed_at":"2023-02-15T00:46:02.826Z","dependency_job_id":"09dd38d4-cdb4-465a-a600-150915264832","html_url":"https://github.com/SKY-ALIN/regta","commit_stats":{"total_commits":80,"total_committers":3,"mean_commits":"26.666666666666668","dds":0.475,"last_synced_commit":"e4d7feee24bfd4f1a4370331b9916e859b724a11"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SKY-ALIN%2Fregta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SKY-ALIN%2Fregta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SKY-ALIN%2Fregta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SKY-ALIN%2Fregta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SKY-ALIN","download_url":"https://codeload.github.com/SKY-ALIN/regta/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251782063,"owners_count":21642975,"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":["asyncio","multiprocessing","multithreading","python","scheduler"],"created_at":"2025-02-09T05:47:42.671Z","updated_at":"2025-04-30T20:50:05.480Z","avatar_url":"https://github.com/SKY-ALIN.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# regta\n\n**Production-ready scheduler with async, multithreading and multiprocessing support for Python.**\n\n[![versions](https://img.shields.io/pypi/pyversions/regta.svg)](https://github.com/SKY-ALIN/regta)\n![Code Quality](https://github.com/SKY-ALIN/regta/actions/workflows/code-quality.yml/badge.svg)\n[![PyPI version](https://badge.fury.io/py/regta.svg)](https://pypi.org/project/regta/)\n[![license](https://img.shields.io/github/license/SKY-ALIN/regta.svg)](https://github.com/SKY-ALIN/regta/blob/main/LICENSE)\n\n### Core Features\n\n- **[Various Job Types](https://regta.alinsky.tech/user_guide/make_jobs)** - Create async, thread-based,\n  or process-based jobs depending on your goals.\n\n\n- **[Flexible Intervals](https://regta.alinsky.tech/user_guide/interval_types)** - Use standard `timedelta`\n  or specially designed `Period` for highly responsible jobs.\n\n\n- **[Multi-Paradigm](https://regta.alinsky.tech/user_guide/oop_style)** - Design OOP styled\n  or functional styled jobs.\n\n\n- **[CLI Interface](https://regta.alinsky.tech/cli_reference)** - Regta provides a CLI tool\n  to start, list and create jobs by template.\n\n\n- **[Professional Logging](https://regta.alinsky.tech/user_guide/logging)** - Redefine standard logger\n  and define your own. ANSI coloring is supported.\n\nYou may discover scheduling alternatives and find the comparison with Regta on \n[regta.alinsky.tech/alternatives](https://regta.alinsky.tech/alternatives)\n\n---\n\n### Installation\nInstall using `pip install regta` or `poetry add regta`.\n\nIf you use python \u003c 3.9, then also install backports: `pip install \"backports.zoneinfo[tzdata]\"`.\n\nYou can check if Regta was installed correctly with the following command `regta --version`.\n\n### Example\n\nTo write async job just use `@regta.async_job()` decorator.\n\n```python\n# jobs/my_jobs.py\n\nfrom datetime import timedelta\nfrom regta import async_job, Period\n\n\n@async_job(Period().every(10).seconds)\nasync def my_period_based_job():\n    return \"1. Hello world! This is just a log message.\"\n\n\n@async_job(timedelta(seconds=10))\nasync def my_timedelta_based_job():\n    return \"2. You may use `timedelta` or `Period` as interval.\"\n\n\n@async_job(Period().on.sunday.at(\"18:35\").by(\"Asia/Almaty\"))\nasync def my_sunday_job():\n    return \"3. `Period` is recommended for highly responsible jobs because it does not accumulate shift.\"\n```\n\nRead more about various job types \n[here](https://regta.alinsky.tech/user_guide/make_jobs).\n\n### Start Up\n\nTo start jobs use `regta run` command:\n\n```shell\n$ regta run\n\u003e [3] jobs were found.\n\u003e 2023-01-08 18:31:00,005 [jobs.my_jobs:my_period_based_job] [INFO] - 1. Hello world! This is just a log message.\n\u003e 2023-01-08 18:31:05,622 [jobs.my_jobs:my_timedelta_based_job] [INFO] - 2. You may use `timedelta` or `Period` as interval.\n.  .  .\n\u003e 2023-01-08 18:34:50,002 [jobs.my_jobs:my_period_based_job] [INFO] - 1. Hello world! This is just a log message.\n\u003e 2023-01-08 18:34:55,689 [jobs.my_jobs:my_timedelta_based_job] [INFO] - 2. You may use `timedelta` or `Period` as interval.\n\u003e 2023-01-08 18:35:00,001 [jobs.my_jobs:my_sunday_job] [INFO] - 3. `Period` is recommended for highly responsible jobs because it does not accumulate shift.\n.  .  .\n```\n\nRead CLI reference [here](https://regta.alinsky.tech/cli_reference).\n\n---\n\nFull documentation and reference are available on \n[regta.alinsky.tech](https://regta.alinsky.tech)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-alin%2Fregta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsky-alin%2Fregta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-alin%2Fregta/lists"}