{"id":28225538,"url":"https://github.com/hansalemaos/netstat2df","last_synced_at":"2026-05-15T20:31:54.758Z","repository":{"id":194530502,"uuid":"691144878","full_name":"hansalemaos/netstat2df","owner":"hansalemaos","description":"Retrieves and parses network statistics related to IPv4 TCP and UDP connection returns this information as a Pandas DataFrame","archived":false,"fork":false,"pushed_at":"2023-09-13T15:32:07.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T09:52:03.716Z","etag":null,"topics":["dataframe","ipv4","netstat","pandas","tcp","udp"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/netstat2df/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansalemaos.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-13T15:31:41.000Z","updated_at":"2023-09-13T15:53:20.000Z","dependencies_parsed_at":"2023-09-13T22:10:37.396Z","dependency_job_id":null,"html_url":"https://github.com/hansalemaos/netstat2df","commit_stats":null,"previous_names":["hansalemaos/netstat2df"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansalemaos/netstat2df","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fnetstat2df","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fnetstat2df/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fnetstat2df/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fnetstat2df/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansalemaos","download_url":"https://codeload.github.com/hansalemaos/netstat2df/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fnetstat2df/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33078898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dataframe","ipv4","netstat","pandas","tcp","udp"],"created_at":"2025-05-18T11:09:02.506Z","updated_at":"2026-05-15T20:31:54.742Z","avatar_url":"https://github.com/hansalemaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Retrieves and parses network statistics related to IPv4 TCP and UDP connection returns this information as a Pandas DataFrame\r\n\r\n## Tested against Windows 10 / Python 3.10 / Anaconda\r\n\r\n### pip install netstat2df\r\n\r\n\r\n```python\r\nRetrieve and parse network statistics related to IPv4 TCP and UDP connections.\r\n\r\nThis function uses the 'netstat' command-line utility to gather information about\r\nIPv4 TCP and UDP connections, including local and foreign addresses, ports, process\r\nIDs (PIDs), and executable names. It then processes and returns this information\r\nas a Pandas DataFrame.\r\n\r\nReturns:\r\n\tpd.DataFrame: A DataFrame containing the following columns:\r\n\t\t- 'aa_proto': Protocol type ('TCP' or 'UDP').\r\n\t\t- 'aa_local_address': Local IP address.\r\n\t\t- 'aa_local_port': Local port number.\r\n\t\t- 'aa_foreign_address': Foreign IP address.\r\n\t\t- 'aa_foreign_port': Foreign port number.\r\n\t\t- 'aa_pid': Process ID (PID) of the associated process.\r\n\t\t- 'aa_executable': Executable name of the associated process.\r\n\t\t- 'aa_status': Status of the connection (may be empty or NaN if unavailable).\r\n\r\nNote:\r\n\t- If any error occurs during the retrieval or parsing of network statistics,\r\n\t  the function returns an empty DataFrame.\r\n\r\nExample:\r\n\t\u003e\u003e\u003e from netstat2df import get_netstat_ipv4_df\r\n\t\u003e\u003e\u003e df = get_netstat_ipv4_df()\r\n\t\u003e\u003e\u003e print(df.head())\r\n\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fnetstat2df","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansalemaos%2Fnetstat2df","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fnetstat2df/lists"}