A tiny, dependency-free Python library for TCP connectivity checks with IPv4/IPv6 and DNS support.
Project description
pyminitcp
A tiny, dependency-free Python library for TCP connectivity checks with IPv4/IPv6 and DNS support.
Features
- Checks TCP connectivity for IPv4, IPv6, or domain names
- Distinguishes between address families automatically
- Returns response time and detailed error info
Usage
from pyminitcp import tcp_check
result = tcp_check('google.com', 443)
print(result.as_dict())
Result
{
"status": 1,
"resp_time": 10.468006134033203,
"error": "",
"family": 2,
"sockaddr": [
"74.125.205.139",
80
]
}
CLI Usage
pyminitcp google.com 443
pyminitcp 8.8.8.8 53 --timeout 1
pyminitcp --json example.com 80
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
pyminitcp-1.0.1.tar.gz
(4.7 kB
view details)
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 pyminitcp-1.0.1.tar.gz.
File metadata
- Download URL: pyminitcp-1.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c9a1a8ac1dd9bc01a0c0dd12d59d337bd2812a3317d1dc3ecff9a8723f112ff
|
|
| MD5 |
e98e9b7a9f57004ef026113c880d3486
|
|
| BLAKE2b-256 |
8ac6668a9b4adf216140de106a6dbd6f71ecbbe934a5a613a23b864823731744
|
File details
Details for the file pyminitcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pyminitcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7bad6b14bc0fc452c997db58ccada8385089850dbfec0de8c9039ce9a27cd39
|
|
| MD5 |
14505267724de4f9d6cb4abfbda22ea1
|
|
| BLAKE2b-256 |
457c9b62da6a18aa2e715d5ddcb53de95380802dfc29242daaade7a55c2225bc
|