An open API service indexing awesome lists of open source software.

https://github.com/techwithty/natural_disasters

Natural disaster integration for hurricane, wildfire, and earthquake exposure.
https://github.com/techwithty/natural_disasters

api climate-risk disasters earthquake hurricane python real-estate wildfire

Last synced: 6 months ago
JSON representation

Natural disaster integration for hurricane, wildfire, and earthquake exposure.

Awesome Lists containing this project

README

          

# Natural Disasters

Integration for multi-hazard exposure (hurricanes, wildfires, earthquakes, etc.) for real estate risk analysis.

## Overview
- Hazard endpoints (health, hazard-by-location) with typed requests/responses
- FastAPI-ready routes and proxy helpers
- Consistent SDK interface with other integrations

## Environment Variables
- NATDIS_BASE_URL (required)
- NATDIS_API_KEY (optional, provider-dependent)
- NATDIS_TIMEOUT (default: 15)

Example .env:
NATDIS_BASE_URL=https://api.example.com/natural-disasters
NATDIS_API_KEY=your_api_key_if_required
NATDIS_TIMEOUT=15

## Endpoints (examples)
- GET /natural-disasters/health
- GET /natural-disasters/hazard?lat=...&lng=...

## Project Structure
- api/: base, requests, responses, exceptions, routes
- client.py: high-level client wrapper
- config.py: configuration and environment variables
- pyproject.toml: package metadata

## Usage
Import the client for programmatic access or mount routes into your FastAPI app.