Como fazer um script que lê no banco de dados e depois grava no arquivo CSV e depois carrega o arquivo para o Google Drive no Python

How to make a script that reads from Database and then writes to the csv file and then uploads the file to Google Drive

Filthy Fly