{"id":25753544,"url":"https://github.com/ganggas95/celery-flask","last_synced_at":"2026-05-02T05:31:51.351Z","repository":{"id":62561274,"uuid":"234179650","full_name":"ganggas95/Celery-Flask","owner":"ganggas95","description":"Celery integrated with Flask App","archived":false,"fork":false,"pushed_at":"2020-01-28T00:48:21.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T15:18:32.515Z","etag":null,"topics":["celery","celeryflask","flask","task"],"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/ganggas95.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":"2020-01-15T21:44:48.000Z","updated_at":"2020-01-28T00:48:23.000Z","dependencies_parsed_at":"2022-11-03T15:15:21.384Z","dependency_job_id":null,"html_url":"https://github.com/ganggas95/Celery-Flask","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ganggas95/Celery-Flask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganggas95%2FCelery-Flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganggas95%2FCelery-Flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganggas95%2FCelery-Flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganggas95%2FCelery-Flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganggas95","download_url":"https://codeload.github.com/ganggas95/Celery-Flask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganggas95%2FCelery-Flask/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260370510,"owners_count":22998842,"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":["celery","celeryflask","flask","task"],"created_at":"2025-02-26T15:18:34.794Z","updated_at":"2026-05-02T05:31:51.322Z","avatar_url":"https://github.com/ganggas95.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Celery integrated with Flask\n\n## Project description\n\nThis library created for help our project using flask and celery as tasking management\n\n\n### Installation\n\nTo using this library, you need to install from ```pip``` using this command\n```pip install celeryflask```\n\n\n### Examples\n\nTo use this library you just add following code to your project:\n\n```\nfrom flask import Flask\nfrom CeleryFlask import CeleryFlask\n\napp = Flask(__name__)\ncelery_flask = CeleryFlask(app)\n# or\ncelery_flask = CeleryFlask()\ncelery_flask.init_app(app)\n\n@celery_flask.task\ndef hello():\n    print(\"Hello\")\n```\n\nBefore running celery, don't forget to add this configuration to you application config/settings:\n```\n    CELERY_BROKER_URL = os.getenv(\"CELERY_BROKER_URL\", None)\n    CLEERY_BACKEND = CELERY_BROKER_URL\n    CELERY_RESULT_BACKEND = os.getenv(\"CELERY_RESULT_BACKEND\", None)\n    CELERY_DEFAULT_QUEUE = 'default'\n\n    CELERY_IMPORTS = (\n        # Add task here to use relative import task\n    )\n    # CELERY_TASK_RESULT_EXPIRES = 30\n    CELERY_TIMEZONE = 'UTC'\n    USE_TZ = True\n    CELERY_ENABLE_UTC = False\n    CELERY_ACCEPT_CONTENT = ['json']\n    CELERY_TASK_SERIALIZER = 'json'\n    CELERY_RESULT_SERIALIZER = 'json'\n    CELERY_TASK_RESULT_EXPIRES = 120  # 2 mins\n    CELERYD_CONCURRENCY = 6\n    CELERYD_MAX_TASKS_PER_CHILD = 4\n    CELERYD_PREFETCH_MULTIPLIER = 1\n    CELERY_BROKER_URL = os.getenv(\"CELERY_BROKER_URL\")\n    CELERY_RESULT_BACKEND = os.getenv(\"CELERY_RESULT_BACKEND\")\n    CELERY_DEFAULT_QUEUE = 'your task queue'\n\n    CELERY_QUEUES = (\n        Queue('default', Exchange('default'), routing_key='default'),\n        Queue('your task queue', Exchange('your task queue'), routing_key='your task routing '),\n    )\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganggas95%2Fcelery-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganggas95%2Fcelery-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganggas95%2Fcelery-flask/lists"}