{"id":19665232,"url":"https://github.com/alttch/aiosched","last_synced_at":"2025-10-31T14:02:26.693Z","repository":{"id":62559781,"uuid":"226414340","full_name":"alttch/aiosched","owner":"alttch","description":"Python asyncio jobs scheduler","archived":false,"fork":false,"pushed_at":"2020-02-16T23:56:52.000Z","size":57,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T08:18:50.070Z","etag":null,"topics":["asyncio","interval","jobs","python","python3","scheduler","tasks"],"latest_commit_sha":null,"homepage":"","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/alttch.png","metadata":{"files":{"readme":"README.md","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":"2019-12-06T21:29:37.000Z","updated_at":"2023-09-15T14:20:57.000Z","dependencies_parsed_at":"2022-11-03T12:45:14.966Z","dependency_job_id":null,"html_url":"https://github.com/alttch/aiosched","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alttch%2Faiosched","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alttch%2Faiosched/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alttch%2Faiosched/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alttch%2Faiosched/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alttch","download_url":"https://codeload.github.com/alttch/aiosched/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251397577,"owners_count":21583034,"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","interval","jobs","python","python3","scheduler","tasks"],"created_at":"2024-11-11T16:21:43.802Z","updated_at":"2025-10-31T14:02:21.631Z","avatar_url":"https://github.com/alttch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aiosched - Python asyncio jobs scheduler\n\nExecutes specified asyncio jobs with a chosen interval. Has relatively small\nnumber of features but it's fast.\n\n\u003cimg src=\"https://img.shields.io/pypi/v/aiosched.svg\" /\u003e \u003cimg src=\"https://img.shields.io/badge/license-MIT-green\" /\u003e \u003cimg src=\"https://img.shields.io/badge/python-3.5%20%7C%203.6%20%7C%203.7-blue.svg\" /\u003e\n\n## Why one more scheduler?\n\n* it's extremely accurate and fast\n* it's simple\n* all methods are thread-safe\n\n## Example\n\n```python\nfrom aiosched import scheduler\nimport asyncio\n\nasync def test1(a, b, c):\n    print(f'JOB1 {a} {b} {c}')\n\nasync def test2():\n    print('JOB2')\n\nasync def test3():\n    print('JOB3')\n\nloop = asyncio.new_event_loop()\nscheduler.start(loop=loop)\n# jobs can be added before actual start in pending mode\njob1 = scheduler.create_threadsafe(target=test1, args=(1, 2, 3), interval=1)\njob2 = scheduler.create_threadsafe(target=test2, interval=0.5)\n# run job once after 5 seconds\njob3 = scheduler.create_threadsafe(target=test3, number=1, timer=5)\n# cancel job 2\nscheduler.cancel(job2)\n# equal to\njob2.cancel()\n\nloop.run_forever()\n```\n\nor run scheduler loop as coroutine:\n\n```python\nloop = asyncio.new_event_loop()\njob1 = scheduler.create_threadsafe(target=test1, args=(1,2,3), interval=0.1)\njob2 = scheduler.create_threadsafe(target=test2, interval=0.1)\nloop.run_until_complete(scheduler.scheduler_loop())\n```\n\n## Install\n\n```shell\npip3 install aiosched\n```\n\n## Advanced\n\nRead **AsyncJobScheduler** and **AsyncScheduledJob** classes documentation in\npydoc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falttch%2Faiosched","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falttch%2Faiosched","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falttch%2Faiosched/lists"}