Skip to main content

Lanutils

Small package to probe ip addresses and ports on a local network.
Install with:

pip install lanutils

Usage (assuming your local ip is 10.0.0.10 with prefix 24, you're connected via ethernet, you have a http server running on port 8000, and there are a few other devices on your network):
>>> import lanutils
>>> lanutils.get_myip()
>>> [("10.0.0.10", 24, "Ethernet")]
>>> lanutils.ip_is_alive("10.0.0.10")
>>> True
>>> lanutils.ip_is_alive("10.0.0.11")
>>> False
>>> lanutils.enumerate_devices()
>>> ["10.0.0.7", "10.0.0.10", "10.0.0.133", "10.0.0.187"]
>>> lanutils.port_is_open("10.0.0.10", 8000)
>>> True
>>> lanutils.scan_ports("10.0.0.10", (7990, 8010))
>>> [8000]
>>> lanutils.get_available_port("10.0.0.10", (8000, 8005))
>>> 8001

Metadata

Release files for lanutils 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lanutils 1.0.0
File Size Uploaded Provenance Actions
lanutils-1.0.0.tar.gz 37.5 kB Without provenance Details for lanutils-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 41.8 kB

Release files / lanutils-1.0.0.tar.gz

Download URL lanutils-1.0.0.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
34561e667aeeec87fda7ba8684056b2af905aeddb3eaaad1ab5a9bb3282567c5
BLAKE2b-256 checksum
How to use checksums
cb28550b4426f32ae5866e4ee59cbb6b0350d43dc823a48610fa3c9404672df2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / lanutils-1.0.0-py3-none-any.whl

Download URL lanutils-1.0.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cab48c80395329cbf6f72e365018b17421873802609659fdcbedd40a6625a3a
BLAKE2b-256 checksum
How to use checksums
010938ae19a961396ec8751fd67e7eca35ea4e1bd05c1795b2a0b131115a0431
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for lanutils 1.0.0

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