Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cjerrington/netutils
Check port status the easy way
https://github.com/cjerrington/netutils
Last synced: about 2 months ago
JSON representation
Check port status the easy way
- Host: GitHub
- URL: https://github.com/cjerrington/netutils
- Owner: cjerrington
- License: mit
- Created: 2020-05-12T17:08:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T20:23:34.000Z (over 4 years ago)
- Last Synced: 2024-10-28T17:37:45.232Z (2 months ago)
- Language: Python
- Homepage: https://pypi.org/project/netutil/
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netutil - Checking Port Status
Python module to check the status of ports for local and websites the easy way.
# Install
```shell
pip install netutil
```# Usage
```python
import netutil
google = netutil.PortCheck("google.com", 443)
print(google.domain)
print(google.port)
print(google.isOpen())
```This will show:
```shell
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
- [PyPi](https://pypi.org/project/netutil/)
- [GitHub](https://github.com/cjerrington/netutils)