{"id":13877920,"url":"https://github.com/ruby/open3","last_synced_at":"2025-05-16T11:03:48.614Z","repository":{"id":42977433,"uuid":"200769714","full_name":"ruby/open3","owner":"ruby","description":"Open3 gives you access to stdin, stdout, and stderr when running other programs.","archived":false,"fork":false,"pushed_at":"2023-12-16T03:47:01.000Z","size":167,"stargazers_count":105,"open_issues_count":2,"forks_count":10,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-04-09T04:08:02.796Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2019-08-06T03:30:00.000Z","updated_at":"2025-02-11T21:34:41.000Z","dependencies_parsed_at":"2023-01-28T17:15:39.581Z","dependency_job_id":"5eedd7b0-ea98-4abb-a5bb-e3211da2ac4b","html_url":"https://github.com/ruby/open3","commit_stats":{"total_commits":108,"total_committers":27,"mean_commits":4.0,"dds":0.7037037037037037,"last_synced_commit":"38904e204d92dbf92f7051af37e74365bd37e4d7"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fopen3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fopen3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fopen3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fopen3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/open3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518384,"owners_count":22084374,"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":["ruby"],"created_at":"2024-08-06T08:01:34.900Z","updated_at":"2025-05-16T11:03:48.591Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# Open3\n\nOpen3 gives you access to stdin, stdout, and stderr when running other\nprograms.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'open3'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install open3\n\n## Usage\n\nOpen3 grants you access to stdin, stdout, stderr and a thread to wait for the child process when running another program.\nYou can specify various attributes, redirections, current directory, etc., of the program in the same way as for Process.spawn.\n\n- Open3.popen3 : pipes for stdin, stdout, stderr\n- Open3.popen2 : pipes for stdin, stdout\n- Open3.popen2e : pipes for stdin, merged stdout and stderr\n- Open3.capture3 : give a string for stdin; get strings for stdout, stderr\n- Open3.capture2 : give a string for stdin; get a string for stdout\n- Open3.capture2e : give a string for stdin; get a string for merged stdout and stderr\n- Open3.pipeline_rw : pipes for first stdin and last stdout of a pipeline\n- Open3.pipeline_r : pipe for last stdout of a pipeline\n- Open3.pipeline_w : pipe for first stdin of a pipeline\n- Open3.pipeline_start : run a pipeline without waiting\n- Open3.pipeline : run a pipeline and wait for its completion\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/open3.\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fopen3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fopen3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fopen3/lists"}