A small utility that checks TCP reachability with configurable timeouts.
I kept rewriting the same thirty lines in every project, so I pulled them out.
pip install port-checkfrom port_check import portCheck
result = portCheck("example")
print(result)- No runtime dependencies outside the standard library.
- Tested on Python 3.9 and newer.
MIT