{"id":31821385,"url":"https://github.com/sfinx13/poc-celery-message-broker","last_synced_at":"2025-10-11T13:24:22.567Z","repository":{"id":110238907,"uuid":"471404028","full_name":"sfinx13/poc-celery-message-broker","owner":"sfinx13","description":"Call a soap api asynchronous service with celery and a message broker","archived":false,"fork":false,"pushed_at":"2025-09-07T07:32:54.000Z","size":349,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T09:20:56.042Z","etag":null,"topics":["celery","design-pattern","mock-server","python","redis","soap","soap-ui","wiremock"],"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/sfinx13.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,"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":"2022-03-18T14:39:36.000Z","updated_at":"2022-09-04T22:41:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"96e723eb-2a2b-49fe-9cde-093d2d270fa3","html_url":"https://github.com/sfinx13/poc-celery-message-broker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sfinx13/poc-celery-message-broker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfinx13%2Fpoc-celery-message-broker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfinx13%2Fpoc-celery-message-broker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfinx13%2Fpoc-celery-message-broker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfinx13%2Fpoc-celery-message-broker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sfinx13","download_url":"https://codeload.github.com/sfinx13/poc-celery-message-broker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sfinx13%2Fpoc-celery-message-broker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007325,"owners_count":26084280,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["celery","design-pattern","mock-server","python","redis","soap","soap-ui","wiremock"],"created_at":"2025-10-11T13:24:17.815Z","updated_at":"2025-10-11T13:24:22.560Z","avatar_url":"https://github.com/sfinx13.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asynchronous tasks with celery \nDemo made with zeep as soap client and celery to manage the request asynchronously\nAdd a mock-server for soap endpoint \n\n## Installation\n\n\u003e Create virtual environments\n```\n python -m venv env\n```\n\n\u003e Activate virtual environment\n```\nsource env/bin/activate \n```\n\n\u003e Install packages with pip\n```\npip install -r requirements.txt\n```\n\n\u003e Install dependencies wiremock + redis \n```\ndocker-compose up -d\n```\n## [Mock server] Prerequisite \n\nImport packed project from soap-ui/test-soap-soapui-project.xml.zip\n\nhttps://support.smartbear.com/readyapi/docs/projects/import.html\n\nLaunch mock server\nhttps://www.soapui.org/docs/soap-mocking/service-mocking-overview/\n\nUncommment mock config/settings.ini and comment real api \n```\n### MOCK API (SOAP-UI)\nwsdl_number_conversion_service = http://localhost:8088/NumberConversion.wso?WSDL\n```\n\n## Usage\n\u003e Run celery worker server\n\n```\ncelery -A tasks worker --loglevel=INFO\n```\n\n\u003e Call the task to_words\n\n```\n$ python\n\u003e\u003e\u003e from tasks import convert_to_words\n\u003e\u003e\u003e result = convert_to_words.delay(56324)\n\u003e\u003e\u003e result.status\n'SUCCESS'\n```\n\n\u003e Call the task to_dollars\n\n```\n$ python\n\u003e\u003e\u003e from tasks import convert_to_dollars\n\u003e\u003e\u003e result = convert_to_dollars.delay(56324)\n\u003e\u003e\u003e result.status\n'SUCCESS'\n```\n\n\n\u003e See what happend in worker terminal\n\n![Screen](__DOC/screen_worker.jpg)\n\n\n## Documentation\n\n\n* [Soap client with zeep](https://docs.python-zeep.org/en/master/)\n\n* [First steps with celery](https://docs.celeryq.dev/en/stable/getting-started/first-steps-with-celery.html#first-steps)\n\n* [Next steps with celery](https://docs.celeryq.dev/en/stable/getting-started/next-steps.html#next-steps)\n\n* [Celery guide](https://docs.celeryq.dev/en/stable/userguide/index.html#guide)\n\n* [SOAP Service Mocking Overview](https://www.soapui.org/docs/soap-mocking/service-mocking-overview/)\n\n## @Todo : try to replace the current soap mock server by wiremock\n\n* https://stackoverflow.com/questions/35974249/using-wiremock-with-soap-web-services-in-java\n* https://wiremock.readthedocs.io/en/latest/index.html\n* https://dev.to/adevintaspain/testing-with-wiremock-docker-2gh9\n* https://wiremock.org/docs/request-matching/\n* https://www.taheramlaki.com/blog/articles/wiremock-stubbing-and-response-templating/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfinx13%2Fpoc-celery-message-broker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsfinx13%2Fpoc-celery-message-broker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsfinx13%2Fpoc-celery-message-broker/lists"}