{"action":"created","issue":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/729","labels_url":"https://api.github.com/repos/giampaolo/psutil/issues/729/labels{/name}","comments_url":"https://api.github.com/repos/giampaolo/psutil/issues/729/comments","events_url":"https://api.github.com/repos/giampaolo/psutil/issues/729/events","html_url":"https://github.com/giampaolo/psutil/issues/729","id":126908839,"number":729,"title":"Is it possible to list net_io_counters for all running processes?","user":{"login":"tonygaetani","id":5572832,"avatar_url":"https://avatars.githubusercontent.com/u/5572832?v=3","gravatar_id":"","url":"https://api.github.com/users/tonygaetani","html_url":"https://github.com/tonygaetani","followers_url":"https://api.github.com/users/tonygaetani/followers","following_url":"https://api.github.com/users/tonygaetani/following{/other_user}","gists_url":"https://api.github.com/users/tonygaetani/gists{/gist_id}","starred_url":"https://api.github.com/users/tonygaetani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonygaetani/subscriptions","organizations_url":"https://api.github.com/users/tonygaetani/orgs","repos_url":"https://api.github.com/users/tonygaetani/repos","events_url":"https://api.github.com/users/tonygaetani/events{/privacy}","received_events_url":"https://api.github.com/users/tonygaetani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-15T16:40:03Z","updated_at":"2016-01-18T11:12:24Z","closed_at":"2016-01-18T11:12:24Z","body":"I want to get the network statistics for all running processes that are owned by a specific user. ```psutil.net_io_counters(pernic=True)``` seems like a really great option for me, but I'd like to get this information for everything in ```/proc```. The ```psutil.process_iter()``` seems like a nice way to navigate ```/proc``` but it's missing ```net_io_counters``` as an attribute. Am I missing something, or would I need to add this functionality to the library?\r\n\r\nI'm looking for something like this:\r\n\r\n```\r\nimport psutil\r\n\r\nfor proc in psutil.process_iter():\r\n    try:\r\n        pinfo = proc.as_dict(attrs=['username', 'net_io_counters'])\r\n    except psutil.NoSuchProcess:\r\n        pass\r\n    else:\r\n        print(pinfo)\r\n```"},"comment":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/comments/172500425","html_url":"https://github.com/giampaolo/psutil/issues/729#issuecomment-172500425","issue_url":"https://api.github.com/repos/giampaolo/psutil/issues/729","id":172500425,"user":{"login":"tonygaetani","id":5572832,"avatar_url":"https://avatars.githubusercontent.com/u/5572832?v=3","gravatar_id":"","url":"https://api.github.com/users/tonygaetani","html_url":"https://github.com/tonygaetani","followers_url":"https://api.github.com/users/tonygaetani/followers","following_url":"https://api.github.com/users/tonygaetani/following{/other_user}","gists_url":"https://api.github.com/users/tonygaetani/gists{/gist_id}","starred_url":"https://api.github.com/users/tonygaetani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonygaetani/subscriptions","organizations_url":"https://api.github.com/users/tonygaetani/orgs","repos_url":"https://api.github.com/users/tonygaetani/repos","events_url":"https://api.github.com/users/tonygaetani/events{/privacy}","received_events_url":"https://api.github.com/users/tonygaetani/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T11:12:24Z","updated_at":"2016-01-18T11:12:24Z","body":"Okay I've made some bad assumptions here. `/proc` just does not contain the information I'm looking for, there's a good explanation of why here: http://unix.stackexchange.com/questions/224201/what-is-proc-pid-net-dev\r\n\r\nI'm going to assume what I'm looking for (network statistics of a single process, rather than system wide network usage) is probably outside of the scope of psutil. Closing..."}}