{"id":24258353,"url":"https://github.com/sillyfreak/concurrentutils","last_synced_at":"2025-09-23T19:56:07.915Z","repository":{"id":57417485,"uuid":"155180930","full_name":"SillyFreak/ConcurrentUtils","owner":"SillyFreak","description":"Concurrency utilities for Python 3.7 + asyncio","archived":false,"fork":false,"pushed_at":"2019-09-03T10:55:03.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-23T16:42:25.321Z","etag":null,"topics":["asyncio","concurrency","python","python-3-7","zeromq"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SillyFreak.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-10-29T08:57:03.000Z","updated_at":"2018-11-02T14:23:26.000Z","dependencies_parsed_at":"2022-09-17T22:01:57.274Z","dependency_job_id":null,"html_url":"https://github.com/SillyFreak/ConcurrentUtils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/SillyFreak/ConcurrentUtils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SillyFreak%2FConcurrentUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SillyFreak%2FConcurrentUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SillyFreak%2FConcurrentUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SillyFreak%2FConcurrentUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SillyFreak","download_url":"https://codeload.github.com/SillyFreak/ConcurrentUtils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SillyFreak%2FConcurrentUtils/sbom","scorecard":{"id":129922,"data":{"date":"2025-08-11","repo":{"name":"github.com/SillyFreak/ConcurrentUtils","commit":"b8cb9676fc061369d48f4812d2f4d26b2c869a25"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Affero General Public License v3.0: 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":"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-16T05:02:18.447Z","repository_id":57417485,"created_at":"2025-08-16T05:02:18.448Z","updated_at":"2025-08-16T05:02:18.448Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276639739,"owners_count":25678179,"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-23T02:00:09.130Z","response_time":73,"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":["asyncio","concurrency","python","python-3-7","zeromq"],"created_at":"2025-01-15T05:37:17.194Z","updated_at":"2025-09-23T19:56:07.854Z","avatar_url":"https://github.com/SillyFreak.png","language":"Python","readme":"Concurrent Utils\n================\n\nMaster: |travis-master|_ |coveralls-master|_\n\nDevelop: |travis-develop|_ |coveralls-develop|_\n\n.. |travis-master| image:: https://travis-ci.org/SillyFreak/ConcurrentUtils.svg?branch=master\n.. _travis-master: https://travis-ci.org/SillyFreak/ConcurrentUtils\n.. |coveralls-master| image:: https://coveralls.io/repos/github/SillyFreak/ConcurrentUtils/badge.svg?branch=master\n.. _coveralls-master: https://coveralls.io/github/SillyFreak/ConcurrentUtils?branch=master\n.. |travis-develop| image:: https://travis-ci.org/SillyFreak/ConcurrentUtils.svg?branch=develop\n.. _travis-develop: https://travis-ci.org/SillyFreak/ConcurrentUtils\n.. |coveralls-develop| image:: https://coveralls.io/repos/github/SillyFreak/ConcurrentUtils/badge.svg?branch=develop\n.. _coveralls-develop: https://coveralls.io/github/SillyFreak/ConcurrentUtils?branch=develop\n\n----\n\nConcurrency utilities for Python 3.7 + asyncio; the main portion is a component abstraction.\nTo support this, some pipe implementations for inter-task, inter-thread, and inter-process communication\nand some serialization utilities are provided as well.\nInter-process communication is based on ZeroMQ.\nFinally a class ``EventLoopThread`` is provided that can be used for bridging synchronous and asynchronous code.\n\nA \"component\" is code that is executing on its own, like an asyncio task, a thread, a worker thread's load, or a process.\nComponents process commands issued by their owner, and create events to be handler by their owner.\nComponents may also produce a result, and of course may communicate with other entities than their owner.\n\nAlthough asyncio is used heavily, the connection between a workload and its owner decouples the two\nto allow for any model of concurrency.\nHere is an example, taken and adapted from the test suite::\n\n    import asyncio\n    from concurrent.futures import ThreadPoolExecutor\n\n    from concurrent_utils.component import Component, component_workload, start_component_in_thread\n\n\n    async def test_thread_component_result_success_and_command():\n        @component_workload\n        async def component(x, *, commands, events):\n            await events.send(Component.EVENT_START)\n            ### startup complete\n\n            # reply to command\n            await commands.send(await commands.recv() + 1)\n\n            # return\n            return x\n\n        e = ThreadPoolExecutor(1)\n        comp = await start_component_in_thread(e, component, 1)\n\n        assert await comp.request(1) == 2\n\n        assert await comp.result() == 1\n\n\n    asyncio.run(test_thread_component_result_success_and_command())\n\nAlthough the component is defined as a coroutine, it is (in this case) not executed on the owner's event loop.\nThe same component could, without modification, be run on the owner's event loop,\nor, with minor modifications to make the ``component`` function pickle-able, be run in a worker process instead.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsillyfreak%2Fconcurrentutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsillyfreak%2Fconcurrentutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsillyfreak%2Fconcurrentutils/lists"}