Insert/update CSV file into Google Spreadsheets using Python and v4 Spreadsheets API

I have a need to upload/insert and update a CSV file into a designated Google Spreadsheet.

Python script must take input of CSV name on filesystem (Mac), year and month for processing on the command line. The specific Google Spreadsheet ID can be stored as a parameter in the script (i.e. will remain static). Version 4 of the sheets API must be used, and the upload of data should not interfere with existing formulas in the sheet.

As per screenshot of the spreadsheet (access will be provided on successful assignment), the year and month are used to define which tab of the spreadsheet the data must be inserted/updated into.

The CSV will always represent the full month of data, so overwriting the cells is permitted (rather than having to figure out what data was stored there previously).

Example CSV is attached, as is screenshot of the current Google Spreadsheet.

Script should gracefully error out if it cannot connect/hits API limits in Google. I will also need sufficient comments in the script to enable me to add additional columns at a later date as well.

Additional context if required:

Data is being exported out of Toggl and output into the CSV, I have coded that bit in Perl (because I know the language well) the Google Spreadsheets API is the bit giving me a headache, hence why we are here. Therefore the input can be changed if required such as adding a header row, open to other options as well.

The end goal is to run the perl script daily to get a new CSV dump from Toggl, then push overwrite the existing rows in the timesheet tab for the month in question.

Additional notes:
Authentication should be handled as per current Google API standards documented at

Skills: Excel, Google App Engine, Python, Software Architecture, Web Scraping

See more: update database csv file uploaded using php mysql, migrate csv file access dbase using vb6, update csv file vbscript, python gdata spreadsheet example, python google spreadsheet, gspread python, google sheets api example, google sheets api v4 python, spreadsheets.values.update example, pandas google sheets, python write to google spreadsheet, vbscript update csv file, upload csv file mysql using php, read csv file vb6 using ado, update csv file java, csv file google search result calendar, csv file comparison using, update csv file php, import csv file google map, convert csv file google map

About the Employer:
( 2 reviews ) MORTLAKE, Australia

Project ID: #15395109

Awarded to:


I have completed similar projects , do let me know about the website. I take one client at a time Relevant Skills and Experience Worked on beautiful soup and selenium, python 2.x and 3.x Proposed Milestones $35 AUD - More

$35 AUD in 1 day
(2 Reviews)