{"id":38572510,"url":"https://github.com/txello/qtasks","last_synced_at":"2026-02-04T22:02:45.900Z","repository":{"id":288055011,"uuid":"935622354","full_name":"txello/qtasks","owner":"txello","description":"Asynchronous Queue Tasks","archived":false,"fork":false,"pushed_at":"2025-12-04T07:32:26.000Z","size":3681,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-07T08:33:21.485Z","etag":null,"topics":["framework","kafka","python","python-framework","python-library","queue","rabbitmq","redis","task-manager","task-queue","task-scheduler"],"latest_commit_sha":null,"homepage":"https://txello.github.io/qtasks/","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/txello.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-19T18:38:29.000Z","updated_at":"2025-09-20T16:45:28.000Z","dependencies_parsed_at":"2025-05-20T08:36:42.478Z","dependency_job_id":"3cc90108-4e14-4b44-8bb3-679c6644caad","html_url":"https://github.com/txello/qtasks","commit_stats":null,"previous_names":["txello/qtasks"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/txello/qtasks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txello%2Fqtasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txello%2Fqtasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txello%2Fqtasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txello%2Fqtasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/txello","download_url":"https://codeload.github.com/txello/qtasks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/txello%2Fqtasks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["framework","kafka","python","python-framework","python-library","queue","rabbitmq","redis","task-manager","task-queue","task-scheduler"],"created_at":"2026-01-17T08:03:03.248Z","updated_at":"2026-02-04T22:02:45.892Z","avatar_url":"https://github.com/txello.png","language":"Python","readme":"# QTasks\n\n![CI](https://github.com/txello/qtasks/actions/workflows/ci.yml/badge.svg)\n![Docs](https://github.com/txello/qtasks/actions/workflows/docs.yml/badge.svg)\n[![PyPI Downloads](https://static.pepy.tech/personalized-badge/qtasks?period=total\\\u0026units=INTERNATIONAL_SYSTEM\\\u0026left_color=BLACK\\\u0026right_color=GREEN\\\u0026left_text=downloads)](https://pepy.tech/projects/qtasks)\n![Python](https://img.shields.io/pypi/pyversions/qtasks)\n![License](https://img.shields.io/github/license/txello/qtasks)\n\n**QTasks** is a modern task queue framework for Python with a component-based\narchitecture and a focus on extensibility, transparency, and control over task execution.\nThe project is aimed at both small services and complex distributed systems\nwhere standard solutions are redundant or inflexible.\n\n---\n\n## Key features\n\n* **Component-based architecture**\n  Broker, Worker, Storage, GlobalConfig, Starter — each component is isolated and\n  fully replaceable.\n\n* **Async and Sync tasks**\n  Support for `asyncio`, synchronous functions, and generators.\n\n* **Plugins instead of rigid logic**\n  Retry, concurrency, logging, and execution strategies are implemented\n  through plugins.\n\n* **Typed data flow**\n  Data transfer between components via schemas (`dataclasses`).\n\n* **Transparent testing**\n  In-memory brokers and storages, component isolation, tests without running workers.\n\n* **CLI-first approach**\n  Manage startup and environment through CLI without hidden magic.\n\n---\n\n## When to choose QTasks\n\n* You need full control over the queue architecture.\n* You need to write your own brokers, workers, and plugins.\n* Predictable behavior and minimalism of the core are important.\n* The project is growing and requires scalability without rewriting the logic.\n\n---\n\n## Installation\n\n### Basic installation (Redis by default)\n\n```bash\npip install qtasks\n```\n\n### Additional brokers\n\n#### RabbitMQ\n\n```bash\npip install qtasks[rabbitmq]\n```\n\n#### Kafka\n\n```bash\npip install qtasks[kafka]\n```\n\n---\n\n## Quick start\n\n```python\nfrom qtasks import QueueTasks\n\napp = QueueTasks()\n\n@app.task(name=\"echo\")\ndef echo(text: str) -\u003e str:\n    return text\n\n@app.task(name=\"divide\")\ndef divide(a: int, b: int):\n    return a / b\n\nif __name__ == \"__main__\":\n    app.run_forever()\n```\n\nCalling tasks:\n\n```python\n# echo.add_task(\"Hello\", timeout=50).returning -\u003e \"Hello\"\n# divide.add_task(1, 0, timeout=50).status -\u003e \"ERROR\"\n```\n\n---\n\n## Generators and streaming tasks\n\nQTasks supports generator tasks without additional wrappers:\n\n```python\nasync def gen_handler(value: int) -\u003e int:\n    return value + 1\n\n@app.task(generate_handler=gen_handler)\nasync def counter(n: int):\n    for _ in range(n):\n        n += 1\n        yield n\n```\n\nResult of execution:\n\n```python\n# await (counter.add_task(5, timeout=50)).returning -\u003e [7, 8, 9, 10, 11]\n```\n\n---\n\n## CLI\n\nStarting the worker:\n\n```bash\nqtasks -A qtasks_app:app run\n```\n\nOr directly:\n\n```bash\npython -m qtasks -A qtasks_app:app run\n```\n\nIn the future, the CLI will be expanded (inspect, stats, monitoring).\n\n---\n\n## Architecture (briefly)\n\n```md\n┌──────────┐          ┌──────────┐\n│  Broker  │ ───────▶ │          │\n│          │          │          │\n└────┬─────┘          │          │\n     │                │ Storage  │\n     ▼                │          │\n┌──────────┐ ───────▶ │          │\n│  Worker  │          │          │\n│          │          └──────────┘\n└──────────┘\n```\n\nAdditionally:\n\n* plugins;\n* routers;\n* background components;\n* WebView (optional).\n\n---\n\n## Documentation\n\n👉 [https://docs.qtasks.tech](https://docs.qtasks.tech)\n\n---\n\n## Project status\n\n* Active development\n* Stable versions\n* Python 3.8–3.12\n* Open to contributions\n\n---\n\n## License\n\nMIT License\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxello%2Fqtasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftxello%2Fqtasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftxello%2Fqtasks/lists"}