A network utility library written in Python 3
Project description
Pyphorus
A small network utility library written in Python 3.
Features:
- Port scanner
- UPnP client (SSDP wrapper)
Build with :heart: by
Oleaintueri is sponsoring the development and maintenance of this project within their organisation.
Getting started
Installation
pip install pyphorus
Or
pip install git+https://github.com/Oleaintueri/pyphorus.git
Usage
import pyphorus
if __name__ == "__main__":
phorus = pyphorus.Pyphorus()
devices = phorus.scan_ports("192.168.0.1", ports=[80, 443, 9000], only_open=True)
for device in devices:
print(device.ip, device.port)
# get all devices with ssdp:all
devices = phorus.scan_upnp("upnp:rootdevice")
for device in devices:
print(device.ip, device.friendly_name, device.device_type)
# if you want only the unique ips to remain and are not interested in the ports
unique_devices = pyphorus.utils.strip_duplicate_ips(devices)
Testing
Pyphorus uses nose to run its tests and mock testing server.
nosetests -v
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyphorus-0.0.3.tar.gz.
File metadata
- Download URL: pyphorus-0.0.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c3d01b46dc86d1a978cbf9bb5001d7e9c2ab79e9e6cd8418d4432790fc36595
|
|
| MD5 |
bba88e3794256a1e3e775c965e8c9317
|
|
| BLAKE2b-256 |
081e0c31c6f32dffe7af35b3462bc3c990a55f9adea28fab87a7e55d3c752fb8
|
File details
Details for the file pyphorus-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pyphorus-0.0.3-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca9ed8375f416394735f80506104735f92985f5a34d88e579437ca76f7d4c774
|
|
| MD5 |
1c075b2d6767a2325025ed87637d1a1d
|
|
| BLAKE2b-256 |
e3c2ad35e04f789e43c265f3e00a1b77a8c92a64936db2e62de1118e333b72e9
|