def main(file_url, folder_url, file_name): """ Generates auth token and copies file. :param file_url: string url of original file to copy. :param folder_url: string url of folder to copy file to. :param file_name: string name for newly copied file. :return: copied file, if successful. none otherwise. """ # auth client service = helpers.auth_gdrive() # attempt to make a file copy return copy_file(service, file_url, folder_url, file_name)
def main(template_file_url, folder_url, student_name_list): """ Fetches Studio Database information and uses it to generate Sprint Logs. :param template_file_url: string url of original file to copy. :param folder_url: string url of folder to copy file to. :param student_name_list: list of student names to create files for. :return: None """ # authenticate for Google Drive v3 and Google Spreadsheets APIs gdrive_service = helpers.auth_gdrive() gspreadsheets_service = helpers.auth_gsheets() # generate IPMs for each student generate_ipm(student_name_list, gdrive_service, template_file_url, folder_url)
def main(template_file_url, folder_url, qtr_str, studio_db_url, sig_info_sheet_name, proj_info_sheet_name): """ Fetches Studio Database information and uses it to generate Sprint Logs. :param template_file_url: string url of original file to copy. :param folder_url: string url of folder to copy file to. :param studio_db_url: string url of Studio Database Google Spreadsheet :param qtr_str: string name of quarter to generate Sprint Logs for. :param sig_info_sheet_name: string name of sheet where SIG information is stored. :param proj_info_sheet_name: string name of sheet where Project information is stored. :return: """ # authenticate for Google Drive v3 and Google Spreadsheets APIs gdrive_service = helpers.auth_gdrive() gspreadsheets_service = helpers.auth_gsheets() # generate studio database studio_db_dict = studio_db.main(studio_db_url, sig_info_sheet_name, proj_info_sheet_name) # generate sprint logs for each project generate_sprint_logs(studio_db_dict, gdrive_service, template_file_url, folder_url, qtr_str)