discovered 03 Aug 2026
python_portpicker
→ View on GitHubThe Python portpicker module facilitates the discovery of unused network ports on a host, primarily for testing and development purposes. Its key feature is the `pick_unused_port()` function, which can be utilized directly from Python code or the command line, and supports an optional port server for coordinated port assignment across multiple processes, minimizing the risk of port conflicts. Users are advised to implement a port server for robust scenarios, especially in automated testing environments.