{"id":23735434,"url":"https://github.com/psincraian/commandbus","last_synced_at":"2025-09-04T10:30:59.309Z","repository":{"id":62563935,"uuid":"123961721","full_name":"psincraian/commandbus","owner":"psincraian","description":"Command Bus Pattern in Python","archived":false,"fork":false,"pushed_at":"2018-04-26T11:43:27.000Z","size":11,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-01T12:19:16.629Z","etag":null,"topics":["commandbus","cqrs","cqrs-pattern","patterns","python","python-library","python3"],"latest_commit_sha":null,"homepage":null,"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/psincraian.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":"2018-03-05T18:35:21.000Z","updated_at":"2022-12-06T23:24:48.000Z","dependencies_parsed_at":"2022-11-03T16:00:31.723Z","dependency_job_id":null,"html_url":"https://github.com/psincraian/commandbus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/psincraian/commandbus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psincraian%2Fcommandbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psincraian%2Fcommandbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psincraian%2Fcommandbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psincraian%2Fcommandbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psincraian","download_url":"https://codeload.github.com/psincraian/commandbus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psincraian%2Fcommandbus/sbom","scorecard":{"id":748120,"data":{"date":"2025-08-11","repo":{"name":"github.com/psincraian/commandbus","commit":"cdd6cd9fe6cf54abe5ea0496e348023167597e42"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"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 0/9 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":"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT 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":"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":"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-92 / GHSA-hj5v-574p-mj7c","Warn: Project is vulnerable to: PYSEC-2022-42969"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T19:28:36.421Z","repository_id":62563935,"created_at":"2025-08-22T19:28:36.421Z","updated_at":"2025-08-22T19:28:36.421Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273591680,"owners_count":25133423,"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-09-04T02:00:08.968Z","response_time":61,"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":["commandbus","cqrs","cqrs-pattern","patterns","python","python-library","python3"],"created_at":"2024-12-31T06:15:54.327Z","updated_at":"2025-09-04T10:30:59.056Z","avatar_url":"https://github.com/psincraian.png","language":"Python","readme":"\u003ch2 align=\"center\"\u003e\u003ccode\u003ecommandbus\u003c/code\u003e\u003c/h2\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://badge.fury.io/py/commandbus\"\u003e\u003cimg src=\"https://badge.fury.io/py/commandbus.svg\" alt=\"PyPI version\" height=\"18\"\u003e\u003c/a\u003e\n\u003ca href=\"http://pepy.tech/count/commandbus\"\u003e\u003cimg src=\"http://pepy.tech/badge/commandbus\" alt=\"Download stats version\" height=\"18\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## 📜 About\nCommand bus is a pattern from CQRS. In this pattern we have three components:\n\n* `Command`: represents the desired action to be done, like `RegisterUserCommand`.\n* `CommandHandler`: retrieves the data from the command and executes all the actions to accomplish the command \nobjective. In the previous case creates a new user and saves it do database. \n* `CommandBus`: routes the command to the handler \n\n## ⚒️ Installation\nInstallation is so easy, you only need to execute\n```\npip install commandbus\n```\n\n## 🚀 Using commandbus\nUsing command is as easy as type\n```python3\nfrom commandbus import Command, CommandHandler, CommandBus\n\nclass SomeCommand(Command):\n    pass\n\nclass SomeCommandHandler(CommandHandler):\n    def __init__(self):\n        self.called = False\n\n    def handle(self, cmd: Command):\n        self.called = True\n        \nbus = CommandBus()\nhandler = SomeCommandHandler()\nbus.subscribe(SomeCommand, handler)\nassert not handler.called\nbus.publish(SomeCommand())\nassert handler.called\n```\n\n\n## 🚩 License\nThe code is available under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsincraian%2Fcommandbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsincraian%2Fcommandbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsincraian%2Fcommandbus/lists"}