{"id":51088442,"url":"https://github.com/pallets-eco/flask-dramatiq","last_synced_at":"2026-06-23T23:30:30.700Z","repository":{"id":360874962,"uuid":"1118473697","full_name":"pallets-eco/flask-dramatiq","owner":"pallets-eco","description":"Plug Dramatiq task queue in your Flask web application.","archived":false,"fork":false,"pushed_at":"2026-05-28T08:26:37.000Z","size":949,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T09:13:55.114Z","etag":null,"topics":["dramatiq","flask"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pallets-eco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","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},"funding":{"github":"pallets","custom":"https://palletsprojects.com/donate","tidelift":"pypi/Flask"}},"created_at":"2025-12-17T20:08:57.000Z","updated_at":"2026-05-28T08:26:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pallets-eco/flask-dramatiq","commit_stats":null,"previous_names":["pallets-eco/flask-dramatiq"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pallets-eco/flask-dramatiq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets-eco%2Fflask-dramatiq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets-eco%2Fflask-dramatiq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets-eco%2Fflask-dramatiq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets-eco%2Fflask-dramatiq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pallets-eco","download_url":"https://codeload.github.com/pallets-eco/flask-dramatiq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pallets-eco%2Fflask-dramatiq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34711176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dramatiq","flask"],"created_at":"2026-06-23T23:30:29.803Z","updated_at":"2026-06-23T23:30:30.691Z","avatar_url":"https://github.com/pallets-eco.png","language":"Python","funding_links":["https://github.com/sponsors/pallets","https://palletsprojects.com/donate","https://tidelift.com/funding/github/pypi/Flask"],"categories":[],"sub_categories":[],"readme":"![Flask-Dramatiq](https://github.com/pallets-eco/flask-dramatiq/blob/main/docs/logo-horizontal.png?raw=true)\n\nFlask-Dramatiq plugs [Dramatiq](https://dramatiq.io) task queue in your\n[Flask](https://flask.pocoo.org) web application.\n\n## // Features //\n\n- Configure Dramatiq from Flask configuration.\n- Ensure Flask app is available to Dramatiq actor.\n- Add `worker` command to Flask CLI.\n- Enable [Flask Application factory](http://flask.pocoo.org/docs/dev/tutorial/factory/).\n- Handle multiple brokers with configurable prefix.\n- Integrates [periodiq](https://gitlab.com/bersace/periodiq). *Optionnal*.\n\nFull documentation at\n[flask-dramatiq.readthedocs.io](https://flask-dramatiq.readthedocs.io).\n\n\n## // Installation and Usage //\n\nFlask-Dramatiq is licensed under BSD-3-Clause. Add `flask-dramatiq` to your\nproject:\n\n``` console\n$ uv add flask-dramatiq\n```\n\nThen use `Dramatiq` object as a regular Flask extension:\n\n``` python\nfrom flask import Flask\nfrom flask_dramatiq import Dramatiq\n\napp = Flask(__name__)\ndramatiq = Dramatiq(app)\n\n@dramatiq.actor()\ndef my_actor():\n    ...\n\n@app.route(\"/\")\ndef myhandler():\n    my_actor.send()\n```\n\nFlask-Dramatiq adds two configuration keys:\n\n- `DRAMATIQ_BROKER`, points to broker class like\n  `dramatiq.brokers.rabbitmq:RabbitmqBroker` or\n  `dramatiq.brokers.redis:RedisBroker`.\n- `DRAMATIQ_BROKER_URL` is passed as `url` keyword argument to broker class.\n\nNow run worker program to consume messages and execute tasks in the background:\n\n``` console\n$ flask worker --processes=1\n```\n\nA complete flask app is available in project source tree\n[example.py](https://github.com/pallets-eco/flask-dramatiq/blob/main/example.py).\n\n\n## // Credit and Support //\n\nFeel free to open an issue or suggest a merge request on [Github project\npage](https://github.com/pallets-eco/flask-dramatiq). Contribution welcome!\n\nThe project is based on\n[Bogdanp/flask_dramatiq_example](https://github.com/Bogdanp/flask_dramatiq_example).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpallets-eco%2Fflask-dramatiq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpallets-eco%2Fflask-dramatiq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpallets-eco%2Fflask-dramatiq/lists"}