Skip to main content

Google sheets API, easy to use

Project description

Github contributors

License: MIT

Description

Google sheets API, easy to use

Example of usage

from easy_googlesheets import GSheets

myGSheets = GSheets(secret_filename='credentials.json', 
                    spreadsheet_id='',
                    data_tab_name='Page 1',
                    control_id='user1')

# Example of filter output
filter_list=["lat>0", "lng<0"]
print(myGSheets.filter_by(filter_list))

# Example of insert row
myGSheets.insert({'name': '100 Montaditos ', 
                  'lat': float(37.3812499), 
                  'lng': float(-6.0085387), 
                  'url': 'https://spain.100montaditos.com/es/la-carta/', 
                  'vicinity': 'Calle San Jacinto, 89, 41010 Sevilla', 
                  'ref': 2999389465, 
                  'uploader': 'user1'})

#print(myGSheets.remove("ROWS",6,9))

# Always close at the end
myGSheets.close()
example01

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy_googlesheets-0.1.6.tar.gz (4.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page