Comparison
ephemeral-port-reserve vs port-for vs portpicker
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Bind to an ephemeral port, force it into the TIME_WAIT state, and unbind it.
Low maintenance activity. Last release over 5 years ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install ephemeral-port-reserveUtility that helps with local TCP ports management. It can find an unused TCP localhost port and remember the association.
Actively maintained. Last release 8 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
pip install port-forA library to choose unique available network ports.
Slowing down. Last release over 3 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install portpickerIn short
- portpicker is slowing down (last release over 3 years ago): fine for existing code, risky for a new project.
- port-for is the most used: 5.8M downloads a month, 1.9× more than portpicker.
- port-for also has the best Pythie’s Index (71).
- ephemeral-port-reserve is growing fastest: downloads +69% over the last month.
- Safe default for a new project: port-for.
Side by side
| Metric | ephemeral-port-reserve | port-for | portpicker |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 22 | 71 |