Skip to content

Commit 539039a

Browse files
committed
PyPi version 0.0.7
1 parent 917ea06 commit 539039a

File tree

4 files changed

+29
-83
lines changed

4 files changed

+29
-83
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
build/
22
dist/
3-
netutils.egg-info
3+
netutil.egg-info
4+
.pypirc

README.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
1-
# netutils
1+
# netutil - Checking Port Status
22

3-
Python module to check the status of ports for local and websites.
3+
Python module to check the status of ports for local and websites the easy way.
44

55
# Install
6-
pip install netutils
6+
```shell
7+
pip install netutil
8+
```
79

810
# Usage
911
```python
10-
import netutils
11-
google = netutils.PortCheck("google.com", 443)
12-
google.isOpen()
12+
import netutil
13+
google = netutil.PortCheck("google.com", 443)
14+
print(google.domain)
15+
print(google.port)
16+
print(google.isOpen())
17+
```
18+
19+
This will show:
20+
```shell
21+
google.com
22+
443
23+
True
1324
```
1425

26+
Check out the tests\main.py for more examples.
27+
1528
For extra help I've added in variables to find the hostname and local IP address.
1629
- To get hostname: netutils.host_name
17-
- To get Local IP: netutils.host_ip
30+
- To get Local IP: netutils.host_ip
31+
32+
# Links
33+
- [PyPi](https://pypi.org/project/netutil/)
34+
- [GitHub](https://github.com/cjerrington/netutils)

netutils/__init__.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
long_description = fh.read()
55

66
setuptools.setup(
7-
name="netutils",
8-
version="0.0.6",
7+
name="netutil",
8+
version="0.0.7",
99
author="Clayton Errington",
1010
author_email="[email protected]",
1111
description="Simplified way to get networking port status",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
14-
url="https://github.com/pypa/sampleproject",
14+
url="https://github.com/cjerrington/netutils",
1515
packages=setuptools.find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
1616
classifiers=[
1717
"Programming Language :: Python :: 3",

0 commit comments

Comments
 (0)