{"action":"created","comment":{"url":"https://api.github.com/repos/giampaolo/psutil/pulls/comments/22399506","id":22399506,"diff_hunk":"@@ -0,0 +1,31 @@\n+#!/usr/bin/env python\n+\n+\"\"\"\n+A clone of 'pidof' cmdline utility.\n+$ pidof  /usr/bin/python\n+1140 1138 1136 1134 1133 1129 1127 1125 1121 1120 1119\n+\"\"\"\n+","path":"examples/pidof.py","position":8,"original_position":8,"commit_id":"d8e1cedbba4e88224f673a84115d7a0d17ea2e51","original_commit_id":"d8e1cedbba4e88224f673a84115d7a0d17ea2e51","user":{"login":"giampaolo","id":681260,"avatar_url":"https://avatars.githubusercontent.com/u/681260?v=3","gravatar_id":"","url":"https://api.github.com/users/giampaolo","html_url":"https://github.com/giampaolo","followers_url":"https://api.github.com/users/giampaolo/followers","following_url":"https://api.github.com/users/giampaolo/following{/other_user}","gists_url":"https://api.github.com/users/giampaolo/gists{/gist_id}","starred_url":"https://api.github.com/users/giampaolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giampaolo/subscriptions","organizations_url":"https://api.github.com/users/giampaolo/orgs","repos_url":"https://api.github.com/users/giampaolo/repos","events_url":"https://api.github.com/users/giampaolo/events{/privacy}","received_events_url":"https://api.github.com/users/giampaolo/received_events","type":"User","site_admin":false},"body":"from __future__ import print_function\r\n","created_at":"2015-01-01T13:04:27Z","updated_at":"2015-01-01T13:04:27Z","html_url":"https://github.com/giampaolo/psutil/pull/568#discussion_r22399506","pull_request_url":"https://api.github.com/repos/giampaolo/psutil/pulls/568","_links":{"self":{"href":"https://api.github.com/repos/giampaolo/psutil/pulls/comments/22399506"},"html":{"href":"https://github.com/giampaolo/psutil/pull/568#discussion_r22399506"},"pull_request":{"href":"https://api.github.com/repos/giampaolo/psutil/pulls/568"}}},"pull_request":{"url":"https://api.github.com/repos/giampaolo/psutil/pulls/568","id":26742953,"html_url":"https://github.com/giampaolo/psutil/pull/568","diff_url":"https://github.com/giampaolo/psutil/pull/568.diff","patch_url":"https://github.com/giampaolo/psutil/pull/568.patch","issue_url":"https://api.github.com/repos/giampaolo/psutil/issues/568","number":568,"state":"open","locked":false,"title":"example/pidof.py same as pidof cli tool mentioned in TODO:","user":{"login":"karthikrev","id":1799988,"avatar_url":"https://avatars.githubusercontent.com/u/1799988?v=3","gravatar_id":"","url":"https://api.github.com/users/karthikrev","html_url":"https://github.com/karthikrev","followers_url":"https://api.github.com/users/karthikrev/followers","following_url":"https://api.github.com/users/karthikrev/following{/other_user}","gists_url":"https://api.github.com/users/karthikrev/gists{/gist_id}","starred_url":"https://api.github.com/users/karthikrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthikrev/subscriptions","organizations_url":"https://api.github.com/users/karthikrev/orgs","repos_url":"https://api.github.com/users/karthikrev/repos","events_url":"https://api.github.com/users/karthikrev/events{/privacy}","received_events_url":"https://api.github.com/users/karthikrev/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-01T13:01:33Z","updated_at":"2015-01-01T13:04:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7d6a1fffe78fae1a4df15b508c51b0f7dfd0abc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/giampaolo/psutil/pulls/568/commits","review_comments_url":"https://api.github.com/repos/giampaolo/psutil/pulls/568/comments","review_comment_url":"https://api.github.com/repos/giampaolo/psutil/pulls/comments/{number}","comments_url":"https://api.github.com/repos/giampaolo/psutil/issues/568/comments","statuses_url":"https://api.github.com/repos/giampaolo/psutil/statuses/d8e1cedbba4e88224f673a84115d7a0d17ea2e51","head":{"label":"karthikrev:master","ref":"master","sha":"d8e1cedbba4e88224f673a84115d7a0d17ea2e51","user":{"login":"karthikrev","id":1799988,"avatar_url":"https://avatars.githubusercontent.com/u/1799988?v=3","gravatar_id":"","url":"https://api.github.com/users/karthikrev","html_url":"https://github.com/karthikrev","followers_url":"https://api.github.com/users/karthikrev/followers","following_url":"https://api.github.com/users/karthikrev/following{/other_user}","gists_url":"https://api.github.com/users/karthikrev/gists{/gist_id}","starred_url":"https://api.github.com/users/karthikrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthikrev/subscriptions","organizations_url":"https://api.github.com/users/karthikrev/orgs","repos_url":"https://api.github.com/users/karthikrev/repos","events_url":"https://api.github.com/users/karthikrev/events{/privacy}","received_events_url":"https://api.github.com/users/karthikrev/received_events","type":"User","site_admin":false},"repo":{"id":28686135,"name":"psutil","full_name":"karthikrev/psutil","owner":{"login":"karthikrev","id":1799988,"avatar_url":"https://avatars.githubusercontent.com/u/1799988?v=3","gravatar_id":"","url":"https://api.github.com/users/karthikrev","html_url":"https://github.com/karthikrev","followers_url":"https://api.github.com/users/karthikrev/followers","following_url":"https://api.github.com/users/karthikrev/following{/other_user}","gists_url":"https://api.github.com/users/karthikrev/gists{/gist_id}","starred_url":"https://api.github.com/users/karthikrev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthikrev/subscriptions","organizations_url":"https://api.github.com/users/karthikrev/orgs","repos_url":"https://api.github.com/users/karthikrev/repos","events_url":"https://api.github.com/users/karthikrev/events{/privacy}","received_events_url":"https://api.github.com/users/karthikrev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karthikrev/psutil","description":"A cross-platform process and system utilities module for Python","fork":true,"url":"https://api.github.com/repos/karthikrev/psutil","forks_url":"https://api.github.com/repos/karthikrev/psutil/forks","keys_url":"https://api.github.com/repos/karthikrev/psutil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karthikrev/psutil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karthikrev/psutil/teams","hooks_url":"https://api.github.com/repos/karthikrev/psutil/hooks","issue_events_url":"https://api.github.com/repos/karthikrev/psutil/issues/events{/number}","events_url":"https://api.github.com/repos/karthikrev/psutil/events","assignees_url":"https://api.github.com/repos/karthikrev/psutil/assignees{/user}","branches_url":"https://api.github.com/repos/karthikrev/psutil/branches{/branch}","tags_url":"https://api.github.com/repos/karthikrev/psutil/tags","blobs_url":"https://api.github.com/repos/karthikrev/psutil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karthikrev/psutil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karthikrev/psutil/git/refs{/sha}","trees_url":"https://api.github.com/repos/karthikrev/psutil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karthikrev/psutil/statuses/{sha}","languages_url":"https://api.github.com/repos/karthikrev/psutil/languages","stargazers_url":"https://api.github.com/repos/karthikrev/psutil/stargazers","contributors_url":"https://api.github.com/repos/karthikrev/psutil/contributors","subscribers_url":"https://api.github.com/repos/karthikrev/psutil/subscribers","subscription_url":"https://api.github.com/repos/karthikrev/psutil/subscription","commits_url":"https://api.github.com/repos/karthikrev/psutil/commits{/sha}","git_commits_url":"https://api.github.com/repos/karthikrev/psutil/git/commits{/sha}","comments_url":"https://api.github.com/repos/karthikrev/psutil/comments{/number}","issue_comment_url":"https://api.github.com/repos/karthikrev/psutil/issues/comments/{number}","contents_url":"https://api.github.com/repos/karthikrev/psutil/contents/{+path}","compare_url":"https://api.github.com/repos/karthikrev/psutil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karthikrev/psutil/merges","archive_url":"https://api.github.com/repos/karthikrev/psutil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karthikrev/psutil/downloads","issues_url":"https://api.github.com/repos/karthikrev/psutil/issues{/number}","pulls_url":"https://api.github.com/repos/karthikrev/psutil/pulls{/number}","milestones_url":"https://api.github.com/repos/karthikrev/psutil/milestones{/number}","notifications_url":"https://api.github.com/repos/karthikrev/psutil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karthikrev/psutil/labels{/name}","releases_url":"https://api.github.com/repos/karthikrev/psutil/releases{/id}","created_at":"2015-01-01T12:24:37Z","updated_at":"2015-01-01T13:00:11Z","pushed_at":"2015-01-01T13:00:11Z","git_url":"git://github.com/karthikrev/psutil.git","ssh_url":"git@github.com:karthikrev/psutil.git","clone_url":"https://github.com/karthikrev/psutil.git","svn_url":"https://github.com/karthikrev/psutil","homepage":null,"size":25971,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"giampaolo:master","ref":"master","sha":"a96bb68b463674775e53a887cf9b53dfb0225dbb","user":{"login":"giampaolo","id":681260,"avatar_url":"https://avatars.githubusercontent.com/u/681260?v=3","gravatar_id":"","url":"https://api.github.com/users/giampaolo","html_url":"https://github.com/giampaolo","followers_url":"https://api.github.com/users/giampaolo/followers","following_url":"https://api.github.com/users/giampaolo/following{/other_user}","gists_url":"https://api.github.com/users/giampaolo/gists{/gist_id}","starred_url":"https://api.github.com/users/giampaolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giampaolo/subscriptions","organizations_url":"https://api.github.com/users/giampaolo/orgs","repos_url":"https://api.github.com/users/giampaolo/repos","events_url":"https://api.github.com/users/giampaolo/events{/privacy}","received_events_url":"https://api.github.com/users/giampaolo/received_events","type":"User","site_admin":false},"repo":{"id":20101515,"name":"psutil","full_name":"giampaolo/psutil","owner":{"login":"giampaolo","id":681260,"avatar_url":"https://avatars.githubusercontent.com/u/681260?v=3","gravatar_id":"","url":"https://api.github.com/users/giampaolo","html_url":"https://github.com/giampaolo","followers_url":"https://api.github.com/users/giampaolo/followers","following_url":"https://api.github.com/users/giampaolo/following{/other_user}","gists_url":"https://api.github.com/users/giampaolo/gists{/gist_id}","starred_url":"https://api.github.com/users/giampaolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giampaolo/subscriptions","organizations_url":"https://api.github.com/users/giampaolo/orgs","repos_url":"https://api.github.com/users/giampaolo/repos","events_url":"https://api.github.com/users/giampaolo/events{/privacy}","received_events_url":"https://api.github.com/users/giampaolo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/giampaolo/psutil","description":"A cross-platform process and system utilities module for Python","fork":false,"url":"https://api.github.com/repos/giampaolo/psutil","forks_url":"https://api.github.com/repos/giampaolo/psutil/forks","keys_url":"https://api.github.com/repos/giampaolo/psutil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giampaolo/psutil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giampaolo/psutil/teams","hooks_url":"https://api.github.com/repos/giampaolo/psutil/hooks","issue_events_url":"https://api.github.com/repos/giampaolo/psutil/issues/events{/number}","events_url":"https://api.github.com/repos/giampaolo/psutil/events","assignees_url":"https://api.github.com/repos/giampaolo/psutil/assignees{/user}","branches_url":"https://api.github.com/repos/giampaolo/psutil/branches{/branch}","tags_url":"https://api.github.com/repos/giampaolo/psutil/tags","blobs_url":"https://api.github.com/repos/giampaolo/psutil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giampaolo/psutil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giampaolo/psutil/git/refs{/sha}","trees_url":"https://api.github.com/repos/giampaolo/psutil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giampaolo/psutil/statuses/{sha}","languages_url":"https://api.github.com/repos/giampaolo/psutil/languages","stargazers_url":"https://api.github.com/repos/giampaolo/psutil/stargazers","contributors_url":"https://api.github.com/repos/giampaolo/psutil/contributors","subscribers_url":"https://api.github.com/repos/giampaolo/psutil/subscribers","subscription_url":"https://api.github.com/repos/giampaolo/psutil/subscription","commits_url":"https://api.github.com/repos/giampaolo/psutil/commits{/sha}","git_commits_url":"https://api.github.com/repos/giampaolo/psutil/git/commits{/sha}","comments_url":"https://api.github.com/repos/giampaolo/psutil/comments{/number}","issue_comment_url":"https://api.github.com/repos/giampaolo/psutil/issues/comments/{number}","contents_url":"https://api.github.com/repos/giampaolo/psutil/contents/{+path}","compare_url":"https://api.github.com/repos/giampaolo/psutil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giampaolo/psutil/merges","archive_url":"https://api.github.com/repos/giampaolo/psutil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giampaolo/psutil/downloads","issues_url":"https://api.github.com/repos/giampaolo/psutil/issues{/number}","pulls_url":"https://api.github.com/repos/giampaolo/psutil/pulls{/number}","milestones_url":"https://api.github.com/repos/giampaolo/psutil/milestones{/number}","notifications_url":"https://api.github.com/repos/giampaolo/psutil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giampaolo/psutil/labels{/name}","releases_url":"https://api.github.com/repos/giampaolo/psutil/releases{/id}","created_at":"2014-05-23T14:01:48Z","updated_at":"2015-01-01T12:54:27Z","pushed_at":"2015-01-01T12:54:27Z","git_url":"git://github.com/giampaolo/psutil.git","ssh_url":"git@github.com:giampaolo/psutil.git","clone_url":"https://github.com/giampaolo/psutil.git","svn_url":"https://github.com/giampaolo/psutil","homepage":null,"size":25971,"stargazers_count":481,"watchers_count":481,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":76,"forks":66,"open_issues":76,"watchers":481,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/giampaolo/psutil/pulls/568"},"html":{"href":"https://github.com/giampaolo/psutil/pull/568"},"issue":{"href":"https://api.github.com/repos/giampaolo/psutil/issues/568"},"comments":{"href":"https://api.github.com/repos/giampaolo/psutil/issues/568/comments"},"review_comments":{"href":"https://api.github.com/repos/giampaolo/psutil/pulls/568/comments"},"review_comment":{"href":"https://api.github.com/repos/giampaolo/psutil/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/giampaolo/psutil/pulls/568/commits"},"statuses":{"href":"https://api.github.com/repos/giampaolo/psutil/statuses/d8e1cedbba4e88224f673a84115d7a0d17ea2e51"}}}}