Skip to main content

TCP connection monitor — track ESTABLISHED, TIME_WAIT, connection states, and per-IP statistics

Project description

dargslan-tcp-monitor

TCP Connection Monitor — Track connection states, listening ports, per-IP statistics, and TIME_WAIT buildup. Zero external dependencies.

PyPI version License: MIT

Installation

pip install dargslan-tcp-monitor

CLI Usage

dargslan-tcp report            # Full TCP connection report
dargslan-tcp states            # Connection state counts
dargslan-tcp listen            # Listening ports
dargslan-tcp established       # Active connections
dargslan-tcp per-ip            # Connections per remote IP
dargslan-tcp timewait          # TIME_WAIT count
dargslan-tcp json              # JSON output

Python API

from dargslan_tcp_monitor import TCPMonitor
tm = TCPMonitor()
states = tm.get_state_counts()
listening = tm.get_listening_ports()
tm.print_report()

More from Dargslan

License

MIT — see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dargslan_tcp_monitor-1.0.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dargslan_tcp_monitor-1.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file dargslan_tcp_monitor-1.0.0.tar.gz.

File metadata

  • Download URL: dargslan_tcp_monitor-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dargslan_tcp_monitor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 96afe9d5a7a927812da322393a2e90073929b91ddafe22d6bf2f0b0eb095e2ff
MD5 6212808ae8e8648d9ae69723b74ce11c
BLAKE2b-256 43c8e7c46be9f7e49bc64ee2271ef5381493ce6c22062743baeb02855a7c95b2

See more details on using hashes here.

File details

Details for the file dargslan_tcp_monitor-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dargslan_tcp_monitor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28b50cb7fa5c0d7c85553b85943e4316ab7cf261af2ba907fdf7d7a0769beca5
MD5 3a37bb870339393c886dbb1ca54e264c
BLAKE2b-256 57439b4939edb80ff87775c3fc91834c32f03cd6c84952d7f532bfeeaa6e5f76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page