Skip to content

Commit

Permalink
PyPi version 0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cjerrington committed May 12, 2020
1 parent 917ea06 commit 539039a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 83 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build/
dist/
netutils.egg-info
netutil.egg-info
.pypirc
31 changes: 24 additions & 7 deletions README.md
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)
72 changes: 0 additions & 72 deletions netutils/__init__.py

This file was deleted.

6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 539039a

Please sign in to comment.