{
"info": {
"author": "tty72.com",
"author_email": "dev@tty72.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: System :: Networking",
"Topic :: System :: Networking :: Monitoring",
"Topic :: Utilities"
],
"description": "Module and script to test local network membership (IPv4)\n===========================================================\n\nA set of utility functions and a command-line script useful in testing local\nmachine membership in IPv4 networks. Requires no external modules\n(\"batteries-included\" only).\n\nCommand-line usage\n++++++++++++++++++\n\n#. Sample usage\n\nTest all network interfaces, and return success if any interface has an IP\naddress in the 10.100.3.0/24 network:\n\n .. code-block:: bash\n\n user@localhost$ local_net 10.100.3.0/24; echo $?\n 0\n user@localhost$\n\nSpecific interfaces may be tested by inclusion of the -i/--iface flag, which\nmay be repeated:\n\n .. code-block:: bash\n\n user@localhost$ local_net -i etho -i wlan2 192.168.1.0/24\n\nAsserting that no local interface is a member of a given network is also\npossible by using the -n/--negate flag:\n\n .. code-block:: bash\n\n user@localhost$ local_net -n 10.1.0.0/16\n\n\nTest success or failure is indicated by exit status code - 0 for success, 1\nfor failure. This allows for ease of use in conditional statements and other\ntests (e.g. ssh config 'exec' testing). Exit status 64 is returned if an\nunrecoverable error occurs (e.g. an interface was passed that does not exist),\nand error information may be written to stderr. Otherwise, no output is made.\n\n\nRequirements and compatibility\n++++++++++++++++++++++++++++++\n\nThe code should work on any POSIX-compatible system, but has only been tested\non modern Linux installs. Pull requests and bug reports for other operating\nsystems are welcome. Supports Python versions 2.6+. Python versions < 3.3\nrequire a system libc which supports if_nameindex() to get around lack of same\nin socket module.\n\n=========\nChangelog\n=========\nAll notable changes to this project will be documented in this file.\n\nThe format is based on `Keep a Changelog `_,\nand this project adheres to `Semantic Versioning `_.\n\n[0.2.0] - 2018-09-30\n++++++++++++++++++++\n\nChanged\n-------\n\n- Don't import ctypes until we need it.\n- Catch exception from all_ifaces() in _main so we can exit correctly.\n- Add LICENSE file\n- Fix this CHANGELOG\n\n[0.1.0] - 2018-09-30\n++++++++++++++++++++\n\nAdded\n-----\n\n- CHANGELOG.rst\n- MANIFEST.in\n- README.rst\n- localnet.py\n- setup.cfg\n- setup.py\n- .gitignore\n\n\n",
"description_content_type": "",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://gitlab.com/ndav/localnet",
"keywords": "networking address console interface",
"license": "GPLv3",
"maintainer": "",
"maintainer_email": "",
"name": "localnet",
"package_url": "https://pypi.org/project/localnet/",
"platform": "",
"project_url": "https://pypi.org/project/localnet/",
"project_urls": {
"Homepage": "https://gitlab.com/ndav/localnet"
},
"release_url": "https://pypi.org/project/localnet/0.2.0/",
"requires_dist": null,
"requires_python": "",
"summary": "Module and script to check if local machine is on agiven network.",
"version": "0.2.0"
},
"last_serial": 4326480,
"releases": {
"0.2.0": [
{
"comment_text": "",
"digests": {
"md5": "33ec86e76e62bcc0d354ebaf147c1c95",
"sha256": "58c1c88e609bbc132fa89f51069e39b370455b9b8a2a48725a029c87614c6341"
},
"downloads": -1,
"filename": "localnet-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "33ec86e76e62bcc0d354ebaf147c1c95",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 17734,
"upload_time": "2018-10-01T02:19:01",
"url": "https://files.pythonhosted.org/packages/f3/f8/023d3477fc1388760c4f3d8bbc0aa39be6244e1151c060b136180750da7e/localnet-0.2.0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "73d51ca9c8aedb084596f85e4d81c981",
"sha256": "ac4c4b1bbef5577f10a8c4889fcd31d6af89bcf40b26e297f2fb8abe45ef58e7"
},
"downloads": -1,
"filename": "localnet-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "73d51ca9c8aedb084596f85e4d81c981",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5614,
"upload_time": "2018-10-01T02:19:02",
"url": "https://files.pythonhosted.org/packages/fc/8f/24137b07a29488b6c09d7e47a870c27c85caafc85e3f425d4882fe5e997e/localnet-0.2.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "33ec86e76e62bcc0d354ebaf147c1c95",
"sha256": "58c1c88e609bbc132fa89f51069e39b370455b9b8a2a48725a029c87614c6341"
},
"downloads": -1,
"filename": "localnet-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "33ec86e76e62bcc0d354ebaf147c1c95",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 17734,
"upload_time": "2018-10-01T02:19:01",
"url": "https://files.pythonhosted.org/packages/f3/f8/023d3477fc1388760c4f3d8bbc0aa39be6244e1151c060b136180750da7e/localnet-0.2.0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "73d51ca9c8aedb084596f85e4d81c981",
"sha256": "ac4c4b1bbef5577f10a8c4889fcd31d6af89bcf40b26e297f2fb8abe45ef58e7"
},
"downloads": -1,
"filename": "localnet-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "73d51ca9c8aedb084596f85e4d81c981",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5614,
"upload_time": "2018-10-01T02:19:02",
"url": "https://files.pythonhosted.org/packages/fc/8f/24137b07a29488b6c09d7e47a870c27c85caafc85e3f425d4882fe5e997e/localnet-0.2.0.tar.gz"
}
]
}