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
Metadata
Release files for pyphorus 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyphorus-0.0.3.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyphorus-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.7 kB
Release files / pyphorus-0.0.3.tar.gz
| Download URL | pyphorus-0.0.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c3d01b46dc86d1a978cbf9bb5001d7e9c2ab79e9e6cd8418d4432790fc36595
|
|
BLAKE2b-256 checksum How to use checksums |
081e0c31c6f32dffe7af35b3462bc3c990a55f9adea28fab87a7e55d3c752fb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pyphorus-0.0.3-py3-none-any.whl
| Download URL | pyphorus-0.0.3-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca9ed8375f416394735f80506104735f92985f5a34d88e579437ca76f7d4c774
|
|
BLAKE2b-256 checksum How to use checksums |
e3c2ad35e04f789e43c265f3e00a1b77a8c92a64936db2e62de1118e333b72e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|