Skip to main content

Google Spreadsheets Python library

Project description

gspread

Google Spreadsheets Python library

Features

  • Open a spreadsheet by its title or url.

  • Extract entire row or column values.

  • No need to mess around with spreadsheets’ keys.

  • Independent of Google Data Python client library.

Usage

import gspread

gc = gspread.Client(auth=('the.email.address@gmail.com','password'))
gc.login()

# Spreadsheets can be opened by their title in Google Docs
spreadsheet = gc.open('some title')

# If you want to be specific, use a key (which can be extracted from
# the spreadsheet's url
sht1 = gc.open_by_key('0BmgG6nO_6dprdS1MN3d3MkdPa142WFRrdnRRUWl1UFE')

# Or by the entire url
sht2 = gc.open_by_url('https://docs.google.com/spreadsheet/ccc?key=0Bm...FE&hl')

# Select worksheet by index
worksheet = spreadsheet.get_worksheet(0)

# Get a cell value
val = worksheet.cell(1, 2).value

worksheet.update_cell(1, 2, 'Bingo!')

License

MIT

Download

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

gspread-0.0.8.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gspread-0.0.8.linux-i686.exe (71.2 kB view details)

Uploaded Source

File details

Details for the file gspread-0.0.8.tar.gz.

File metadata

  • Download URL: gspread-0.0.8.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gspread-0.0.8.tar.gz
Algorithm Hash digest
SHA256 a70d8e03682d89846df3ced208e7fd650f6c2e7a19452f75e300f5eae3f950a2
MD5 c77f5ff01d13fa38bc23567c4bf5729a
BLAKE2b-256 256c863623325ce01af52f536d2f35b1b81d47d3df48da251cfbb96f3627a85d

See more details on using hashes here.

File details

Details for the file gspread-0.0.8.linux-i686.exe.

File metadata

File hashes

Hashes for gspread-0.0.8.linux-i686.exe
Algorithm Hash digest
SHA256 e8ab712bdd276fd0c0de050f8d09f2865cb727fb6d98ed3320b9140c02737ef1
MD5 a46c03fd8c68e0ca0305d9a965b0e56e
BLAKE2b-256 d82661827ac2846a84570a4022896c6a98a8488d7ada81a21c86b0f8f6da01a5

See more details on using hashes here.

Supported by

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