Skip to content

somet-code/oklahoma_earthquakes

Repository files navigation

Oklahoma Earthquakes

Python project to list and/or visualize locations and details about recent Oklahoma earthquakes using USGS’s Earthquake Catalog (API documentation)

Inspired by Oklahoma Cooling Centers Python Project

Dependencies

  • folium
  • flask

Instructions

  • Install Python3
  • Create a virtual environment and install dependencies
    python3 -m venv .venv
    source .venv/bin/activate
    python3 -m pip install -r requirements.txt
  • Run the script
    python3 make_map.py
  • Open the map in your browser at http://127.0.0.1:5000
  • Deactivate virtual environment
    deactivate

Development

Devbox

  • Follow the instructions above to set up your environment
  • Install devbox
    curl -fsSL https://get.jetpack.io/devbox | bash
  • Basic commands
    # install dependencies
    devbox install
    
    # enter devbox
    devbox shell
    
    # refresh devbox after making changes to devbox.json
    refresh
    
    # deactivate devbox
    exit

Pre-commit hooks

  • Install pre-commit
    # python
    python3 -m pip install pre-commit
    
    # homebrew
    brew install pre-commit
  • Install pre-commit hooks
    pre-commit install
  • Run pre-commit hooks
    pre-commit run --all-files
  • Skip pre-commit hooks
    git commit -m "commit message" --no-verify

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published