{ "info": { "author": "Michael Penkov", "author_email": "misha.penkov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "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", "Programming Language :: Python :: 3.5" ], "description": "=======\npygeons\n=======\n\n\n.. image:: https://img.shields.io/pypi/v/pygeons.svg\n :target: https://pypi.python.org/pypi/pygeons\n\n.. image:: https://img.shields.io/travis/mpenkov/pygeons.svg\n :target: https://travis-ci.org/mpenkov/pygeons\n\n.. image:: https://readthedocs.org/projects/pygeons/badge/?version=latest\n :target: https://pygeons.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/mpenkov/pygeons/shield.svg\n :target: https://pyup.io/repos/github/mpenkov/pygeons/\n :alt: Updates\n\n\nGeographical queries made simple.\n\n* Free software: MIT license\n* Documentation: https://pygeons.readthedocs.io.\n\n>>> from pprint import pprint\n>>> import pygeons\n>>> # Scrub a (city, state, country) combination\n>>> scrubbed = pygeons.csc_scrub('sydney', 'nsw', 'au')\n>>> result = scrubbed.pop('result')\n>>> scrubbed\n{'score': 0.9, 'st_status': 'O', 'cc_status': 'O', 'count': 1}\n>>> pprint(result)\n{'_id': 2147714,\n 'abbr': [],\n 'admin1': 'State of New South Wales',\n 'admin1names': ['new south wales', 'nsw', 'state of new south wales'],\n 'admin2': '17200',\n 'admin2names': [],\n 'asciiname': 'Sydney',\n 'countryCode': 'AU',\n 'featureClass': 'P',\n 'featureCode': 'PPLA',\n 'latitude': -33.86785,\n 'longitude': 151.20732,\n 'name': 'Sydney',\n 'names': ['syd', 'sydney', 'sydney city'],\n 'names_lang': {'en': ['syd', 'sydney', 'sydney city']},\n 'population': 4627345}\n>>> pygeons.csc_scrub('sydney', 'nsw', None)['result']['_id'] # same GeoNames ID as above\n2147714\n>>> # Normalize a state abbreviation\n>>> pygeons.norm('admin1', 'AU', 'nsw')\n'State of New South Wales'\n>>> # Translate a country name in the native language into English\n>>> pygeons.country_info('\u0440\u043e\u0441\u0441\u0438\u044f')['names_lang']['en'][:4]\n['ru', 'rus', 'russia', 'russian federation']\n\nFeatures\n--------\n\n* Determine if a (city, state and country) combination corresponds to an existing place name\n* Scrub (city, state, country) combinations\n* Normalize city, state and country names to their canonical representations\n* Frame queries in English as well as languages native to each particular country\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n\n=======\nHistory\n=======\n\n0.1.1 (2017-12-03)\n------------------\n\n* First working release. Includes import scripts and source code.\n\n0.1.0 (2017-11-26)\n------------------\n\n* First release on PyPI.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mpenkov/pygeons", "keywords": "pygeons", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "pygeons", "package_url": "https://pypi.org/project/pygeons/", "platform": "", "project_url": "https://pypi.org/project/pygeons/", "project_urls": { "Homepage": "https://github.com/mpenkov/pygeons" }, "release_url": "https://pypi.org/project/pygeons/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Geographical queries made easy.", "version": "0.1.1" }, "last_serial": 3384653, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9a97a3c085c2936831bf0cc7f9739a67", "sha256": "9034a7d97f99bfaba3eafb97fe33bbf6cfce618dc1e63188ca03439ce50bd180" }, "downloads": -1, "filename": "pygeons-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9a97a3c085c2936831bf0cc7f9739a67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11296, "upload_time": "2017-11-26T13:08:21", "url": "https://files.pythonhosted.org/packages/c3/c6/1f1864a7a3ec980b00e9535c6676aa1fefe67c5ddc12752fca08ec599e5f/pygeons-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "80d3236f436a323f73b543b3450d38f7", "sha256": "e9b915a35c25984ae905f227d3af002749159e2df9120a7d2385c8d65f8286fa" }, "downloads": -1, "filename": "pygeons-0.1.1.tar.gz", "has_sig": false, "md5_digest": "80d3236f436a323f73b543b3450d38f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43669, "upload_time": "2017-12-03T13:17:44", "url": "https://files.pythonhosted.org/packages/46/6b/addf922673670f16e6d6c68d1ad833c03c56ac5fd0809c698de5c411f5f2/pygeons-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "80d3236f436a323f73b543b3450d38f7", "sha256": "e9b915a35c25984ae905f227d3af002749159e2df9120a7d2385c8d65f8286fa" }, "downloads": -1, "filename": "pygeons-0.1.1.tar.gz", "has_sig": false, "md5_digest": "80d3236f436a323f73b543b3450d38f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 43669, "upload_time": "2017-12-03T13:17:44", "url": "https://files.pythonhosted.org/packages/46/6b/addf922673670f16e6d6c68d1ad833c03c56ac5fd0809c698de5c411f5f2/pygeons-0.1.1.tar.gz" } ] }