lanutils


Namelanutils JSON
Version 0.0.4 PyPI version JSON
download
home_page
SummarySmall package to probe ip addresses and ports on a local network
upload_time2023-03-22 21:31:50
maintainer
docs_urlNone
author
requires_python>=3.6
license
keywords discovery lan network networking
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Lanutils
Small package to probe ip addresses and ports on a local network. <br>
Install with:<br>
<pre>
pip install lanutils
</pre>
<br>
Usage (assuming your local ip is 10.0.0.10 with prefix 24, you're connected via ethernet, you have a http server running on port 8000, and there are a few other devices on your network):
<pre>
>>> import lanutils
>>> lanutils.get_myip()
>>> [("10.0.0.10", 24, "Ethernet")]
>>> lanutils.ip_is_alive("10.0.0.10")
>>> True
>>> lanutils.ip_is_alive("10.0.0.11")
>>> False
>>> lanutils.enumerate_devices()
>>> ["10.0.0.7", "10.0.0.10", "10.0.0.133", "10.0.0.187"]
>>> lanutils.port_is_open("10.0.0.10", 8000)
>>> True
>>> lanutils.scan_ports("10.0.0.10", (7990, 8010))
>>> [8000]
>>> lanutils.get_available_port("10.0.0.10", (8000, 8005))
>>> 8001
</pre>
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "lanutils",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "discovery,lan,network,networking",
    "author": "",
    "author_email": "Matt Manes <mattmanes@pm.me>",
    "download_url": "https://files.pythonhosted.org/packages/f6/0b/abc7c061c92bc1700a31af10d2992d5a8f973a613b8cca568eaf5c155340/lanutils-0.0.4.tar.gz",
    "platform": null,
    "description": "# Lanutils\nSmall package to probe ip addresses and ports on a local network. <br>\nInstall with:<br>\n<pre>\npip install lanutils\n</pre>\n<br>\nUsage (assuming your local ip is 10.0.0.10 with prefix 24, you're connected via ethernet, you have a http server running on port 8000, and there are a few other devices on your network):\n<pre>\n>>> import lanutils\n>>> lanutils.get_myip()\n>>> [(\"10.0.0.10\", 24, \"Ethernet\")]\n>>> lanutils.ip_is_alive(\"10.0.0.10\")\n>>> True\n>>> lanutils.ip_is_alive(\"10.0.0.11\")\n>>> False\n>>> lanutils.enumerate_devices()\n>>> [\"10.0.0.7\", \"10.0.0.10\", \"10.0.0.133\", \"10.0.0.187\"]\n>>> lanutils.port_is_open(\"10.0.0.10\", 8000)\n>>> True\n>>> lanutils.scan_ports(\"10.0.0.10\", (7990, 8010))\n>>> [8000]\n>>> lanutils.get_available_port(\"10.0.0.10\", (8000, 8005))\n>>> 8001\n</pre>",
    "bugtrack_url": null,
    "license": "",
    "summary": "Small package to probe ip addresses and ports on a local network",
    "version": "0.0.4",
    "split_keywords": [
        "discovery",
        "lan",
        "network",
        "networking"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "94070eaf68545f2697b3003788bbe1893446f91af7be2ef970f5a2b9374a7aaa",
                "md5": "1ca22d20c990ff5c81c6dec47bc5f555",
                "sha256": "6ed40b758dffad5332000dad0849021d37016007e442e0f8bd53a13d9674d530"
            },
            "downloads": -1,
            "filename": "lanutils-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1ca22d20c990ff5c81c6dec47bc5f555",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3919,
            "upload_time": "2023-03-22T21:31:48",
            "upload_time_iso_8601": "2023-03-22T21:31:48.842937Z",
            "url": "https://files.pythonhosted.org/packages/94/07/0eaf68545f2697b3003788bbe1893446f91af7be2ef970f5a2b9374a7aaa/lanutils-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f60babc7c061c92bc1700a31af10d2992d5a8f973a613b8cca568eaf5c155340",
                "md5": "da6cccf40b614bd81fd35ffe530b9385",
                "sha256": "779abfd36660a6e98ec62f351d70ebb8c0697b7eeac2e20814505014e0283d2a"
            },
            "downloads": -1,
            "filename": "lanutils-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "da6cccf40b614bd81fd35ffe530b9385",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 36822,
            "upload_time": "2023-03-22T21:31:50",
            "upload_time_iso_8601": "2023-03-22T21:31:50.389787Z",
            "url": "https://files.pythonhosted.org/packages/f6/0b/abc7c061c92bc1700a31af10d2992d5a8f973a613b8cca568eaf5c155340/lanutils-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-22 21:31:50",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "lanutils"
}
        
Elapsed time: 0.05991s