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
folium
flask
- 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
- 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
- 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