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.

usgs-earthquake-data#

Seaches USGS databases for relevant earthquake data and prints it to console. Optionally, also allows the user to publish 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

--publish, --post#

Allows the user to specify that the output should be published to kafka

-pm, --publish-method <publish_method>#

How backpack should go about getting data to sasquatch

Default:

<PublishMethod.DIRECT_CONNECTION: 'DIRECT_CONNECTION'>