{"id":20330699,"url":"https://github.com/leafney/flask_celery_demo","last_synced_at":"2025-04-11T21:07:05.748Z","repository":{"id":45123999,"uuid":"115504882","full_name":"leafney/flask_celery_demo","owner":"leafney","description":"Flask Celery 4.1.0 Blueprint","archived":false,"fork":false,"pushed_at":"2022-01-06T22:24:13.000Z","size":15,"stargazers_count":10,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T21:06:11.703Z","etag":null,"topics":["blueprint","celery","flask"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leafney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-27T09:29:08.000Z","updated_at":"2021-03-01T09:03:00.000Z","dependencies_parsed_at":"2022-09-22T17:31:21.358Z","dependency_job_id":null,"html_url":"https://github.com/leafney/flask_celery_demo","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/leafney%2Fflask_celery_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafney%2Fflask_celery_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafney%2Fflask_celery_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafney%2Fflask_celery_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafney","download_url":"https://codeload.github.com/leafney/flask_celery_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480435,"owners_count":21110937,"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":["blueprint","celery","flask"],"created_at":"2024-11-14T20:17:22.555Z","updated_at":"2025-04-11T21:07:05.686Z","avatar_url":"https://github.com/leafney.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Flask Celery Demo\r\n\r\n* Python3\r\n* Flask\r\n* Celery\r\n* Blueprint\r\n\r\n#### Quick Setup\r\n\r\n1. Clone this repository.\r\n2. Create virtualenv (1. `mkdir flaskdemo`  2. `pyvenv venv`  3. `source venv/bin/active`)\r\n3. Install requirements (`pip install requirements.txt`)\r\n4. Set Celery broker_url of Redis in `jobs/celeryconfig.py`\r\n5. Set two environment variables `MAIL_USERNAME` and `MAIL_PASSWORD` to 163.com . Set environment variables:   \r\n```\r\nexport MAIL_USERNAME='your_163_email_addr'\r\nexport MAIL_PASSWORD='your_163_email_pwd'\r\n```\r\n(this demo use 163.com,use other email SMTP server by yourself configued in `config.py`)\r\n6. Open a terminal window run flask web(`python run.py`)\r\n7. Open a second terminal window start a Celery worker (`celery worker -A celery_worker.celery -l=info`)\r\n8. Open a third terminal window start a Celery worker (`celery beat -A celery_worker.celery -l=info`)\r\n9. Or Run (`celery worker -B -A celery_worker.celery -l=info`) instead of step 7 and step 8\r\n10. Go to `http://localhost:5000/` test.\r\n11. Enjoy it.\r\n\r\n\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafney%2Fflask_celery_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafney%2Fflask_celery_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafney%2Fflask_celery_demo/lists"}