get-free-port


Nameget-free-port JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/get_free_port
SummaryGet free dynamic / registered ports
upload_time2023-05-22 01:03:40
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords port tcp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.

```python
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]
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/get_free_port",
    "name": "get-free-port",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "port,tcp",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/00/c9/4d50abf4fefc37b9a02976da7854aab4b0656dd75c5ba2919a51df4d70b9/get_free_port-0.10.tar.gz",
    "platform": null,
    "description": "# Get free dynamic / registered ports \r\n\r\n\r\n### Tested against Windows 10 / Python 3.10 / Anaconda\r\n\r\n### pip install get-free-port\r\n\r\n\r\nfrom https://www.techtarget.com/searchnetworking/definition/dynamic-port-numbers\r\n\r\nThe registries for these protocols are divided into three categories,\r\n based on the available range of numbers (0 to 65535):\r\n\r\nSystem ports, also known as well-known ports, include ports 0 to 1023 and \r\nsupport commonly used services.\r\nUser ports, also known as registered ports, include ports 1024 to 49151 and \r\nare assigned to specific services, based on service applications submitted to IANA.\r\nDynamic ports, also known as private or ephemeral ports, include \r\nports 49152 to 65535 and are never assigned.\r\n\r\n```python\r\nfrom get_free_port import get_dynamic_ports, get_registered_ports\r\nprint(get_dynamic_ports(3))\r\nprint(get_registered_ports(3))\r\n[49152, 49153, 49154]\r\n[1025, 1026, 1027]\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Get free dynamic / registered ports",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/get_free_port"
    },
    "split_keywords": [
        "port",
        "tcp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a217a8170ca4ce745aa3ff3990db0f95f2410f314632ea951b22d06a1e23c156",
                "md5": "862a3cbe6a2c7dc022d4e3d20aaec5b3",
                "sha256": "3b9e0f9ad119a5140aa70528ef950bf8b176e605f048a9c0656e4f32bb8c2566"
            },
            "downloads": -1,
            "filename": "get_free_port-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "862a3cbe6a2c7dc022d4e3d20aaec5b3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4182,
            "upload_time": "2023-05-22T01:03:37",
            "upload_time_iso_8601": "2023-05-22T01:03:37.961458Z",
            "url": "https://files.pythonhosted.org/packages/a2/17/a8170ca4ce745aa3ff3990db0f95f2410f314632ea951b22d06a1e23c156/get_free_port-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "00c94d50abf4fefc37b9a02976da7854aab4b0656dd75c5ba2919a51df4d70b9",
                "md5": "adc19b358a5f856e730be653beb2c70a",
                "sha256": "c92447228f1950e528e16c233f74ad6d06e0b1ed5012475bf2be497669850eda"
            },
            "downloads": -1,
            "filename": "get_free_port-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "adc19b358a5f856e730be653beb2c70a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3247,
            "upload_time": "2023-05-22T01:03:40",
            "upload_time_iso_8601": "2023-05-22T01:03:40.174368Z",
            "url": "https://files.pythonhosted.org/packages/00/c9/4d50abf4fefc37b9a02976da7854aab4b0656dd75c5ba2919a51df4d70b9/get_free_port-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-22 01:03:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "get_free_port",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "get-free-port"
}
        
Elapsed time: 0.39460s