python-portend
Port variant v14
Summary TCP port monitoring and discovery (3.14)
Package version 3.2.1
Homepage https://github.com/jaraco/portend
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v13
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 25 FEB 2026, 19:33:15 UTC
Port created 25 FEB 2026, 19:33:15 UTC
Subpackage Descriptions
single :alt: tests :alt: Ruff por·tend pôrˈtend/ verb be a sign or warning that (something, especially something momentous or calamitous) is likely to happen. Usage ===== Use portend to monitor TCP ports for bound or unbound states. For example, to wait for a port to be occupied, timing out after 3 seconds:: portend.occupied('www.google.com', 80, timeout=3) Or to wait for a port to be free, timing out after 5 seconds:: portend.free('::1', 80, timeout=5) The portend may also be executed directly. If the function succeeds, it returns nothing and exits with a status of 0. If it fails, it prints a message and exits with a status of 1. For example:: python -m portend localhost:31923 free (exits immediately) python -m portend -t 1 localhost:31923 occupied (one second passes) Port 31923 not bound on localhost. Portend also exposes a find_available_local_port for identifying a suitable port for binding locally:: port = portend.find_available_local_port() print(port, "is available for binding") Portend additionally exposes the lower-level port checking functionality in the Checker class, which currently exposes only one public method, assert_free:: portend.Checker().assert_free('localhost', 31923) If assert_free is passed a host/port combination that is occupied by a bound listener (i.e. a TCP connection is established to that host/port), assert_free will raise a PortNotFree exception. For Enterprise ============== Available as part of the Tidelift Subscription. This project and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use. [Learn more].
Configuration Switches (platform-specific settings discarded)
PY313 OFF Build using Python 3.13 PY314 ON Build using Python 3.14
Package Dependencies by Type
Build (only) python314:dev:std
python-pip:single:v14
autoselect-python:single:std
Build and Runtime python314:primary:std
Runtime (only) python-tempora:single:v14
Download groups
main mirror://PYPIWHL/49/11/b0b19077f80cb8972b44c96af983e8cfcdb1506090bacef137ed8b448af8
Distribution File Information
bd2bb1cd8585e32f1f986c1b8eae2950c8622c648db163b711a2fc2ef8d8d492 5653 python-src/portend-3.2.1-py3-none-any.whl
Ports that require python-portend:v14
python-CherryPy:v14 Object-Oriented HTTP framework (3.14)