This is an application to programmatically export Survey results from [Plant Village surveys](https://plantvillage.psu.edu/). The tool will be extended to include multiple surveys and data sources but for now it exports only the Locust survey datasets. This tools access will depend on your access with plantvillage.
plantpy auth
For now this stores the username and password as a JSON file which eliminates the need for users to input authentication details again and again. It has some inherent features, it looks for your country in existing country list and will let you know if returned CSV is empty.
plantpy auth -h
usage: plantpy auth [-h]
optional arguments:
-h, --help show this help message and exit
![plantpy_auth](https://user-images.githubusercontent.com/6677629/82530833-2b80de00-9b0c-11ea-82db-b1c73436b869.gif)
****
plantpy locust
This allows you to export the locust reports based on country, start and end date into a CSV file. Usage is simply
plantpy locust -h
usage: plantpy locust [-h] --start START --end END --country COUNTRY --report
REPORT
optional arguments:
-h, --help show this help message and exit
Required named arguments.:
--start START Start Date YYYY-MM-DD
--end END End date YYYY-MM-DD
--country COUNTRY Select country to get data
--report REPORT full path to CSV report file
![plantpy_locust](https://user-images.githubusercontent.com/6677629/82530828-29b71a80-9b0c-11ea-914c-7dca93f127c1.gif)