{ "info": { "author": "Graydon Hoare", "author_email": "graydon@pobox.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Scientific/Engineering :: GIS", "Topic :: Software Development :: Internationalization" ], "description": "Contains the bounding boxes and miscallaneous additional information for\ncountries extracted from\n\nhttp://www.naturalearthdata.com/\n\nNote that many countries have a number of \"subunits\": geographically\ndisjoint components like Alaska in the USA, administratively distinct\nregions such as the countries of Great Britain, or overseas islands for\nmany European nations. As a result this module returns *iterators* over\nsets of Country objects for each country code, rather than single Country\nobjects.\n\nPrevious versions of this library returned an (often large) singular\nbounding box for each country code; in many cases these spanned much of the\nglobe and were therefore geographically less useful.\n\n\nInstallation\n============\n\n::\n\n $ pip install country-bounding-boxes\n\nUsage\n=====\n\n::\n\n >>> from country_bounding_boxes import (\n country_subunits_containing_point,\n country_subunits_by_iso_code\n )\n\nGet a country by its 2- or 3-letter ISO code::\n\n >>> [c.name for c in country_subunits_by_iso_code('ZW')]\n ['Zimbabwe']\n\n >>> [c.name for c in country_subunits_by_iso_code('ZWE')]\n ['Zimbabwe']\n\n >>> [c.name for c in country_subunits_by_iso_code('TM')]\n ['Turkmenistan']\n\n >>> [c.name for c in country_subunits_by_iso_code('GB')]\n ['Wales', 'England', 'N. Ireland', 'Scotland']\n\nInspect bounding box as (lon1, lat1, lon2, lat2) tuples::\n\n >>> [c.bbox for c in country_subunits_by_iso_code('TM')]\n [(52.5024597512, 35.2706639674, 66.5461503437, 42.7515510117)]\n\n >>> [c.bbox for c in country_subunits_by_iso_code('GB')]\n [(-5.2623046875, 51.3904296875, -2.6623046875, 53.4192871094),\n (-5.65625, 50.0213867188, 1.74658203125, 55.8079589844),\n (-8.14482421875, 54.0512695312, -5.47041015625, 55.241796875),\n (-7.54296875, 54.689453125, -0.774267578125, 60.8318847656)]\n\nGet a set of countries by their intersection with a point::\n\n >>> [c.name for c in\n country_subunits_containing_point(lon=-79.888252,\n lat=32.819747)]\n ['U.S.A.']\n\n >>> [c.name for c in\n country_subunits_containing_point(lon=5.983333,\n lat=50.883333)]\n ['Germany', 'France', 'Netherlands']\n\nDevelopment\n===========\n\nIf you want to do development on the library, follow these steps:\n\n* Create a virtualenv\n* bin/pip install -r requirements/tests.txt\n* bin/nosetests -s country_bounding_boxes", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/graydon/country-bounding-boxes", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "country-bounding-boxes", "package_url": "https://pypi.org/project/country-bounding-boxes/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/country-bounding-boxes/", "project_urls": { "Homepage": "https://github.com/graydon/country-bounding-boxes" }, "release_url": "https://pypi.org/project/country-bounding-boxes/0.2.3/", "requires_dist": null, "requires_python": null, "summary": "Library of bounding boxes of countries (and associated data)", "version": "0.2.3" }, "last_serial": 1633001, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f46626d9e481f703cedf541104520f7a", "sha256": "2c9175c7583859bb71af621cac3aa36b8a8d0007c61189fd9b698925786acc6b" }, "downloads": -1, "filename": "country-bounding-boxes-0.1.tar.gz", "has_sig": true, "md5_digest": "f46626d9e481f703cedf541104520f7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34679, "upload_time": "2014-04-24T01:02:17", "url": "https://files.pythonhosted.org/packages/7b/c1/c902a9ee2384584628f4591be8a82a562f1a847c501f1876b029928eb8a6/country-bounding-boxes-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2e2c853d665197bed57eeec6c294708d", "sha256": "d96b3a616a517713460bf699ec01206216b460f6394a3a833b7239dc130f6c69" }, "downloads": -1, "filename": "country-bounding-boxes-0.1.1.tar.gz", "has_sig": true, "md5_digest": "2e2c853d665197bed57eeec6c294708d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 35869, "upload_time": "2014-04-24T01:13:50", "url": "https://files.pythonhosted.org/packages/31/52/61cd825e7b2de4519102ecfd8a5a6a24fdace01e485867e1445ca20f67a1/country-bounding-boxes-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "fcf2b88352bc927ee2638ade178ea177", "sha256": "0b2d8296d63ac3af5b4b4fbe054f561e99513cbac7aa6b8e7ab1551bd87718d5" }, "downloads": -1, "filename": "country-bounding-boxes-0.1.2.tar.gz", "has_sig": true, "md5_digest": "fcf2b88352bc927ee2638ade178ea177", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 35862, "upload_time": "2014-04-24T01:16:53", "url": "https://files.pythonhosted.org/packages/d5/18/248ccfc25712f0fae4183b7baf2c05ca39eadaf806050240cbf394dccd18/country-bounding-boxes-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "469c9e4b758da67e1c7fb4eca457e8dc", "sha256": "85d31faa8b172a1d83c5bd6253603e2654614a56fc6e9293c45b9295860c22ab" }, "downloads": -1, "filename": "country-bounding-boxes-0.2.0.tar.gz", "has_sig": false, "md5_digest": "469c9e4b758da67e1c7fb4eca457e8dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 59957, "upload_time": "2014-05-29T19:55:37", "url": "https://files.pythonhosted.org/packages/48/8c/873c42575bf2d5c2b13fd4e17ee21043f6e2e4b928e59f1eb26714242a08/country-bounding-boxes-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "1069599b54974137cd0eccd4c02ed4f5", "sha256": "14d515bf70945fa831e72284c50f83fdf79d3c237e1e40ed5d3d72551d7c5e69" }, "downloads": -1, "filename": "country-bounding-boxes-0.2.1.tar.gz", "has_sig": false, "md5_digest": "1069599b54974137cd0eccd4c02ed4f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60063, "upload_time": "2014-05-30T20:44:00", "url": "https://files.pythonhosted.org/packages/74/28/cf80cf886082ed2cab1bf368938e6e3191457bb243069be5112571d4f870/country-bounding-boxes-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "294065597efdc7071921694c11bdfa9a", "sha256": "8ebf0e2d7f25867ccf15a6ffac274a47b1c40d3c65accfbeb91e753e0c9b0f2e" }, "downloads": -1, "filename": "country-bounding-boxes-0.2.2.tar.gz", "has_sig": false, "md5_digest": "294065597efdc7071921694c11bdfa9a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61257, "upload_time": "2014-08-18T19:27:44", "url": "https://files.pythonhosted.org/packages/98/fa/5510edc5808937ed2e00638e6ff5bf2194d6d734b4b1263d938c68356610/country-bounding-boxes-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "571e9a4827397444f3b816f2c7c601bd", "sha256": "bbd1f4b029a0c2aa33a69eb4922e908f5af561221d08eeb7b7de4677705e5426" }, "downloads": -1, "filename": "country-bounding-boxes-0.2.3.tar.gz", "has_sig": false, "md5_digest": "571e9a4827397444f3b816f2c7c601bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61309, "upload_time": "2015-07-14T15:34:57", "url": "https://files.pythonhosted.org/packages/98/46/22750bd08b3296d0fceb01a1c73ff20c9f565626cb6bceb9d8829d641519/country-bounding-boxes-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "571e9a4827397444f3b816f2c7c601bd", "sha256": "bbd1f4b029a0c2aa33a69eb4922e908f5af561221d08eeb7b7de4677705e5426" }, "downloads": -1, "filename": "country-bounding-boxes-0.2.3.tar.gz", "has_sig": false, "md5_digest": "571e9a4827397444f3b816f2c7c601bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61309, "upload_time": "2015-07-14T15:34:57", "url": "https://files.pythonhosted.org/packages/98/46/22750bd08b3296d0fceb01a1c73ff20c9f565626cb6bceb9d8829d641519/country-bounding-boxes-0.2.3.tar.gz" } ] }