Skip to main content

A Django application to archive real-time earthquake notifications from the USGS's Advanced National Seismic System

Project description

A Django application to archive real-time earthquake notifications from the U.S. Geological Survey’s Advanced National Seismic System

Requirements

  • The Django web framework

  • A geospatial database like PostGIS

Getting started

Install the Python package.

$ pipenv install django-anss-archive

Add to Django’s INSTALLED_APPS.:

INSTALLED_APPS = (
    ...
    "anss",
)

Run migrations to create database tables.

$ python manage.py migrate

Run the archive command to save all earthquakes in the latest hour greater than 1.0 magnitude.

$ python manage.py getlatestanssfeed

Start your test server and visit the admin to see the results.

$ python manage.py runserver

![Earthquake list](https://raw.githubusercontent.com/datadesk/django-anss-archive/master/img/list.png) ![Earthquake detail](https://raw.githubusercontent.com/datadesk/django-anss-archive/master/img/detail.png)

Contributing

Install dependencies for development.

$ pipenv install --dev

Run tests.

$ make test

Ship new version to PyPI.

$ make ship

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-anss-archive-0.0.1.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

django_anss_archive-0.0.1-py2.py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page