{ "info": { "author": "Ryan Merl", "author_email": "ryan@ryanmerl.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Database", "Topic :: Internet", "Topic :: Software Development :: Libraries" ], "description": "FastGeo\n=======\n\nA fast, flexible, in-memory GeoIP lookup library.\n\nBy default FastGeo will use the GeoLite country database, distributed free by MaxMind. It contains IP ranges and the countries they're assigned to. The library can easily be extended (and will be later) to use the GeoLite database to also contain city and lat/lon data. \n\n\nUsage\n=====\n\n```\nfrom FastGeo import GeoDB\ngeo = GeoDB()\nnode = geo.lookup(\"173.194.43.8\")\nprint node.country_code # \"US\"\nprint node.country_name # \"United States\"\n```\n\n**Note**: It is recommended that the `GeoDB` object be instantiated at startup and not on demand as it can take a few seconds to load and parse the database file.\n\nThe `GeoDB` constructor will accept the path to a CSV file, although it defaults to the file distributed with the library.\n\nThe default parser assumes the following csv format:\n\"<ip lower bound>\",\"<ip upper bound>\",\"<long lower bound>\",\"<long upper bound>\",\"<country code>\",\"<country name>\"\n\nTo parse other formats, inherit from `FastGeo.parsers.DbParser` and implement `.parse()`, `.create_node()`, and `.create_value()`. To use the parser, pass a new instance to the `GeoDB` constructor.\n\n\n\n\nThis product includes GeoLite data created by MaxMind, available from\nhttp://www.maxmind.com.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/theanti9/FastGeo/releases/download/v0.1.2-alpha/FastGeo-0.1.2-py2.7.egg", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/theanti9/FastGeo", "keywords": "geo geoip lookup db", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "FastGeo", "package_url": "https://pypi.org/project/FastGeo/", "platform": "Any", "project_url": "https://pypi.org/project/FastGeo/", "project_urls": { "Download": "https://github.com/theanti9/FastGeo/releases/download/v0.1.2-alpha/FastGeo-0.1.2-py2.7.egg", "Homepage": "https://github.com/theanti9/FastGeo" }, "release_url": "https://pypi.org/project/FastGeo/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "A fast, in-memory GeoIP data lookup module", "version": "0.1.2" }, "last_serial": 959245, "releases": { "0.1.1-alpha": [ { "comment_text": "", "digests": { "md5": "e6af1aac5951489a79412d3ba81a689d", "sha256": "c0cbc32ca8ab262e86e62155d440a7922c7ed91b27eb3a66746a64cfd2c17f91" }, "downloads": -1, "filename": "FastGeo-0.1.1_alpha-py2.7.egg", "has_sig": false, "md5_digest": "e6af1aac5951489a79412d3ba81a689d", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 1286009, "upload_time": "2014-01-03T05:31:43", "url": "https://files.pythonhosted.org/packages/b5/be/c764fbe723b8e9f55bfb4981e7370c1b41dc70a3b4edb8d0b8539d6b5b55/FastGeo-0.1.1_alpha-py2.7.egg" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a311bca50b0ccb34361cf9cfee8116c0", "sha256": "12e0d8e114e5bd3b99de522b625561cdbf4052ef5bce506f2579fae42b42cb69" }, "downloads": -1, "filename": "FastGeo-0.1.2-py2.7.egg", "has_sig": false, "md5_digest": "a311bca50b0ccb34361cf9cfee8116c0", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 1286020, "upload_time": "2014-01-03T05:46:52", "url": "https://files.pythonhosted.org/packages/22/c8/860690325f79af9b0f0ffc565efa217be856e2f291b5431c9008ae017f3f/FastGeo-0.1.2-py2.7.egg" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a311bca50b0ccb34361cf9cfee8116c0", "sha256": "12e0d8e114e5bd3b99de522b625561cdbf4052ef5bce506f2579fae42b42cb69" }, "downloads": -1, "filename": "FastGeo-0.1.2-py2.7.egg", "has_sig": false, "md5_digest": "a311bca50b0ccb34361cf9cfee8116c0", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 1286020, "upload_time": "2014-01-03T05:46:52", "url": "https://files.pythonhosted.org/packages/22/c8/860690325f79af9b0f0ffc565efa217be856e2f291b5431c9008ae017f3f/FastGeo-0.1.2-py2.7.egg" } ] }