semvec/pypi-packages huggingface dataset:
portpicker 1.6.0
A library to choose unique available network ports.
License: Apache 2.0
Requires Python: >=3.6

Portpicker provides an API to find and return an available
network port for an application to bind to.  Ideally suited for use from
unittests or for test harnesses that launch local servers.

It also contains an optional portserver that can be used to coordinate
allocation of network ports on a single build/test farm host across all
processes willing to use a port server aware port picker library such as
this one.