{ "info": { "author": "Nick Efford", "author_email": "nick.efford@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "quakefeeds\n==========\n\nPython 3 tools for handling USGS earthquake data feeds.\n\nThe ``quakefeeds`` package provides a class ``QuakeFeed`` that captures data\nfrom a GeoJSON feed, given a valid severity level and time period.\nThe class provides some shortcuts for accessing data of interest within\nthe feed and provides other useful methods - e.g. one to generate a simple\nGoogle map plotting quake locations and magnitudes.\n\nThe data feeds and a description of their GeoJSON format are available at\nhttp://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php.\n\n\nExamples of Use\n---------------\n\n.. code-block:: python\n\n >>> from quakefeeds import QuakeFeed\n >>> feed = QuakeFeed(\"4.5\", \"day\")\n >>> feed.title\n 'USGS Magnitude 4.5+ Earthquakes, Past Day'\n >>> feed.time\n datetime.datetime(2015, 4, 16, 19, 18, 39, tzinfo=datetime.timezone.utc)\n >>> len(feed)\n 6\n >>> feed[0]\n {'properties': {'cdi': 1, 'tsunami': 0, 'alert': None, ...}\n # full JSON data for first event in feed\n >>> feed.location(0)\n [26.8608, 35.135]\n >>> feed.magnitude(0)\n 6.1\n >>> feed.event_title(0)\n 'M 6.1 - 47km SW of Karpathos, Greece'\n >>> feed.depth(0)\n 20.86\n >>> feed.depths\n \n >>> list(feed.depths)\n [20.86, 46.35, 76.54, 48.69, 10, 28.64]\n >>> map1 = feed.create_google_map()\n >>> map2 = feed.create_google_map(style=\"titled\")\n >>> feed.write_google_map(\"map.html\", style=\"titled\")\n\n\nScripts\n-------\n\nThe installation process will install some scripts in addition to the\n``quakefeeds`` package:\n\n* ``quakemap``, which plots earthquakes on a Google map\n* ``quakestats``, which computes basic statistics for a feed\n\n\nDependencies\n------------\n\n* Python 3\n* `Requests `_\n* `Jinja2 `_ template engine (for map generation)\n* `docopt `_ (for the scripts)\n\n\nInstallation\n------------\n\nUse `pip `_ to install the package, its scripts\nand their dependencies::\n\n pip install quakefeeds\n\nAlternatively, you can install from within the unpacked source distribution::\n\n python setup.py install\n\n(Note that this requires prior installation of\n`setuptools `_.)\n\nIf you don't want the scripts, copying the ``quakefeeds`` directory from\nthe source distribution to somewhere in your PYTHONPATH will suffice.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/python33r/quakefeeds", "keywords": "data json science seismology usgs", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "quakefeeds", "package_url": "https://pypi.org/project/quakefeeds/", "platform": "any", "project_url": "https://pypi.org/project/quakefeeds/", "project_urls": { "Homepage": "https://github.com/python33r/quakefeeds" }, "release_url": "https://pypi.org/project/quakefeeds/0.2/", "requires_dist": null, "requires_python": null, "summary": "Python 3 tools for handling USGS earthquake data feeds", "version": "0.2" }, "last_serial": 1510804, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "bd2ec8cb6b94191a109c03fc9a11048d", "sha256": "1d97d04ea6cbec592cdd649920ddbb8bfbbddca35079289ec78c463d1490b07a" }, "downloads": -1, "filename": "quakefeeds-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "bd2ec8cb6b94191a109c03fc9a11048d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10206, "upload_time": "2015-04-18T16:51:22", "url": "https://files.pythonhosted.org/packages/9c/49/9d7199c49e16280b10a33e0c142fc0085f7ed2b172e29cec57d580ee4289/quakefeeds-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "601ba1985faddd3e0762832829295703", "sha256": "527e9569f8bf68d6801f37ba44920fb5f62ba4a0f120166dec59070a1463c86e" }, "downloads": -1, "filename": "quakefeeds-0.2.tar.gz", "has_sig": false, "md5_digest": "601ba1985faddd3e0762832829295703", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7068, "upload_time": "2015-04-18T16:51:25", "url": "https://files.pythonhosted.org/packages/0c/af/020f6d9b997b6029e632c630eaffa34f4a45e4263450df3e0e0958a7dd24/quakefeeds-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bd2ec8cb6b94191a109c03fc9a11048d", "sha256": "1d97d04ea6cbec592cdd649920ddbb8bfbbddca35079289ec78c463d1490b07a" }, "downloads": -1, "filename": "quakefeeds-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "bd2ec8cb6b94191a109c03fc9a11048d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10206, "upload_time": "2015-04-18T16:51:22", "url": "https://files.pythonhosted.org/packages/9c/49/9d7199c49e16280b10a33e0c142fc0085f7ed2b172e29cec57d580ee4289/quakefeeds-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "601ba1985faddd3e0762832829295703", "sha256": "527e9569f8bf68d6801f37ba44920fb5f62ba4a0f120166dec59070a1463c86e" }, "downloads": -1, "filename": "quakefeeds-0.2.tar.gz", "has_sig": false, "md5_digest": "601ba1985faddd3e0762832829295703", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7068, "upload_time": "2015-04-18T16:51:25", "url": "https://files.pythonhosted.org/packages/0c/af/020f6d9b997b6029e632c630eaffa34f4a45e4263450df3e0e0958a7dd24/quakefeeds-0.2.tar.gz" } ] }