{ "info": { "author": "hm-distro", "author_email": "", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2" ], "description": "# Netblocks\n\n**This is not an official Google product.**\n\nThis module retrieves the DNS entries recursively as per the below links\n\n The GCE ranges\n https://cloud.google.com/compute/docs/faq#where_can_i_find_product_name_short_ip_ranges\n The Google Services ranges\n https://support.google.com/a/answer/60764\n The AWS ranges\n https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html\n\nInstall the package with `pip install netblocks` or `pip install git+https://github.com/hm-distro/netblocks/`\n\nThe `fetch()` method has the default parameter value of `initial_dns_list=[GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS, GOOGLE_INITIAL_SPF_NETBLOCK_DNS]`\n\nwhere \n\n #The GCE ranges\n GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS = \"_cloud-netblocks.googleusercontent.com\"\n\n #The Google Services ranges\n GOOGLE_INITIAL_SPF_NETBLOCK_DNS= \"_spf.google.com\"\n\n #The AWS ranges\n AWS_IP_RANGES=\"https://ip-ranges.amazonaws.com/ip-ranges.json\"\n\nSee [here](https://github.com/hm-distro/netblocks) on how to use this module in Google App Engine \n### API Usage\n\n import netblocks\n cidr_blocks = set()\n api = netblocks.NetBlocks()\n try:\n # returns both GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS and GOOGLE_INITIAL_SPF_NETBLOCK_DNS\n cidr_blocks = api.fetch()\n \n # To get only the SPF list use the below:\n # cidr_blocks = api.fetch([netblocks.GOOGLE_INITIAL_SPF_NETBLOCK_DNS])\n \n \n # To get only the GCE list use the below:\n # cidr_blocks = api.fetch([netblocks.GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS]) \n \n # To get only the AWS list use the below:\n # cidr_blocks = api.fetch([netblocks.AWS_IP_RANGES]) \n \n \"\"\"\n The cidr_blocks set contains strings like the below\n ip4:146.148.2.0/23\n ...\n ip6:2600:1900::/35\n \"\"\"\n \n except netblocks.NetBlockRetrievalException as err:\n #exception handling\n pass\n\n## Language\n- [Python](https://www.python.org/)\n\n## Dependencies\nrequests\n\n## License\nApache 2.0; see [LICENSE](https://github.com/hm-distro/netblocks/blob/master/netblocks/LICENSE) for details.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hm-distro/netblocks/", "keywords": "", "license": "Apache 2", "maintainer": "", "maintainer_email": "", "name": "netblocks", "package_url": "https://pypi.org/project/netblocks/", "platform": "any", "project_url": "https://pypi.org/project/netblocks/", "project_urls": { "Homepage": "https://github.com/hm-distro/netblocks/" }, "release_url": "https://pypi.org/project/netblocks/0.0.11/", "requires_dist": null, "requires_python": "", "summary": "Get the Cloud Provider netblocks", "version": "0.0.11" }, "last_serial": 4188856, "releases": { "0.0.10": [ { "comment_text": "", "digests": { "md5": "38c710e10374ddb5788c64f84c6593d7", "sha256": "f965fa439508d2edc0fa55fdf7a398fadd35891caf5c8c147842d97797293987" }, "downloads": -1, "filename": "netblocks-0.0.10.tar.gz", "has_sig": false, "md5_digest": "38c710e10374ddb5788c64f84c6593d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8219, "upload_time": "2018-08-14T15:47:47", "url": "https://files.pythonhosted.org/packages/2d/27/be4dc0b73529e1c97b4007e1b42074320e48d6b628f18a2ba5770f6989bc/netblocks-0.0.10.tar.gz" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "1d7aea0a480d903e200f9acc1acf40a8", "sha256": "dc166f261f53c87190fc62b530f8d8d09a971f99e6e8e1290f1aca611ef25214" }, "downloads": -1, "filename": "netblocks-0.0.11.tar.gz", "has_sig": false, "md5_digest": "1d7aea0a480d903e200f9acc1acf40a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8254, "upload_time": "2018-08-20T15:15:35", "url": "https://files.pythonhosted.org/packages/33/0d/f1328b6e827b76ffe94f9f521467874fc52bb535cdbbf7e1bd0f525da117/netblocks-0.0.11.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "8a60f404d0ff95edb03025c8ebcca966", "sha256": "51d4ded53383885157193ef1dea1f7cc63bfaa6bdedc9c3c27b70210b4c4a8ff" }, "downloads": -1, "filename": "netblocks-0.0.6.tar.gz", "has_sig": false, "md5_digest": "8a60f404d0ff95edb03025c8ebcca966", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8127, "upload_time": "2018-06-28T15:17:12", "url": "https://files.pythonhosted.org/packages/39/39/f9671346c7ca8a43571626f47beb981fa9f2d645b831b13494cfabadf098/netblocks-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "966edfb185c57c2de5dce5d017745e4b", "sha256": "8094ac9162559d90ebce26b08be658266d9a6cf28649c2f6813bb9b070937b43" }, "downloads": -1, "filename": "netblocks-0.0.7.tar.gz", "has_sig": false, "md5_digest": "966edfb185c57c2de5dce5d017745e4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8206, "upload_time": "2018-07-30T13:28:42", "url": "https://files.pythonhosted.org/packages/5c/48/7e67c0e0b8bf16c979a766797118c16d90a99e32d4eb84bff4954579bbe0/netblocks-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "874f07be4e41596c98a7708193419942", "sha256": "a33cdeab096b2300bb6297b2589d39ae87694322131df69dd27f3c5f9b25a1cc" }, "downloads": -1, "filename": "netblocks-0.0.8.tar.gz", "has_sig": false, "md5_digest": "874f07be4e41596c98a7708193419942", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8203, "upload_time": "2018-07-30T13:33:33", "url": "https://files.pythonhosted.org/packages/63/39/46a3980fa7f53f76d6ea96d942a959ff34f68ec971dfad87f8e2eebfe060/netblocks-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "9638955698e641ab5140c12f8092421c", "sha256": "3c43238c246cf66ac1add7630a5e36d63d772ba2ca56bdcbf73ac82c318e8eee" }, "downloads": -1, "filename": "netblocks-0.0.9.tar.gz", "has_sig": false, "md5_digest": "9638955698e641ab5140c12f8092421c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8204, "upload_time": "2018-08-14T15:42:07", "url": "https://files.pythonhosted.org/packages/35/cc/7044da17ca94d7988db580cbdc95a7bdacb72c9a8cc26a2a4af4d1744b87/netblocks-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1d7aea0a480d903e200f9acc1acf40a8", "sha256": "dc166f261f53c87190fc62b530f8d8d09a971f99e6e8e1290f1aca611ef25214" }, "downloads": -1, "filename": "netblocks-0.0.11.tar.gz", "has_sig": false, "md5_digest": "1d7aea0a480d903e200f9acc1acf40a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8254, "upload_time": "2018-08-20T15:15:35", "url": "https://files.pythonhosted.org/packages/33/0d/f1328b6e827b76ffe94f9f521467874fc52bb535cdbbf7e1bd0f525da117/netblocks-0.0.11.tar.gz" } ] }