{"id":17687969,"url":"https://github.com/marzocchi/rig","last_synced_at":"2026-05-01T09:32:27.902Z","repository":{"id":147909818,"uuid":"279996628","full_name":"marzocchi/rig","owner":"marzocchi","description":"The Rig executes programs and joins the output in a single stream.","archived":false,"fork":false,"pushed_at":"2023-04-13T20:57:06.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-26T06:49:55.900Z","etag":null,"topics":["python","rig","shell"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/marzocchi.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-15T22:44:06.000Z","updated_at":"2024-12-27T14:10:59.000Z","dependencies_parsed_at":"2023-05-27T22:00:15.980Z","dependency_job_id":null,"html_url":"https://github.com/marzocchi/rig","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marzocchi/rig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marzocchi%2Frig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marzocchi%2Frig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marzocchi%2Frig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marzocchi%2Frig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marzocchi","download_url":"https://codeload.github.com/marzocchi/rig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marzocchi%2Frig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["python","rig","shell"],"created_at":"2024-10-24T11:43:01.182Z","updated_at":"2026-05-01T09:32:27.886Z","avatar_url":"https://github.com/marzocchi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"The Rig\n===\n\nThe Rig pipes `STDIN` to some programs listed in a `Rigfile` and presents their `STDOUT` and `STDERR`\nin a single stream.\n\nUsage\n---\n\n```shell\n# report mode, for programs that produce document-like output\n./rig.py report Rigfile\n\n# stream mode, for programs that produce a continuos stream of text,\n# like `tail` (use CTRL-C to stop)\n./rig.py stream Rigfile\n```\n\nA `Rigfile` is a list of programs to execute, one per line and prefixed by a label.\n\n```\ncat \u003e Rigfile \u003c\u003cEOF\nhost-1 psql -h host-1.example.invalid\nhost-2 psql -h host-2.example.invalid\nEOF\n\necho 'SELECT * FROM some_table;' | rig.py report Rigfile\n```\n\nA file whose name ends with `.sh` is executed, and the output is used instead of the file\ncontents, eg.:\n\n```\ncat \u003e Rigfile.sh \u003c\u003cEOF\n#!/bin/sh\nkubectl get pods -o name | sed 's:^pod/::' | while read -r POD\ndo\n    echo \"$POD\" kubectl exec -i \"$POD\" bash\ndone\nEOF\n\necho 'ls -l' | ./rig.py report Rigfile\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarzocchi%2Frig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarzocchi%2Frig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarzocchi%2Frig/lists"}