A fast, multithreaded TCP port scanner written in Python. Scan any range of ports on a given IP address, and get detailed results—including open ports, scan timestamps, and per-port status — in structured JSON format.
Project description
scanner-port
A fast, multithreaded TCP port scanner written in Python. Scan any range of ports on a given IP address, and get detailed results — including open ports, scan timestamps, and per-port status — in structured JSON format.
pip intstall scanner-port
from scanner_port.utils import PortScanner
scanner = PortScanner("8.8.8.8", max_threads=100)
result = scanner.scan_ports((75, 85))
import json
print(json.dumps(result, indent=2))
{
"target_ip": "8.8.8.8",
"scan_start": "2025-06-27T22:19:32.123456",
"scan_end": "2025-06-27T22:19:33.789101",
"scanned_ports": [75, 76, ..., 85],
"open_ports": [80],
"ports_detail": [
{
"port": 75,
"timestamp": "2025-06-27T22:19:32.234567",
"status": "closed"
},
{
"port": 80,
"timestamp": "2025-06-27T22:19:32.567890",
"status": "open"
}
// ...
]
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scanner_port-0.0.1.tar.gz.
File metadata
- Download URL: scanner_port-0.0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b5c0fb906fb005a530a40fa5da6f882680731a67381557d0a0577308e71e01c
|
|
| MD5 |
4c6dc8122284bd34805ce4014e85b096
|
|
| BLAKE2b-256 |
4f6af545f3651b3f59b4100d73542c39161fa54b5cd9a7ac0d0da1ef0d1c156b
|
File details
Details for the file scanner_port-0.0.1-py3-none-any.whl.
File metadata
- Download URL: scanner_port-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7524b5a7fd590cedc098e096e48e33ea6080f8560d514fb1f51ab94c3245fb10
|
|
| MD5 |
173b6e3e375c6c5ffc04adce28ebf89e
|
|
| BLAKE2b-256 |
ee6ef4dad80323c95ce5c08006cc2fa0dfa638b664964f21fc96cf1e3082e50c
|