{ "info": { "author": "Nathan Van Gheem", "author_email": "vangheem@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Introduction\n============\n\nThis package will allow you to get zip code information. The data used in this\npackage is retrieved from\nhttp://pablotron.org/files/zipcodes-csv-10-Aug-2004.zip\n\npyzipcode uses a local sqlite database to run. You can replace it with your own\nother storage mechanism with a little effort.\n\nHere is some basic usage..\n\n\t>>> from pyzipcode import ZipCodeDatabase\n\t>>> zcdb = ZipCodeDatabase()\n\t>>> zipcode = zcdb[54115]\n\t>>> zipcode.zip\n\tu'54115'\n\t>>> zipcode.city\n\tu'De Pere'\n\t>>> zipcode.state\n\tu'WI'\n\t>>> zipcode.longitude\n\t-88.078959999999995\n\t>>> zipcode.latitude\n\t44.42042\n\t>>> zipcode.timezone\n\t-6\n\n\nSearch zip codes...\n\n\t>>> from pyzipcode import ZipCodeDatabase\n\t>>> zcdb = ZipCodeDatabase()\n\t>>> len(zcdb.find_zip(city=\"Oshkosh\"))\n\t7\n\n\nGet a list of zipcodes around a radius of a zipcode\n\n\t>>> from pyzipcode import ZipCodeDatabase\n\t>>> zcdb = ZipCodeDatabase()\n\t>>> [z.zip for z in zcdb.get_zipcodes_around_radius('54901', 10)]\n\t[u'54901', u'54902', u'54903', u'54904', u'54906', u'54927', u'54952', u'54956', u'54957', u'54979', u'54985']\n\n\nChangeLog\n=========\n\n1.0 (2016-01-20)\n----------------\n\n* Fix import code so that it is not run when the module is imported (for\n example, when building Sphinx API Documentation).\n* Rename the import.py module to import_zipcode.py because `import` is a\n reserved Python keyword.\n* Document the import_zipcode module.\n\n0.4\n---\n\n* updated to use maxmind database http://www.maxmind.com/app/postalcode\n\n* now also keeps timezone and dst values\n\n* longitude and latitude is now contains negative numbers\n\n\n0.3\n---\n\n* use strings instead of integer for storing zip codes since zip codes can start\n with a Zero.\n\n\n0.2\n---\n\n* catch sqlite db file reading errors and keep trying in case\n another process is trying to access the file at the same time.\n\n\n0.1\n---\n\n* initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "zip code distance", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "pyzipcode", "package_url": "https://pypi.org/project/pyzipcode/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyzipcode/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/pyzipcode/1.0/", "requires_dist": null, "requires_python": null, "summary": "query zip codes and location data", "version": "1.0" }, "last_serial": 3858143, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "fbbfa1c3af11f3f2a24b8bebb815eb2f", "sha256": "52ec4df4d8063dba8e586a91a15d28b91ab5bdee69476942d5749170efb2adab" }, "downloads": -1, "filename": "pyzipcode-0.1.tar.gz", "has_sig": false, "md5_digest": "fbbfa1c3af11f3f2a24b8bebb815eb2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1387899, "upload_time": "2010-08-28T06:21:41", "url": "https://files.pythonhosted.org/packages/6c/98/03c48e00268445e75faacf7790f8b463a8a0ffdcd4595985e4b2b6add48d/pyzipcode-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "8c97773d041a4467adec49f7ef7b27ca", "sha256": "34541ef8e4525896db0fe08b69b277dae64f91fa1099ea0e973a4f2300f0e524" }, "downloads": -1, "filename": "pyzipcode-0.2.tar.gz", "has_sig": false, "md5_digest": "8c97773d041a4467adec49f7ef7b27ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1387882, "upload_time": "2010-08-30T16:05:38", "url": "https://files.pythonhosted.org/packages/7c/8a/3bc05e4f45aa7ec1badbd2b66aff43269ae017ab69b2eacb1a9394647ee1/pyzipcode-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "f6b0857ccbde4b317c082e7865ac9ad9", "sha256": "f3ef385509620288afd2e53e1d3e4484cf0a9b8bc82a31d8854ec859bfc321a0" }, "downloads": -1, "filename": "pyzipcode-0.3.tar.gz", "has_sig": false, "md5_digest": "f6b0857ccbde4b317c082e7865ac9ad9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1379756, "upload_time": "2010-09-01T04:48:01", "url": "https://files.pythonhosted.org/packages/fc/46/7bdf2986769bf1548aa9e5c80effcb056daa50feec2e6afc0e5da74bb1c1/pyzipcode-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "fb05fdd9093c341f0132c75ff1cee5a4", "sha256": "055b56cc706b0b852539be11b5b686aed40742dde18211d81781c4dfa10b95fd" }, "downloads": -1, "filename": "pyzipcode-0.4.tar.gz", "has_sig": false, "md5_digest": "fb05fdd9093c341f0132c75ff1cee5a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1929133, "upload_time": "2010-09-06T08:39:37", "url": "https://files.pythonhosted.org/packages/e7/03/419abfdd9733d7a789807594ea8d636c7e0f5e58d552900336dff96845e0/pyzipcode-0.4.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "9de4c6c6f802dc3ac546eec5ea8d11ad", "sha256": "97b9d68dc4cc02708f42e04d2bee34cead714e891cf568f21eb6241f8b735840" }, "downloads": -1, "filename": "pyzipcode-1.0.zip", "has_sig": false, "md5_digest": "9de4c6c6f802dc3ac546eec5ea8d11ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1934396, "upload_time": "2016-01-20T22:49:59", "url": "https://files.pythonhosted.org/packages/8f/aa/4d8576fd3559d3cdc289f3f00c048d2d628643bf0b5a613a4f74bbe3af65/pyzipcode-1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9de4c6c6f802dc3ac546eec5ea8d11ad", "sha256": "97b9d68dc4cc02708f42e04d2bee34cead714e891cf568f21eb6241f8b735840" }, "downloads": -1, "filename": "pyzipcode-1.0.zip", "has_sig": false, "md5_digest": "9de4c6c6f802dc3ac546eec5ea8d11ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1934396, "upload_time": "2016-01-20T22:49:59", "url": "https://files.pythonhosted.org/packages/8f/aa/4d8576fd3559d3cdc289f3f00c048d2d628643bf0b5a613a4f74bbe3af65/pyzipcode-1.0.zip" } ] }