{"id":15896206,"url":"https://github.com/numberoverzero/accordian","last_synced_at":"2026-03-03T04:39:58.509Z","repository":{"id":34629647,"uuid":"38579676","full_name":"numberoverzero/accordian","owner":"numberoverzero","description":"Event dispatch in Python 3.8 using asyncio","archived":false,"fork":false,"pushed_at":"2020-04-13T00:34:48.000Z","size":42,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-21T22:55:36.844Z","etag":null,"topics":[],"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/numberoverzero.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":"2015-07-05T18:39:52.000Z","updated_at":"2020-04-13T00:34:50.000Z","dependencies_parsed_at":"2022-07-28T18:19:27.085Z","dependency_job_id":null,"html_url":"https://github.com/numberoverzero/accordian","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/numberoverzero/accordian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberoverzero%2Faccordian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberoverzero%2Faccordian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberoverzero%2Faccordian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberoverzero%2Faccordian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numberoverzero","download_url":"https://codeload.github.com/numberoverzero/accordian/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberoverzero%2Faccordian/sbom","scorecard":{"id":698576,"data":{"date":"2025-08-11","repo":{"name":"github.com/numberoverzero/accordian","commit":"6754d4bca34ba50c824bc662105e65c4cc1aec72"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-22T04:29:35.476Z","repository_id":34629647,"created_at":"2025-08-22T04:29:35.476Z","updated_at":"2025-08-22T04:29:35.476Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30032060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T03:27:35.548Z","status":"ssl_error","status_checked_at":"2026-03-03T03:27:09.213Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-06T09:06:51.803Z","updated_at":"2026-03-03T04:39:58.480Z","avatar_url":"https://github.com/numberoverzero.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://img.shields.io/travis/numberoverzero/accordian/master.svg?style=flat-square\n    :target: https://travis-ci.org/numberoverzero/accordian\n.. image:: https://img.shields.io/pypi/v/accordian.svg?style=flat-square\n    :target: https://pypi.python.org/pypi/accordian\n.. image:: https://img.shields.io/github/issues-raw/numberoverzero/accordian.svg?style=flat-square\n    :target: https://github.com/numberoverzero/accordian/issues\n\n\nEvent dispatch in Python 3.8 using asyncio\n\nInstallation\n------------\n\n``pip install accordian``\n\nGetting Started\n---------------\n::\n\n    import asyncio\n    from accordian import signal\n    my_event = signal(\"my_event\")\n\n    @my_event.connect\n    async def pow(x, y):\n        await asyncio.sleep(0.1)\n        print(f\"pow({x}, {y})\")\n        return x ** y\n\n    @my_event.connect\n    async def diff(x, y):\n        await asyncio.sleep(0.2)\n        print(f\"diff({x}, {y})\")\n        return max(x, y) - min(x, y)\n\n\n    # create events without blocking\n    async def create():\n        my_event.send(4, 6)\n        my_event.send(0, 1)\n    asyncio.run(create())\n\n\n    # or block and collect results from all receivers\n    async def collect():\n        results = await my_event.join(10, 3)\n        assert set(results) == {1000, 7}\n    asyncio.run(collect())\n\n\n    # signals without receivers return no results\n    async def empty():\n        sig = signal(\"unknown\")\n        results = await sig.join(1, \"foo\", None)\n        assert results == []\n    asyncio.run(empty())\n\nNamespaces\n==========\n\nBy default, ``accordian.signal`` creates signals in a global namespace.  You can create your own namespaces to\ngroup signals together.  Here, a processor is passed the region and stage to create deployment tasks::\n\n    from accordian import Namespace\n    regions = {\"east\": Namespace(), \"west\": Namespace()}\n\n\n    @regions[\"east\"].signal(\"dev\").connect\n    async def deploy_east_dev(s3_url, creds):\n        ...\n\n    @regions[\"east\"].signal(\"prod\").connect\n    async def deploy_east_prod(s3_url, creds):\n        # remove pre-prod feature flags\n        await sanitize_prod(s3_url, \"east\")\n        ...\n\n    @regions[\"west\"].signal(\"prod\").connect\n    async def deploy_west_prod(s3_url, creds):\n        # legacy region shims\n        await patch_west_bundle(s3_url)\n        await sanitize_prod(s3_url, \"west\")\n        ...\n\n\n    async def deploy(region, stage):\n        s3_url = await bundle_for_region(region, stage)\n        creds = await creds_for_region(region, stage)\n        signal = regions[region].signal(stage)\n\n        # create the deployment task without waiting\n        signal.send(s3_url, creds)\n\n\n    # create deployment tasks\n    asyncio.run(deploy(\"east\", \"dev\"))\n    asyncio.run(deploy(\"west\", \"prod\"))\n\n\n    # wait for deployments to complete\n    async def wait_for_tasks():\n        running = asyncio.all_tasks()\n        await asyncio.wait(running)\n    asyncio.run(wait_for_tasks())\n\nContributing\n------------\n\nContributions welcome!  Please make sure ``tox`` passes before submitting a PR.\n\nDevelopment\n-----------\n\nTo set up a virtualenv and run the test suite::\n\n    git clone https://github.com/numberoverzero/accordian.git\n    make venv\n    make\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumberoverzero%2Faccordian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumberoverzero%2Faccordian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumberoverzero%2Faccordian/lists"}