Usage
A good tool for checking host, has 24+ servers from different countries to check. Using check-host.net
Save as file
#save ping server data (ex. www.google.com)
>>> from hostcheck import *
>>> host.ping("www.google.com")
saved as: check-host.json
>>>
#save http server data (ex. www.google.com)
>>> from hostcheck import *
>>> host.http("www.google.com")
saved as: check-host.json
>>>
#save tcp server data (ex. 3.125.102.39:13352)
>>> from hostcheck import *
>>> host.tcp("3.125.102.39:13352")
saved as: check-host.json
>>>
#save dns server data (ex. 1.1.1.1)
>>> from hostcheck import *
>>> host.dns("1.1.1.1")
saved as: check-host.json
>>>
Preview data
#view ping server data (ex. www.google.com)
>>> from hostcheck import *
>>> host.ping("www.google.com", True)
#view http server data (ex. www.google.com)
>>> from hostcheck import *
>>> host.http("www.google.com", True)
#view tcp server data (ex. 3.125.102.39:13352)
>>> from hostcheck import *
>>> host.tcp("3.125.102.39:13352", True)
how to view server data
video: https://youtu.be/DlUiGR1HfTU
all results are automatically saved to the check-host file in json format. You can read it using the json module.
Installation
pip install hostcheck
Maybe will be in new versions
- dns checker
Metadata
Release files for hostcheck 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hostcheck-0.0.4.tar.gz | 5.2 kB | Details |
Release files / hostcheck-0.0.4.tar.gz
| Download URL | hostcheck-0.0.4.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fdfb7347bd74e2a7304e70515b5749e2575dcdce7d80a69dea540d0d844e99f
|
|
BLAKE2b-256 checksum How to use checksums |
0903c4ad93ff98b76fca04c60f625283fdf24dd7b988a4bc6feb8b0e208f9fba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|