{ "info": { "author": "Jerry Lau", "author_email": "whilgeek@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": "===============================\nGEO Python\n===============================\n\n\n.. image:: https://img.shields.io/pypi/v/geo_python.svg\n :target: https://pypi.python.org/pypi/geo_python\n\n.. image:: https://img.shields.io/travis/jerryleooo/geo_python.svg\n :target: https://travis-ci.org/jerryleooo/geo_python\n\n.. image:: https://readthedocs.org/projects/geo-python/badge/?version=latest\n :target: https://geo-python.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/jerryleooo/geo_python/shield.svg\n :target: https://pyup.io/repos/github/jerryleooo/geo_python/\n :alt: Updates\n\n\nSimple GEO library based on Redis GEO commands\n\n* Free software: MIT license\n* Documentation: https://geo-python.readthedocs.io.\n\n\nFrom version 3.2, Redis contains a set of very wonderful commands: the GEO commands (https://redis.io/commands#geo)\n\nWith these commands, we can easily develop LBS or GEO application.\n\nUnfortunately, these features are not in redis-py(https://github.com/andymccurdy/redis-py) released packages, so we can only use its development version.\n\n\nGet Started\n-----------\n\n::\n\n In [1]: from geo_python import Point\n In [2]: class MyPoint(Point):\n ...: __key__ = 'my_point'\n ...:\n\n\n In [3]: point = MyPoint.create(120, 40, 'my point 1')\n In [4]: MyPoint.query_by_pos(point.longitude, point.latitude)\n Out[4]: []\n\n\n In [5]: MyPoint.query_by_member(point.member)\n Out[5]: []\n\n\n In [6]: point.update(member='my point 2')\n In [7]: print point.member\n my point 2\n\n In [8]: another_point = MyPoint.get_by_member(point.member)\n\n In [9]: print another_point\n \n\n In [10]: print MyPoint.dist(point, another_point)\n 0.0\n\n In [11]: point.geo_hash()\n Out[11]: 'wxj7d9v2fs0'\n\n\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.0 (2016-12-30)\n------------------\n\n* First release on PyPI.\n\n0.1.1 (2017-01-12)\n------------------\n\n* Change the config\n\n\n0.1.2 (2017-01-12)\n------------------\n* Fix config error", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jerryleooo/geo_python", "keywords": "geo_python", "license": "MIT license", "maintainer": null, "maintainer_email": null, "name": "geo_python", "package_url": "https://pypi.org/project/geo_python/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/geo_python/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jerryleooo/geo_python" }, "release_url": "https://pypi.org/project/geo_python/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Simple GEO library based on Redis GEO function", "version": "0.1.2" }, "last_serial": 2569824, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e97f04e076d3e9ebae4bab709d6c2ee4", "sha256": "9cccc7e980a10c949dbff2b1ba0bddeb0004380e159017c708153cdeb7972299" }, "downloads": -1, "filename": "geo_python-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e97f04e076d3e9ebae4bab709d6c2ee4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18394, "upload_time": "2017-01-09T15:55:57", "url": "https://files.pythonhosted.org/packages/7f/0f/a66b74e7b82cf8155b44c8773b5e674ed2be2657f9166ac2eebb9e4c38b4/geo_python-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "abc38ec05231557568265889d021c468", "sha256": "eaf5b305d0d38403a6512b03bb78f3d370dcd4fe5a7314df41474ef65a3c3b11" }, "downloads": -1, "filename": "geo_python-0.1.1.tar.gz", "has_sig": false, "md5_digest": "abc38ec05231557568265889d021c468", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18427, "upload_time": "2017-01-12T13:21:33", "url": "https://files.pythonhosted.org/packages/0e/ae/fe234ed9a403eb5bcfa0e731b11dfbbb75fd79a6ff4bcdf6352fa53d3c28/geo_python-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c86d9d99348b812b9cf104e60e78184f", "sha256": "bc46fd7d61d720082b540d0245e87c4a7c381aec3cb6c30e216b54c11c25883d" }, "downloads": -1, "filename": "geo_python-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c86d9d99348b812b9cf104e60e78184f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18411, "upload_time": "2017-01-12T14:25:51", "url": "https://files.pythonhosted.org/packages/99/b6/9625f66c6cf0d87df47f79799ff2b123aac3a08cb7885abbd7e71303cfd7/geo_python-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c86d9d99348b812b9cf104e60e78184f", "sha256": "bc46fd7d61d720082b540d0245e87c4a7c381aec3cb6c30e216b54c11c25883d" }, "downloads": -1, "filename": "geo_python-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c86d9d99348b812b9cf104e60e78184f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18411, "upload_time": "2017-01-12T14:25:51", "url": "https://files.pythonhosted.org/packages/99/b6/9625f66c6cf0d87df47f79799ff2b123aac3a08cb7885abbd7e71303cfd7/geo_python-0.1.2.tar.gz" } ] }