{"id":28921692,"url":"https://github.com/pfischer1687/netwatcher-cli","last_synced_at":"2026-03-05T03:33:18.219Z","repository":{"id":291070216,"uuid":"976480694","full_name":"pfischer1687/netwatcher-cli","owner":"pfischer1687","description":"NetWatcher CLI is a lightweight network connection monitoring tool written in Python. It helps you track active outbound connections on your system, monitor associated processes, and provides geolocation information for remote IP addresses.","archived":false,"fork":false,"pushed_at":"2025-05-18T20:09:35.000Z","size":258,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-28T18:22:08.766Z","etag":null,"topics":["cli","monitoring","network","security","typer"],"latest_commit_sha":null,"homepage":"","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/pfischer1687.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-02T07:18:41.000Z","updated_at":"2025-05-18T20:09:38.000Z","dependencies_parsed_at":"2025-05-18T09:44:37.528Z","dependency_job_id":null,"html_url":"https://github.com/pfischer1687/netwatcher-cli","commit_stats":null,"previous_names":["pfischer1687/remote-ip-geo-info","pfischer1687/netwatcher","pfischer1687/netwatcher-cli"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pfischer1687/netwatcher-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfischer1687%2Fnetwatcher-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfischer1687%2Fnetwatcher-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfischer1687%2Fnetwatcher-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfischer1687%2Fnetwatcher-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfischer1687","download_url":"https://codeload.github.com/pfischer1687/netwatcher-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfischer1687%2Fnetwatcher-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30108651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:32:43.378Z","status":"ssl_error","status_checked_at":"2026-03-05T03:32:22.667Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cli","monitoring","network","security","typer"],"created_at":"2025-06-22T07:07:51.311Z","updated_at":"2026-03-05T03:33:18.206Z","avatar_url":"https://github.com/pfischer1687.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetWatcher CLI\n\n[![PyPI version](https://badge.fury.io/py/netwatcher-cli.svg)](https://pypi.org/project/netwatcher-cli/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/pfischer1687/netwatcher-cli/blob/main/LICENSE)\n\n**NetWatcher CLI** monitors outbound network connections on your local machine and enriches them with IP geolocation and\nownership data to help identify potentially suspicious processes. See [example output](#example-output) below.\n\n### Features\n\n- Displays geolocation and BGP table details about remote internet connections.\n- Retrieves process information associated with each connection.\n- Flags reasons to suspect possibly malicious activity.\n- Optionally generates threat assessment as HTML report.\n- Optionally outputs serialized logs to disk.\n\nSee the [CLI docs](https://github.com/pfischer1687/netwatcher-cli/blob/main/docs/cli.md) for the full CLI usage\nreference.\n\n### Example Output\n\n```text\n┏━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┓\n┃ IP      ┃ Geolocation     ┃ Ownership          ┃ Threat Level ┃ Assessment              ┃ Process Info            ┃\n┡━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━┩\n│ 8.8.8.8 │ City, State Zip │ - ISP: Example ISP │ Suspicious   │ - Hosting provider      │ - Executable Path: …    │\n│         │ Country         │ - Org: Example Org │              │ - Proxy or VPN detected │ - Command Line: …       │\n│         │                 │ - AS: ASEXAMPLE    │              │ ...                     │ - Process Name: sus.exe │\n│         │                 │ - AS Name: EX      │              │                         │ - PID: 1234             │\n│         │                 │ ...                │              │                         │ ...                     │\n└─────────┴─────────────────┴────────────────────┴──────────────┴─────────────────────────┴─────────────────────────┘\n...\n```\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Basic Usage](#usage)\n- [Development](#development)\n- [License](#license)\n\n## Installation\n\nInstall from [PyPI](https://pypi.org/project/netwatcher-cli):\n\n```bash\npip install netwatcher-cli\n```\n\n## Basic Usage\n\n```console\n$ nw scan [OPTIONS]\n```\n\n**Options**:\n\n- `-c, --country-code TEXT`: User\u0026#x27;s ISO 3166-1 alpha-2 two-leter country code. [default: US]\n- `--html-dir PATH`: Optional directory location for which to write an HTML report.\n- `--lang TEXT`: Language code for the IP API response. [default: en]\n- `--log-dir PATH`: Optional directory location for which to write a log file.\n- `-v, --verbose`: Increase verbosity (-v, -vv, -vvv) [default: 1]\n- `--help`: Show this message and exit.\n\nSee the [CLI docs](https://github.com/pfischer1687/netwatcher-cli/blob/main/docs/cli.md) for the full CLI usage\nreference.\n\n## Development\n\n1. Install `uv`:\n\n   To manage dependencies and install **NetWatcher CLI** efficiently, use **uv**. You can install `uv`\n   ([here](https://docs.astral.sh/uv/getting-started/installation/)).\n\n2. Install Python \u003e= 3.9:\n\n```bash\nuv python install 3.13\n```\n\n3. Create a virtual environment and activate it:\n\n```bash\nuv venv --python 3.13\n\n# macOS and Linux\nsource .venv/activate/bin\n\n# Windows\n.venv\\Scripts\\activate\n```\n\n4. Install dependencies:\n\n```bash\nuv pip install -r pyproject.toml --all-extras\n```\n\n5. Run unit tests\n\n```bash\nuv run pytest [OPTIONS]\n```\n\nSome useful options:\n\n- `-s` – allows `print()` output\n- `-vvv` – increases verbosity\n\nSee the [pytest docs](https://docs.pytest.org/en/stable/) for full usage and configuration details.\n\n6. Run pre-commit (requires **git-cliff**, see [Changelog Generation](#changelog-generation) for more) to run the\n   formatter/linter (Ruff), type checker (Pyright), doc generators (Typer/git-cliff), etc.\n\n```bash\nuv run pre-commit run --all-files\n```\n\n### Changelog Generation\n\nThis project uses [`git-cliff`](https://git-cliff.org/docs/) to generate changelogs automatically based on conventional\ncommit messages. To use or update the changelog, you must have `git-cliff` installed locally or in your CI environment.\nYou can do this via cargo, the Rust package manager (which you can install\n[here](https://www.rust-lang.org/tools/install)):\n\n```bash\ncargo install git-cliff\n```\n\n## License\n\nThis project is licensed under the MIT License. See the\n[LICENSE](https://github.com/pfischer1687/netwatcher-cli/blob/main/LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfischer1687%2Fnetwatcher-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfischer1687%2Fnetwatcher-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfischer1687%2Fnetwatcher-cli/lists"}