Quicksims are used to run a minimal simulation that takes an input parcel file, an input analysis zip file, and generates an output parquet file.
You can call the api using any mechanism that can make a POST request, with the endpoint documented here.
The script run_quicksim.py
gives a short python example for authenticating to the api using an email and password and passing a JSON file to the quicksim endpoint.
The python script requires click
and requests
which you can install with pip install -r requirements.txt
quicksim.json
is an example of the parameters necessary to run a quicksim:
input_storage_url
- a signed url to the input parquet filescript_url
- a signed url to the analysis zip filemodule_name
andfunction_name
- identify the function to call in the analysis fileglobals_data
- a dictionary of global inputsdescription
- an optional description to use as metadata
You can then go to your "My Projects" page and click the hurricane on the navbar to see status of running simulations and, when complete, download the output parquet file.