Skip to main content

Pyphorus

GitHub GitHub tag (latest SemVer) PyPI


A small network utility library written in Python 3.

Features:

  • Port scanner
  • UPnP client (SSDP wrapper)

Build with ❤️ 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)

Source distribution for pyphorus 0.0.3
File Size Uploaded Provenance Actions
pyphorus-0.0.3.tar.gz 4.4 kB Without provenance Details for pyphorus-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyphorus 0.0.3
File Interpreter ABI Platform Actions
pyphorus-0.0.3-py3-none-any.whl Python 3 none any Details for pyphorus-0.0.3-py3-none-any.whl

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

Security for pyphorus 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page