Skip to content

cjerrington/netutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netutil - Checking Port Status

Python module to check the status of ports for local and websites the easy way.

Install

pip install netutil

Usage

import netutil
google = netutil.PortCheck("google.com", 443)
print(google.domain)
print(google.port)
print(google.isOpen())

This will show:

google.com
443
True

Check out the tests\main.py for more examples.

For extra help I've added in variables to find the hostname and local IP address.

  • To get hostname: netutil.host_name
  • To get Local IP: netutil.host_ip

Links

About

Check port status the easy way

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages