Skip to main content

A tiny, dependency-free Python library for TCP connectivity checks with IPv4/IPv6 and DNS support.

Project description

pyminitcp

PyPI version Build status Python versions License

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-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

pyminitcp-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pyminitcp-0.1.0.tar.gz.

File metadata

  • Download URL: pyminitcp-0.1.0.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

Hashes for pyminitcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bcb884c403314ae914ce3699b928353f71b24b600d5533131299259223cca744
MD5 5c228b3e5e0721fc2519d8ed051c68f6
BLAKE2b-256 a6f2031fbc5de55b277fcf753fa3b304ac84b808f06cdc0817d3fb4a2492cc1d

See more details on using hashes here.

File details

Details for the file pyminitcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyminitcp-0.1.0-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

Hashes for pyminitcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12f2a524889de1e315ce07a9a77f06cbede0e8c13a2d980264be5c5d0e9c24a5
MD5 07ecff4f162cc131845407637035fc3f
BLAKE2b-256 b39fa8f97003f810bbfd5e7f5d5a72d58f7663c0c25d327ef43f578f8dafe17b

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