{ "info": { "author": "Igor `idle sign` Starikov", "author_email": "idlesign@yandex.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "pysyge\n======\nhttp://github.com/idlesign/pysyge\n\n.. image:: https://idlesign.github.io/lbc/py2-lbc.svg\n :target: https://idlesign.github.io/lbc/\n :alt: LBC Python 2\n\n----\n\n|release| |lic|\n\n.. |release| image:: https://img.shields.io/pypi/v/pysyge.svg\n :target: https://pypi.python.org/pypi/pysyge\n\n.. |lic| image:: https://img.shields.io/pypi/l/pysyge.svg\n :target: https://pypi.python.org/pypi/pysyge\n\n\n\nWhat's that\n-----------\n\n*pysyge is an API to access data from Sypex Geo IP database files from your Python code.*\n\nFor more information about Sypex Geo databases and their features please visit http://sypexgeo.net.\n\nDirect DB link that might became broken over time:\n\n * Sypex Geo City DB - http://sypexgeo.net/files/SxGeoCity_utf8.zip\n\n\n\nRequirements\n------------\n\n* Python 2.7+, 3.5+\n\n\n\nAttention\n---------\n\n1. This version of pysyge works with **Sypex Geo DB version 2.2 or above**.\n\n The structure of a dictionary returned by GeoLocator.get_location() was preserved in a backward compatible manner\n as much as possible, yet it's advised to update your code to use data from `info` sub dictionary.\n\n2. This version of pysyge works with **UTF-8** Sypex Geo Databases. Texts returned by pysyge are **UTF-8**.\n\n\n\nQuickstart\n----------\n\nDownload Geo IP database file from http://sypexgeo.net/ (example below uses ``SxGeoCityMax.dat`` file).\n\nApplication sample\n\n.. code-block:: python\n\n # Import all we need from pysyge module.\n from pysyge import GeoLocator, MODE_BATCH, MODE_MEMORY\n\n # Create GeoLocator object to access API\n # from 'SxGeoCityMax.dat' using fast memory mode.\n geodata = GeoLocator('SxGeoCityMax.dat', MODE_BATCH | MODE_MEMORY)\n\n # Let's get some meta information.\n print('DB version %s (%s)' % (geodata.get_db_version(), geodata.get_db_date()))\n\n # Request geo information for 77.88.21.3 IP address.\n # Getting detailed information, including region info.\n location = geodata.get_location('77.88.21.3', detailed=True)\n\n # Print out some lyrics.\n # Most interesting data is under `info` in `city`, `country` and `region` dictionaries\n print('%s (%s) calling. All the circuits are busy.' % (\n location['info']['city']['name_en'], location['info']['country']['iso']))\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/idlesign/pysyge", "keywords": "", "license": "BSD 3-Clause License", "maintainer": "", "maintainer_email": "", "name": "pysyge", "package_url": "https://pypi.org/project/pysyge/", "platform": "", "project_url": "https://pypi.org/project/pysyge/", "project_urls": { "Homepage": "http://github.com/idlesign/pysyge" }, "release_url": "https://pypi.org/project/pysyge/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "API to access data from Sypex Geo IP database files from your Python code", "version": "1.0.0" }, "last_serial": 4717222, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c607f7e823c7977d5082e00b3926ea1e", "sha256": "c262a85d910c3c8b333e9429878a05d31f3cace50f08f1ae4f8be33d6235587a" }, "downloads": -1, "filename": "pysyge-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c607f7e823c7977d5082e00b3926ea1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8186, "upload_time": "2012-06-28T16:18:14", "url": "https://files.pythonhosted.org/packages/9c/8b/55ea1b1ed8d1a3121e6d62e303d82998deb77bf53b60cbe457295bbef72f/pysyge-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "cf844b5d74a37aaa0579487c17b16a43", "sha256": "0898732caad3d7581a8ca23dbd923cd520389aee3c0013c30376dbcab2e0a9a7" }, "downloads": -1, "filename": "pysyge-0.1.1.tar.gz", "has_sig": false, "md5_digest": "cf844b5d74a37aaa0579487c17b16a43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7600631, "upload_time": "2013-07-04T15:17:39", "url": "https://files.pythonhosted.org/packages/25/bb/8a7716a6586c66d35a57ada6d713c075153a9ca7ee1c1f5eedee1baedded/pysyge-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6dbccfcae802dab6784f94fbcbb875cd", "sha256": "2f350de13dbb257f7b2c4ac606bb9f5823b027b3e6b4f0f3de9d295954b248ab" }, "downloads": -1, "filename": "pysyge-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6dbccfcae802dab6784f94fbcbb875cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8234, "upload_time": "2014-06-21T08:06:05", "url": "https://files.pythonhosted.org/packages/e4/92/c3e2a174c30b68f6bd444901211b979909d041294055679a787ede599f0d/pysyge-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "5c0b5fc6ca60ea0b71e403ad75eadd39", "sha256": "22a0098b35788711074cdae6483d706b2985a2597be10556d26bf323e69da4b7" }, "downloads": -1, "filename": "pysyge-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5c0b5fc6ca60ea0b71e403ad75eadd39", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8496, "upload_time": "2018-03-08T03:10:25", "url": "https://files.pythonhosted.org/packages/02/46/94d412ab26d898c4f0b78d49290cc3d076ac54716dab7724c35e21b339b0/pysyge-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8131776564d46b902b053a4e4fa60da6", "sha256": "64f7a581e691f0a4d8ec123d730e5ab8860e490b9a78a89b629410eb87cca914" }, "downloads": -1, "filename": "pysyge-0.3.0.tar.gz", "has_sig": false, "md5_digest": "8131776564d46b902b053a4e4fa60da6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8732, "upload_time": "2018-03-08T03:10:22", "url": "https://files.pythonhosted.org/packages/46/97/739b5c32e655b90eaf2fd01355f89840ad80a1070f591ef068f3d31f5b3f/pysyge-0.3.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "aecb0e0d922f3cad9246935b7acad658", "sha256": "863f9c94d0c56a1ae37f7e3813b12acc64226704ca42135ba333db6da56ee5be" }, "downloads": -1, "filename": "pysyge-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "aecb0e0d922f3cad9246935b7acad658", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8514, "upload_time": "2019-01-20T04:08:32", "url": "https://files.pythonhosted.org/packages/df/70/8db8c026d907eb7ceae02eb21261c43e3b542d3f3b566c73dab0ddfa6a63/pysyge-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f442f05048e9358655e4a65b942dc6f1", "sha256": "40f3225ceb5c028f17cc05cde18f7c1e3e197ba922666cc58bf710e1ef8c9d99" }, "downloads": -1, "filename": "pysyge-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f442f05048e9358655e4a65b942dc6f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8738, "upload_time": "2019-01-20T04:08:29", "url": "https://files.pythonhosted.org/packages/7a/b4/1019fe768992d2f25d9a428c0dff3010585f125d4aa4d1d9632c34c25407/pysyge-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "aecb0e0d922f3cad9246935b7acad658", "sha256": "863f9c94d0c56a1ae37f7e3813b12acc64226704ca42135ba333db6da56ee5be" }, "downloads": -1, "filename": "pysyge-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "aecb0e0d922f3cad9246935b7acad658", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8514, "upload_time": "2019-01-20T04:08:32", "url": "https://files.pythonhosted.org/packages/df/70/8db8c026d907eb7ceae02eb21261c43e3b542d3f3b566c73dab0ddfa6a63/pysyge-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f442f05048e9358655e4a65b942dc6f1", "sha256": "40f3225ceb5c028f17cc05cde18f7c1e3e197ba922666cc58bf710e1ef8c9d99" }, "downloads": -1, "filename": "pysyge-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f442f05048e9358655e4a65b942dc6f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8738, "upload_time": "2019-01-20T04:08:29", "url": "https://files.pythonhosted.org/packages/7a/b4/1019fe768992d2f25d9a428c0dff3010585f125d4aa4d1d9632c34c25407/pysyge-1.0.0.tar.gz" } ] }