{ "info": { "author": "Matthew Flanagan", "author_email": "mattimustang@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "IPv4 and IPv6 address summarization tool\n========================================\n\nSummarize a range of IP Addresses, e.g. 192.168.1.0 to 192.168.1.50, to \na group of networks. e.g. 192.168.1.0/27, 192.168.1.32/28, 192.168.1.48/31,\n192.168.1.50.\n\nRequirements\n============\n\nThe IPy module is require for this to function. It can be obtained from\nhttp://pypi.python.org/pypi/IPy.\n\nFunctions\n=========\n\nsummarize(first, last)\n----------------------\n\nSummarize a network range given a first and last IP addresses.\n \n >>> summarize('192.168.1.0', '192.168.1.50')\n ['192.168.1.0/27', '192.168.1.32/28', '192.168.1.48/31', '192.168.1.50']\n >>> summarize('192.168.0.1', '192.168.2.255')\n ['192.168.0.1', '192.168.0.2/31', '192.168.0.4/30', '192.168.0.8/29',\n '192.168.0.16/28', '192.168.0.32/27', '192.168.0.64/26', '192.168.0.128/25',\n '192.168.1.0/24', '192.168.2.0/24']\n >>> summarize('192.168.0.1', '192.168.2.254')\n ['192.168.0.1', '192.168.0.2/31', '192.168.0.4/30', '192.168.0.8/29',\n '192.168.0.16/28', '192.168.0.32/27', '192.168.0.64/26', '192.168.0.128/25',\n '192.168.1.0/24', '192.168.2.0/25', '192.168.2.128/26', '192.168.2.192/27',\n '192.168.2.224/28', '192.168.2.240/29', '192.168.2.248/30',\n '192.168.2.252/31', '192.168.2.254']\n >>> summarize('192.168.0.0', '192.168.5.253')\n ['192.168.0.0/22', '192.168.4.0/24', '192.168.5.0/25', '192.168.5.128/26',\n '192.168.5.192/27', '192.168.5.224/28', '192.168.5.240/29',\n '192.168.5.248/30', '192.168.5.252/31']\n >>> summarize('192.168.0.0', '192.168.255.254')\n ['192.168.0.0/17', '192.168.128.0/18', '192.168.192.0/19',\n '192.168.224.0/20', '192.168.240.0/21', '192.168.248.0/22',\n '192.168.252.0/23', '192.168.254.0/24', '192.168.255.0/25',\n '192.168.255.128/26', '192.168.255.192/27', '192.168.255.224/28',\n '192.168.255.240/29', '192.168.255.248/30', '192.168.255.252/31',\n '192.168.255.254']\n >>> summarize('::', '1::fffe')\n ['::/16', '1::/113', '1::8000/114', '1::c000/115', '1::e000/116',\n '1::f000/117', '1::f800/118', '1::fc00/119', '1::fe00/120', '1::ff00/121',\n '1::ff80/122', '1::ffc0/123', '1::ffe0/124', '1::fff0/125', '1::fff8/126',\n '1::fffc/127', '1::fffe']\n \nWorst case:\n\n >>> summarize('0.0.0.0', '255.255.255.254')\n ['0.0.0.0/1', '128.0.0.0/2', '192.0.0.0/3', '224.0.0.0/4', '240.0.0.0/5',\n '248.0.0.0/6', '252.0.0.0/7', '254.0.0.0/8', '255.0.0.0/9',\n '255.128.0.0/10', '255.192.0.0/11', '255.224.0.0/12', '255.240.0.0/13',\n '255.248.0.0/14', '255.252.0.0/15', '255.254.0.0/16', '255.255.0.0/17',\n '255.255.128.0/18', '255.255.192.0/19', '255.255.224.0/20',\n '255.255.240.0/21', '255.255.248.0/22', '255.255.252.0/23',\n '255.255.254.0/24', '255.255.255.0/25', '255.255.255.128/26',\n '255.255.255.192/27', '255.255.255.224/28', '255.255.255.240/29',\n '255.255.255.248/30', '255.255.255.252/31', '255.255.255.254']\n\nWhat's new\n==========\n\nVersion 1.0.0:\n\n- First public release.", "description_content_type": null, "docs_url": null, "download_url": "http://wadofstuff.googlecode.com/files/wadofstuff-ip-1.0.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://code.google.com/p/wadofstuff/", "keywords": "ipv4 ipv6 summarize", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "wadofstuff-ip", "package_url": "https://pypi.org/project/wadofstuff-ip/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wadofstuff-ip/", "project_urls": { "Download": "http://wadofstuff.googlecode.com/files/wadofstuff-ip-1.0.0.tar.gz", "Homepage": "http://code.google.com/p/wadofstuff/" }, "release_url": "https://pypi.org/project/wadofstuff-ip/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "IPv4 and IPv6 address summarization tool", "version": "1.0.0" }, "last_serial": 105300, "releases": { "1.0.0": [] }, "urls": [] }