Get free dynamic / registered ports
Tested against Windows 10 / Python 3.10 / Anaconda
pip install get-free-port
from https://www.techtarget.com/searchnetworking/definition/dynamic-port-numbers
The registries for these protocols are divided into three categories, based on the available range of numbers (0 to 65535):
System ports, also known as well-known ports, include ports 0 to 1023 and support commonly used services. User ports, also known as registered ports, include ports 1024 to 49151 and are assigned to specific services, based on service applications submitted to IANA. Dynamic ports, also known as private or ephemeral ports, include ports 49152 to 65535 and are never assigned.
from get_free_port import get_dynamic_ports, get_registered_ports
print(get_dynamic_ports(3))
print(get_registered_ports(3))
[49152, 49153, 49154]
[1025, 1026, 1027]
Metadata
Release files for get-free-port 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| get_free_port-0.10.tar.gz | 3.2 kB | Without provenance | Details for get_free_port-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| get_free_port-0.10-py3-none-any.whl | Python 3 | none | any | Details for get_free_port-0.10-py3-none-any.whl |
Total release size: 7.4 kB
Release files / get_free_port-0.10.tar.gz
| Download URL | get_free_port-0.10.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c92447228f1950e528e16c233f74ad6d06e0b1ed5012475bf2be497669850eda
|
|
BLAKE2b-256 checksum How to use checksums |
00c94d50abf4fefc37b9a02976da7854aab4b0656dd75c5ba2919a51df4d70b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / get_free_port-0.10-py3-none-any.whl
| Download URL | get_free_port-0.10-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b9e0f9ad119a5140aa70528ef950bf8b176e605f048a9c0656e4f32bb8c2566
|
|
BLAKE2b-256 checksum How to use checksums |
a217a8170ca4ce745aa3ff3990db0f95f2410f314632ea951b22d06a1e23c156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for get-free-port 0.10
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.