{"id":15655378,"url":"https://github.com/nlevitt/psutilz","last_synced_at":"2025-03-30T01:41:34.054Z","repository":{"id":138585373,"uuid":"238151059","full_name":"nlevitt/psutilz","owner":"nlevitt","description":"utilities built on the psutil library","archived":false,"fork":false,"pushed_at":"2023-08-16T18:27:15.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T03:57:11.253Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlevitt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-04T07:47:17.000Z","updated_at":"2022-12-08T09:09:54.000Z","dependencies_parsed_at":"2024-10-23T04:23:33.094Z","dependency_job_id":null,"html_url":"https://github.com/nlevitt/psutilz","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.09999999999999998,"last_synced_commit":"f5168d479bb3e1faae3b58ca7bc5830dcb72d544"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlevitt%2Fpsutilz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlevitt%2Fpsutilz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlevitt%2Fpsutilz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlevitt%2Fpsutilz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlevitt","download_url":"https://codeload.github.com/nlevitt/psutilz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246266254,"owners_count":20749754,"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":[],"created_at":"2024-10-03T12:58:37.762Z","updated_at":"2025-03-30T01:41:34.033Z","avatar_url":"https://github.com/nlevitt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# psutilz\n\nUtilities built on the psutil library\n\n## pslisten\n\nPrints information about processes listening on ports (TCP and UDP, IPv4 and IPv6).\n\n```\n$ sudo pslisten\nPROTO                        HOST  PORT           USER   PID  PPID NIC  %CPU  %MEM   #TH              STARTED COMMAND\n UDP4                     0.0.0.0   137       _netbios 60612     1  20   0.0   0.0     2  2022-12-08 03:03:43 /usr/sbin/netbiosd\n UDP4                     0.0.0.0   137           root     1     0   0   0.0   0.0     3  2022-12-01 00:00:50 /sbin/launchd\n UDP4                     0.0.0.0   138       _netbios 60612     1  20   0.0   0.0     2  2022-12-08 03:03:43 /usr/sbin/netbiosd\n UDP4                     0.0.0.0   138           root     1     0   0   0.0   0.0     3  2022-12-01 00:00:50 /sbin/launchd\n TCP4                   127.0.0.1   631           root 70386     1   0   0.0   0.0     3  2022-12-07 10:20:28 /usr/sbin/cupsd -l\n TCP6                         ::1   631           root 70386     1   0   0.0   0.0     3  2022-12-07 10:20:28 /usr/sbin/cupsd -l\n UDP4                     0.0.0.0  5353 _mdnsresponder   300     1   0   0.0   0.0     3  2022-12-01 00:00:55 /usr/sbin/mDNSResponder\n UDP6                          ::  5353 _mdnsresponder   300     1   0   0.0   0.0     3  2022-12-01 00:00:55 /usr/sbin/mDNSResponder\n```\n\n## dstat\n\nA fork of https://github.com/dstat-real/dstat\n\n![dstat](https://user-images.githubusercontent.com/423176/206405331-2914119b-29a8-40dd-a025-ad255257a4d2.gif)\n\n## ps.py\n\nLike `ps -fHe` on linux, but portable to the extent that `psutil` is. Works on macOS at least.\n\n```\n$ ps.py | head\n              USER   PID  PPID NIC  %CPU  %MEM   #TH             STARTED COMMAND\n              root     0     ?   ?     ?     ?     ? 2023-02-10 07:21:25 kernel_task\n              root     1     ?   ?     ?     ?     ? 2023-02-10 07:21:25   launchd\n              root   299     1   ?     ?     ?     ? 2023-02-10 07:21:49     logd\n              root   301     1   ?     ?     ?     ? 2023-02-10 07:21:49     UserEventAgent\n              root   303     1   ?     ?     ?     ? 2023-02-10 07:21:49     uninstalld\n              root   304     1   ?     ?     ?     ? 2023-02-10 07:21:49     fseventsd\n              root   307     1   ?     ?     ?     ? 2023-02-10 07:21:49     systemstats\n              root   748   307   ?     ?     ?     ? 2023-02-10 07:22:05       systemstats\n              root   309     1   ?     ?     ?     ? 2023-02-10 07:21:49     configd\nException ignored in: \u003c_io.TextIOWrapper name='\u003cstdout\u003e' mode='w' encoding='utf-8'\u003e\nBrokenPipeError: [Errno 32] Broken pipe\n$ sudo ps.py | head\n              USER   PID  PPID NIC  %CPU  %MEM   #TH             STARTED COMMAND\n              root     0     ?   ?   0.0   0.0   574 2023-02-10 07:21:25 kernel_task\n              root     1     ?   ?   0.0   0.1     6 2023-02-10 07:21:25   /sbin/launchd\n              root   299     1   ?   0.0   0.1     4 2023-02-10 07:21:49     /usr/libexec/logd\n              root   301     1   ?   0.0   0.0     4 2023-02-10 07:21:49     /usr/libexec/UserEventAgent (System)\n              root   303     1   ?   0.0   0.0     2 2023-02-10 07:21:49     /System/Library/PrivateFrameworks/Uninstall.framework/Resources/uninstalld\n              root   304     1   ?   0.0   0.0    13 2023-02-10 07:21:49     /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/Support/fseventsd\n              root   307     1   ?   0.0   0.1     3 2023-02-10 07:21:49     /usr/sbin/systemstats --daemon\n              root   748   307   ?   0.0   0.0     3 2023-02-10 07:22:05       /usr/sbin/systemstats --logger-helper /private/var/db/systemstats\n              root   309     1   ?   0.0   0.0     7 2023-02-10 07:21:49     /usr/libexec/configd\nException ignored in: \u003c_io.TextIOWrapper name='\u003cstdout\u003e' mode='w' encoding='utf-8'\u003e\nBrokenPipeError: [Errno 32] Broken pipe\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlevitt%2Fpsutilz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlevitt%2Fpsutilz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlevitt%2Fpsutilz/lists"}