{"action":"closed","number":214,"pull_request":{"url":"https://api.github.com/repos/tomerfiliba/plumbum/pulls/214","id":43561971,"html_url":"https://github.com/tomerfiliba/plumbum/pull/214","diff_url":"https://github.com/tomerfiliba/plumbum/pull/214.diff","patch_url":"https://github.com/tomerfiliba/plumbum/pull/214.patch","issue_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/214","number":214,"state":"closed","locked":false,"title":"Progress bar","user":{"login":"henryiii","id":4616906,"avatar_url":"https://avatars.githubusercontent.com/u/4616906?v=3","gravatar_id":"","url":"https://api.github.com/users/henryiii","html_url":"https://github.com/henryiii","followers_url":"https://api.github.com/users/henryiii/followers","following_url":"https://api.github.com/users/henryiii/following{/other_user}","gists_url":"https://api.github.com/users/henryiii/gists{/gist_id}","starred_url":"https://api.github.com/users/henryiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryiii/subscriptions","organizations_url":"https://api.github.com/users/henryiii/orgs","repos_url":"https://api.github.com/users/henryiii/repos","events_url":"https://api.github.com/users/henryiii/events{/privacy}","received_events_url":"https://api.github.com/users/henryiii/received_events","type":"User","site_admin":false},"body":"I've added a progress bar to `plumbum.cli.terminal`, with auto sizing and iterator support. To use, simply wrap a slow iterator with `Progress`:\r\n\r\n```python\r\n>>> for value in Progress(BigSlowCalcululationIterator):\r\n    pass\r\n```\r\n\r\nOr use a fast iterator with `.wrap` or use `.range`:\r\n\r\n```python\r\n>>> for value in Progress.range(10):\r\n    # Slow calculations here\r\n    time.sleep(1)\r\n```\r\n\r\nThe output looks like this:\r\n```\r\n[******* 85% *****    ] 0:00:17 completed, 0:00:03 remaining\r\n```\r\n\r\nIPython notebooks are supported, too, through `ProgressAuto` (which selects text or HTML output based on what is available).\r\n\r\nI updated `cli.terminal` docs.\r\n","created_at":"2015-08-27T20:20:12Z","updated_at":"2015-09-15T12:43:49Z","closed_at":"2015-09-15T12:43:49Z","merged_at":"2015-09-15T12:43:49Z","merge_commit_sha":"e2033b7ad8b8e314075fa0e58aac3fcce3a6251c","assignee":{"login":"tomerfiliba","id":53122,"avatar_url":"https://avatars.githubusercontent.com/u/53122?v=3","gravatar_id":"","url":"https://api.github.com/users/tomerfiliba","html_url":"https://github.com/tomerfiliba","followers_url":"https://api.github.com/users/tomerfiliba/followers","following_url":"https://api.github.com/users/tomerfiliba/following{/other_user}","gists_url":"https://api.github.com/users/tomerfiliba/gists{/gist_id}","starred_url":"https://api.github.com/users/tomerfiliba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomerfiliba/subscriptions","organizations_url":"https://api.github.com/users/tomerfiliba/orgs","repos_url":"https://api.github.com/users/tomerfiliba/repos","events_url":"https://api.github.com/users/tomerfiliba/events{/privacy}","received_events_url":"https://api.github.com/users/tomerfiliba/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/tomerfiliba/plumbum/pulls/214/commits","review_comments_url":"https://api.github.com/repos/tomerfiliba/plumbum/pulls/214/comments","review_comment_url":"https://api.github.com/repos/tomerfiliba/plumbum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/214/comments","statuses_url":"https://api.github.com/repos/tomerfiliba/plumbum/statuses/040ed824108eb0e9c82d6d5210ac1b89a54fe6e5","head":{"label":"tomerfiliba:dev","ref":"dev","sha":"040ed824108eb0e9c82d6d5210ac1b89a54fe6e5","user":{"login":"tomerfiliba","id":53122,"avatar_url":"https://avatars.githubusercontent.com/u/53122?v=3","gravatar_id":"","url":"https://api.github.com/users/tomerfiliba","html_url":"https://github.com/tomerfiliba","followers_url":"https://api.github.com/users/tomerfiliba/followers","following_url":"https://api.github.com/users/tomerfiliba/following{/other_user}","gists_url":"https://api.github.com/users/tomerfiliba/gists{/gist_id}","starred_url":"https://api.github.com/users/tomerfiliba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomerfiliba/subscriptions","organizations_url":"https://api.github.com/users/tomerfiliba/orgs","repos_url":"https://api.github.com/users/tomerfiliba/repos","events_url":"https://api.github.com/users/tomerfiliba/events{/privacy}","received_events_url":"https://api.github.com/users/tomerfiliba/received_events","type":"User","site_admin":false},"repo":{"id":4156651,"name":"plumbum","full_name":"tomerfiliba/plumbum","owner":{"login":"tomerfiliba","id":53122,"avatar_url":"https://avatars.githubusercontent.com/u/53122?v=3","gravatar_id":"","url":"https://api.github.com/users/tomerfiliba","html_url":"https://github.com/tomerfiliba","followers_url":"https://api.github.com/users/tomerfiliba/followers","following_url":"https://api.github.com/users/tomerfiliba/following{/other_user}","gists_url":"https://api.github.com/users/tomerfiliba/gists{/gist_id}","starred_url":"https://api.github.com/users/tomerfiliba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomerfiliba/subscriptions","organizations_url":"https://api.github.com/users/tomerfiliba/orgs","repos_url":"https://api.github.com/users/tomerfiliba/repos","events_url":"https://api.github.com/users/tomerfiliba/events{/privacy}","received_events_url":"https://api.github.com/users/tomerfiliba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomerfiliba/plumbum","description":"Plumbum: Shell Combinators","fork":false,"url":"https://api.github.com/repos/tomerfiliba/plumbum","forks_url":"https://api.github.com/repos/tomerfiliba/plumbum/forks","keys_url":"https://api.github.com/repos/tomerfiliba/plumbum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomerfiliba/plumbum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomerfiliba/plumbum/teams","hooks_url":"https://api.github.com/repos/tomerfiliba/plumbum/hooks","issue_events_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/events{/number}","events_url":"https://api.github.com/repos/tomerfiliba/plumbum/events","assignees_url":"https://api.github.com/repos/tomerfiliba/plumbum/assignees{/user}","branches_url":"https://api.github.com/repos/tomerfiliba/plumbum/branches{/branch}","tags_url":"https://api.github.com/repos/tomerfiliba/plumbum/tags","blobs_url":"https://api.github.com/repos/tomerfiliba/plumbum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomerfiliba/plumbum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomerfiliba/plumbum/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomerfiliba/plumbum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomerfiliba/plumbum/statuses/{sha}","languages_url":"https://api.github.com/repos/tomerfiliba/plumbum/languages","stargazers_url":"https://api.github.com/repos/tomerfiliba/plumbum/stargazers","contributors_url":"https://api.github.com/repos/tomerfiliba/plumbum/contributors","subscribers_url":"https://api.github.com/repos/tomerfiliba/plumbum/subscribers","subscription_url":"https://api.github.com/repos/tomerfiliba/plumbum/subscription","commits_url":"https://api.github.com/repos/tomerfiliba/plumbum/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomerfiliba/plumbum/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomerfiliba/plumbum/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomerfiliba/plumbum/contents/{+path}","compare_url":"https://api.github.com/repos/tomerfiliba/plumbum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomerfiliba/plumbum/merges","archive_url":"https://api.github.com/repos/tomerfiliba/plumbum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomerfiliba/plumbum/downloads","issues_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues{/number}","pulls_url":"https://api.github.com/repos/tomerfiliba/plumbum/pulls{/number}","milestones_url":"https://api.github.com/repos/tomerfiliba/plumbum/milestones{/number}","notifications_url":"https://api.github.com/repos/tomerfiliba/plumbum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomerfiliba/plumbum/labels{/name}","releases_url":"https://api.github.com/repos/tomerfiliba/plumbum/releases{/id}","created_at":"2012-04-27T08:51:34Z","updated_at":"2015-09-14T17:32:46Z","pushed_at":"2015-09-15T12:43:49Z","git_url":"git://github.com/tomerfiliba/plumbum.git","ssh_url":"git@github.com:tomerfiliba/plumbum.git","clone_url":"https://github.com/tomerfiliba/plumbum.git","svn_url":"https://github.com/tomerfiliba/plumbum","homepage":"http://plumbum.readthedocs.org","size":2457,"stargazers_count":827,"watchers_count":827,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":77,"mirror_url":null,"open_issues_count":10,"forks":77,"open_issues":10,"watchers":827,"default_branch":"master"}},"base":{"label":"tomerfiliba:master","ref":"master","sha":"5d42308dcd683ad06206f4b2d92213e42a8df44a","user":{"login":"tomerfiliba","id":53122,"avatar_url":"https://avatars.githubusercontent.com/u/53122?v=3","gravatar_id":"","url":"https://api.github.com/users/tomerfiliba","html_url":"https://github.com/tomerfiliba","followers_url":"https://api.github.com/users/tomerfiliba/followers","following_url":"https://api.github.com/users/tomerfiliba/following{/other_user}","gists_url":"https://api.github.com/users/tomerfiliba/gists{/gist_id}","starred_url":"https://api.github.com/users/tomerfiliba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomerfiliba/subscriptions","organizations_url":"https://api.github.com/users/tomerfiliba/orgs","repos_url":"https://api.github.com/users/tomerfiliba/repos","events_url":"https://api.github.com/users/tomerfiliba/events{/privacy}","received_events_url":"https://api.github.com/users/tomerfiliba/received_events","type":"User","site_admin":false},"repo":{"id":4156651,"name":"plumbum","full_name":"tomerfiliba/plumbum","owner":{"login":"tomerfiliba","id":53122,"avatar_url":"https://avatars.githubusercontent.com/u/53122?v=3","gravatar_id":"","url":"https://api.github.com/users/tomerfiliba","html_url":"https://github.com/tomerfiliba","followers_url":"https://api.github.com/users/tomerfiliba/followers","following_url":"https://api.github.com/users/tomerfiliba/following{/other_user}","gists_url":"https://api.github.com/users/tomerfiliba/gists{/gist_id}","starred_url":"https://api.github.com/users/tomerfiliba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomerfiliba/subscriptions","organizations_url":"https://api.github.com/users/tomerfiliba/orgs","repos_url":"https://api.github.com/users/tomerfiliba/repos","events_url":"https://api.github.com/users/tomerfiliba/events{/privacy}","received_events_url":"https://api.github.com/users/tomerfiliba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomerfiliba/plumbum","description":"Plumbum: Shell Combinators","fork":false,"url":"https://api.github.com/repos/tomerfiliba/plumbum","forks_url":"https://api.github.com/repos/tomerfiliba/plumbum/forks","keys_url":"https://api.github.com/repos/tomerfiliba/plumbum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomerfiliba/plumbum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomerfiliba/plumbum/teams","hooks_url":"https://api.github.com/repos/tomerfiliba/plumbum/hooks","issue_events_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/events{/number}","events_url":"https://api.github.com/repos/tomerfiliba/plumbum/events","assignees_url":"https://api.github.com/repos/tomerfiliba/plumbum/assignees{/user}","branches_url":"https://api.github.com/repos/tomerfiliba/plumbum/branches{/branch}","tags_url":"https://api.github.com/repos/tomerfiliba/plumbum/tags","blobs_url":"https://api.github.com/repos/tomerfiliba/plumbum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomerfiliba/plumbum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomerfiliba/plumbum/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomerfiliba/plumbum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomerfiliba/plumbum/statuses/{sha}","languages_url":"https://api.github.com/repos/tomerfiliba/plumbum/languages","stargazers_url":"https://api.github.com/repos/tomerfiliba/plumbum/stargazers","contributors_url":"https://api.github.com/repos/tomerfiliba/plumbum/contributors","subscribers_url":"https://api.github.com/repos/tomerfiliba/plumbum/subscribers","subscription_url":"https://api.github.com/repos/tomerfiliba/plumbum/subscription","commits_url":"https://api.github.com/repos/tomerfiliba/plumbum/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomerfiliba/plumbum/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomerfiliba/plumbum/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomerfiliba/plumbum/contents/{+path}","compare_url":"https://api.github.com/repos/tomerfiliba/plumbum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomerfiliba/plumbum/merges","archive_url":"https://api.github.com/repos/tomerfiliba/plumbum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomerfiliba/plumbum/downloads","issues_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues{/number}","pulls_url":"https://api.github.com/repos/tomerfiliba/plumbum/pulls{/number}","milestones_url":"https://api.github.com/repos/tomerfiliba/plumbum/milestones{/number}","notifications_url":"https://api.github.com/repos/tomerfiliba/plumbum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomerfiliba/plumbum/labels{/name}","releases_url":"https://api.github.com/repos/tomerfiliba/plumbum/releases{/id}","created_at":"2012-04-27T08:51:34Z","updated_at":"2015-09-14T17:32:46Z","pushed_at":"2015-09-15T12:43:49Z","git_url":"git://github.com/tomerfiliba/plumbum.git","ssh_url":"git@github.com:tomerfiliba/plumbum.git","clone_url":"https://github.com/tomerfiliba/plumbum.git","svn_url":"https://github.com/tomerfiliba/plumbum","homepage":"http://plumbum.readthedocs.org","size":2457,"stargazers_count":827,"watchers_count":827,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":77,"mirror_url":null,"open_issues_count":10,"forks":77,"open_issues":10,"watchers":827,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomerfiliba/plumbum/pulls/214"},"html":{"href":"https://github.com/tomerfiliba/plumbum/pull/214"},"issue":{"href":"https://api.github.com/repos/tomerfiliba/plumbum/issues/214"},"comments":{"href":"https://api.github.com/repos/tomerfiliba/plumbum/issues/214/comments"},"review_comments":{"href":"https://api.github.com/repos/tomerfiliba/plumbum/pulls/214/comments"},"review_comment":{"href":"https://api.github.com/repos/tomerfiliba/plumbum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomerfiliba/plumbum/pulls/214/commits"},"statuses":{"href":"https://api.github.com/repos/tomerfiliba/plumbum/statuses/040ed824108eb0e9c82d6d5210ac1b89a54fe6e5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tomerfiliba","id":53122,"avatar_url":"https://avatars.githubusercontent.com/u/53122?v=3","gravatar_id":"","url":"https://api.github.com/users/tomerfiliba","html_url":"https://github.com/tomerfiliba","followers_url":"https://api.github.com/users/tomerfiliba/followers","following_url":"https://api.github.com/users/tomerfiliba/following{/other_user}","gists_url":"https://api.github.com/users/tomerfiliba/gists{/gist_id}","starred_url":"https://api.github.com/users/tomerfiliba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomerfiliba/subscriptions","organizations_url":"https://api.github.com/users/tomerfiliba/orgs","repos_url":"https://api.github.com/users/tomerfiliba/repos","events_url":"https://api.github.com/users/tomerfiliba/events{/privacy}","received_events_url":"https://api.github.com/users/tomerfiliba/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":6,"additions":373,"deletions":79,"changed_files":6}}