-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
917ea06
commit 539039a
Showing
4 changed files
with
29 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build/ | ||
dist/ | ||
netutils.egg-info | ||
netutil.egg-info | ||
.pypirc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,34 @@ | ||
# netutils | ||
# netutil - Checking Port Status | ||
|
||
Python module to check the status of ports for local and websites. | ||
Python module to check the status of ports for local and websites the easy way. | ||
|
||
# Install | ||
pip install netutils | ||
```shell | ||
pip install netutil | ||
``` | ||
|
||
# Usage | ||
```python | ||
import netutils | ||
google = netutils.PortCheck("google.com", 443) | ||
google.isOpen() | ||
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: netutils.host_name | ||
- To get Local IP: netutils.host_ip | ||
- To get Local IP: netutils.host_ip | ||
|
||
# Links | ||
- [PyPi](https://pypi.org/project/netutil/) | ||
- [GitHub](https://github.com/cjerrington/netutils) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,14 @@ | |
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name="netutils", | ||
version="0.0.6", | ||
name="netutil", | ||
version="0.0.7", | ||
author="Clayton Errington", | ||
author_email="[email protected]", | ||
description="Simplified way to get networking port status", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/pypa/sampleproject", | ||
url="https://github.com/cjerrington/netutils", | ||
packages=setuptools.find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
|