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.7.tar.gz
(7.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gspread-0.0.7.linux-i686.exe
(71.2 kB
view details)
File details
Details for the file gspread-0.0.7.tar.gz.
File metadata
- Download URL: gspread-0.0.7.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96722e7d1c6443155c93e9a72d59049581e604a3fba7b828a56bb2ba6d07d422
|
|
| MD5 |
073205aa03430c1a90367e193f15b3aa
|
|
| BLAKE2b-256 |
3e3b8626964af1b0b5c0f7433dc567560abd32af68a510956d1ee1d75bc6c9ca
|
File details
Details for the file gspread-0.0.7.linux-i686.exe.
File metadata
- Download URL: gspread-0.0.7.linux-i686.exe
- Upload date:
- Size: 71.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b62dbf3a3799642193deb7956ef2d9fe12338e4c8799ae4b5c049ff00589e21
|
|
| MD5 |
093baf0559475eaf9d36590437b95a14
|
|
| BLAKE2b-256 |
cb4de970139e099c7338575a080cc2b8d3da683b94c561dc2461cccb474ca1e5
|