{"id":17053737,"url":"https://github.com/relrin/sanic-amqp-extension","last_synced_at":"2025-08-26T15:20:45.102Z","repository":{"id":57463818,"uuid":"123684296","full_name":"Relrin/sanic-amqp-extension","owner":"Relrin","description":"AMQP support for Sanic framework","archived":false,"fork":false,"pushed_at":"2022-12-20T10:05:24.000Z","size":10,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-28T05:15:11.819Z","etag":null,"topics":["amqp","extension","python","sanic"],"latest_commit_sha":null,"homepage":null,"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/Relrin.png","metadata":{"files":{"readme":"README.rst","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":"2018-03-03T11:05:24.000Z","updated_at":"2022-12-20T10:01:30.000Z","dependencies_parsed_at":"2023-01-30T00:16:02.566Z","dependency_job_id":null,"html_url":"https://github.com/Relrin/sanic-amqp-extension","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Relrin/sanic-amqp-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relrin%2Fsanic-amqp-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relrin%2Fsanic-amqp-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relrin%2Fsanic-amqp-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relrin%2Fsanic-amqp-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Relrin","download_url":"https://codeload.github.com/Relrin/sanic-amqp-extension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Relrin%2Fsanic-amqp-extension/sbom","scorecard":{"id":119661,"data":{"date":"2025-08-11","repo":{"name":"github.com/Relrin/sanic-amqp-extension","commit":"fe47ab5310a8ae6c152459e0c89d414be93eb0d7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating openmatchmaking/docker-base-python-image:3.7 to openmatchmaking/docker-base-python-image:3.7@sha256:fa777b998931ecff85f8d9a55e56525163b0a96870ad39337f3ab70e06a58f74","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T02:12:49.387Z","repository_id":57463818,"created_at":"2025-08-16T02:12:49.387Z","updated_at":"2025-08-16T02:12:49.387Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272233567,"owners_count":24896842,"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-08-26T02:00:07.904Z","response_time":60,"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":["amqp","extension","python","sanic"],"created_at":"2024-10-14T10:13:06.607Z","updated_at":"2025-08-26T15:20:45.061Z","avatar_url":"https://github.com/Relrin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"sanic-amqp-extension\n####################\nAMQP support for Sanic framework\n\nFeatures\n========\n- Based on the aioamqp_ library\n- Provides an opportunity to implement workers that works in background\n\nInstallation\n============\nThis package should be installed using pip: ::\n\n    pip install sanic-amqp-extension\n\nExample\n=======\n.. code-block:: python\n\n    from sanic import Sanic, response\n    from sanic_amqp_ext import AmqpExtension, AmqpWorker\n\n\n    app = Sanic(__name__)\n    # Configuration for RabbitMQ\n    app.config.update({\n        \"AMQP_USERNAME\": \"guest\",\n        \"AMQP_PASSWORD\": \"guest\",\n        \"AMQP_HOST\": \"localhost\",\n        \"AMQP_PORT\": 5672,\n        \"AMQP_VIRTUAL_HOST\": \"vhost\",\n        \"AMQP_USING_SSL\": False,\n    })\n    AmqpExtension(app) # AMQP is available as `app.amqp` or `app.extensions['amqp']`\n\n\n    class CustomWorker(AmqpWorker):\n\n        async def run(self, *args, **kwargs):\n            transport, protocol = await self.connect()  # create a new connection\n            # and do some stuff here ...\n\n    # Register workers after initializing the extension\n    app.amqp.register_worker(CustomWorker(app))\n\n\n    @app.route(\"/\")\n    async def handle(request):\n        transport, protocol = await request.app.amqp.connect()  # create a new connection\n        # do some stuff here ...\n        # P.S. but don't forget to close the connection after using\n        return response.text(\"It's works!\")\n\nLicense\n=======\nThe sanic-amqp-extension is published under BSD license. For more details read LICENSE_ file.\n\n.. _links:\n.. _aioamqp: http://aioamqp.readthedocs.io/\n.. _LICENSE: https://github.com/Relrin/sanic-amqp-extension/blob/master/LICENSE\n\nReal project examples\n=====================\nOpen Matchmaking project:  \n\n- `Auth/Auth microservice \u003chttps://github.com/OpenMatchmaking/microservice-auth/\u003e`_\n- `Game servers pool microservice \u003chttps://github.com/OpenMatchmaking/microservice-game-servers-pool/\u003e`_\n- `Player statistics microservice \u003chttps://github.com/OpenMatchmaking/microservice-player-statistics/\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelrin%2Fsanic-amqp-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelrin%2Fsanic-amqp-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelrin%2Fsanic-amqp-extension/lists"}