{"id":17311432,"url":"https://github.com/sumerc/concurry","last_synced_at":"2025-08-25T19:02:35.997Z","repository":{"id":66170248,"uuid":"254490187","full_name":"sumerc/concurry","owner":"sumerc","description":"Run your terminal commands in parallel (with some nifty options and colors)","archived":false,"fork":false,"pushed_at":"2020-11-17T10:04:00.000Z","size":790,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T03:41:22.657Z","etag":null,"topics":["concurrency","golang","parallel","shell","terminal"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sumerc.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-04-09T22:20:12.000Z","updated_at":"2023-04-19T18:36:01.000Z","dependencies_parsed_at":"2024-01-15T07:05:20.039Z","dependency_job_id":null,"html_url":"https://github.com/sumerc/concurry","commit_stats":{"total_commits":56,"total_committers":2,"mean_commits":28.0,"dds":0.3928571428571429,"last_synced_commit":"ac5ac9dd9c2bb7ea750f32ce4aab58c5fb8a4690"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumerc%2Fconcurry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumerc%2Fconcurry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumerc%2Fconcurry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumerc%2Fconcurry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumerc","download_url":"https://codeload.github.com/sumerc/concurry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248898720,"owners_count":21179830,"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","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":["concurrency","golang","parallel","shell","terminal"],"created_at":"2024-10-15T12:40:35.562Z","updated_at":"2025-04-14T14:43:20.092Z","avatar_url":"https://github.com/sumerc.png","language":"Go","readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/sumerc/concurry/blob/master/screenshot.png?raw=true\" alt=\"concurry\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003econcurry\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    Run your terminal commands in parallel (with some nifty options and colors)\n\u003c/p\u003e\n\n![version: 1.0](https://img.shields.io/badge/version-1.0-green.svg?style=flat-square)\n![language: go](https://img.shields.io/badge/language-go-blue.svg?style=flat-square) \n![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square) \n\n## Motivation\n\nI happen to run lots of concurrent scripts in terminal with various requirements. This is especially true\nwhen you maintain a [Python library](https://github.com/sumerc/yappi) that aims to run on all supported Python \nversions. I run unittests on different versions of Python(via pyenv) all the time.\n\nWith concurry running concurrent tests locally via pyenv becomes pretty easy:\n\n```bash\npyenv-matrix \"python -m unittest discover\" | concurry\n```\n\nI know there are already lots of good software doing this kind of work already but \nI would especially want to specialize on generating a better/cleaner output with maybe\ncolors and maybe some UI work in the future via ncurses... Not sure.\n\nAnd did I mention it colorizes the commands and their outputs?\n\n## Examples:\n\n### Repeat commands (both syncronously and concurrently)\n\n```bash\n» echo \"sleep 1\" | concurry -n=2 -rc=True\n2020/04/22 23:05:34 (Task-1) Executing 'sleep 1'\n2020/04/22 23:05:34 (Task-2) Executing 'sleep 1'\n2020/04/22 23:05:35 (Task-2) 'sleep 1' succeeded. [1.004634221s]\n2020/04/22 23:05:35 (Task-1) 'sleep 1' succeeded. [1.005176089s]\n2020/04/22 23:05:35 Total elapsed: 1.005404569s\n» echo \"sleep 1\" | concurry -n=2\n2020/04/22 23:05:40 (Task-1) Executing 'sleep 1'\n2020/04/22 23:05:41 (Task-2) Executing 'sleep 1'\n2020/04/22 23:05:42 (Task-1) 'sleep 1' succeeded. [1.001172707s]\n2020/04/22 23:05:42 (Task-2) 'sleep 1' succeeded. [1.001278251s]\n2020/04/22 23:05:42 Total elapsed: 2.004980207s\n```\n\n### Run multiple commands concurrently\n\nFeed command(s) string to concurry via pipe\n\n```bash\n» cat long_script | concurry\n2020/04/22 23:12:35 (Task-4) Executing 'sleep 1'\n2020/04/22 23:12:35 (Task-1) Executing 'sleep 1'\n2020/04/22 23:12:35 (Task-2) Executing 'sleep 1'\n2020/04/22 23:12:35 (Task-3) Executing 'sleep 1'\n2020/04/22 23:12:36 (Task-4) 'sleep 1' succeeded. [1.001739171s]\n2020/04/22 23:12:36 (Task-3) 'sleep 1' succeeded. [1.001723235s]\n2020/04/22 23:12:36 (Task-1) 'sleep 1' succeeded. [1.001945581s]\n2020/04/22 23:12:36 (Task-2) 'sleep 1' succeeded. [1.00211696s]\n2020/04/22 23:12:36 Total elapsed: 1.002296034s\n```\n\n### Run Python unittests in all available Pyenv versions\n\n`pyenv-matrix` takes a python command string and generates the commands necessary\nto initialize and run the given command in all pyenv versions available in the system.\nThe command string should be in the form of `python \u003cargs\u003e`. It should start with \nstring `python` that is what `pyenv-matrix` will change.\n\n```bash\n» pyenv versions --bare\n2.7.17-debug\n3.5.9-debug\n3.6.10-debug\n3.7.7-debug\n3.8.2-debug\n3.9-dev-debug\n» pyenv-matrix \"python -m unittest discover\"\n/home/supo/.pyenv/versions/2.7.17-debug/bin/python -m unittest discover\n/home/supo/.pyenv/versions/3.5.9-debug/bin/python -m unittest discover\n/home/supo/.pyenv/versions/3.6.10-debug/bin/python -m unittest discover\n/home/supo/.pyenv/versions/3.7.7-debug/bin/python -m unittest discover\n/home/supo/.pyenv/versions/3.8.2-debug/bin/python -m unittest discover\n/home/supo/.pyenv/versions/3.9-dev-debug/bin/python -m unittest discover\n```\n\nFeed above output to concurry:\n\n```bash\n» pyenv-matrix \"python -m unittest discover\" | concurry -o=False\n2020/04/22 23:23:45 (Task-1) Executing '/home/supo/.pyenv/versions/2.7.17-debug/bin/python -m unittest discover'\n2020/04/22 23:23:45 (Task-2) Executing '/home/supo/.pyenv/versions/3.5.9-debug/bin/python -m unittest discover'\n2020/04/22 23:23:45 (Task-3) Executing '/home/supo/.pyenv/versions/3.6.10-debug/bin/python -m unittest discover'\n2020/04/22 23:23:45 (Task-4) Executing '/home/supo/.pyenv/versions/3.7.7-debug/bin/python -m unittest discover'\n2020/04/22 23:23:45 (Task-6) Executing '/home/supo/.pyenv/versions/3.9-dev-debug/bin/python -m unittest discover'\n2020/04/22 23:23:45 (Task-5) Executing '/home/supo/.pyenv/versions/3.8.2-debug/bin/python -m unittest discover'\n2020/04/22 23:24:08 (Task-1) '/home/supo/.pyenv/versions/2.7.17-debug/bin/python -m unittest discover' succeeded. [16.242247607s]\n2020/04/22 23:24:08 (Task-2) '/home/supo/.pyenv/versions/3.5.9-debug/bin/python -m unittest discover' succeeded. [22.282859586s]\n2020/04/22 23:24:08 (Task-3) '/home/supo/.pyenv/versions/3.6.10-debug/bin/python -m unittest discover' succeeded. [22.417325148s]\n2020/04/22 23:24:08 (Task-4) '/home/supo/.pyenv/versions/3.7.7-debug/bin/python -m unittest discover' succeeded. [22.465179853s]\n2020/04/22 23:24:08 (Task-5) '/home/supo/.pyenv/versions/3.8.2-debug/bin/python -m unittest discover' succeeded. [22.498331961s]\n2020/04/22 23:24:08 (Task-6) '/home/supo/.pyenv/versions/3.9-dev-debug/bin/python -m unittest discover' succeeded. [22.854892308s]\n2020/04/22 23:24:08 Total elapsed: 22.997623419s\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumerc%2Fconcurry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumerc%2Fconcurry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumerc%2Fconcurry/lists"}