Command-line interface¶
The commands for the sasquatch-backpack CLI are documented here.
You can get detailed help for any sasquatchbackpack command by running sasquatchbackpack --help
sasquatchbackpack¶
Command-line interface for sasquatchbackpack.
sasquatchbackpack [OPTIONS] COMMAND [ARGS]...
Options
- --version¶
Show the version and exit.
test-usgs-redis¶
Test redis implementation.
sasquatchbackpack test-usgs-redis [OPTIONS]
usgs-earthquake-data¶
Seaches USGS databases for relevant earthquake data and prints it to console. Optionally, also allows the user to post the queried data to kafka.
sasquatchbackpack usgs-earthquake-data [OPTIONS]
Options
- -d, --duration <duration>¶
Required How far back from the present should be searched (days, hours)
- -r, --radius <radius>¶
radius of search from central coordinates in km.
- Default:
400
- -c, --coords <coords>¶
latitude and longitude of the central coordinates (latitude, longitude). Defaults to the coordinates of Cerro Pachon.
- Default:
-30.22573200864174, -70.73932987127506
- -m, --magnitude-bounds <magnitude_bounds>¶
upper and lower bounds (lower, upper)
- Default:
2, 10
- --post¶
Allows the user to specify that the API output should be posted to kafka