Skip to main content

Google Spreadsheets Python API

Project description

Super simple Google Spreadsheets Python API.

Features

  • Google Sheets API v4.

  • Open a spreadsheet by title, key or url.

  • Read, write, and format cell ranges.

  • Sharing and access control.

  • Batching updates.

Example

import gspread

gc = gspread.service_account()

# Open a spreadsheet by title
sh = gc.open("Iris Data")

# Get the first sheet
wk = sh.sheet1

# Update a range of cells using the top left corner address
wk.update('A1', [['Species', 'Sepal length'], ['Iris setosa', 5.1]])

# Format the header
wk.format('A1:B1', {'textFormat': {'bold': True}})

License

MIT

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-5.1.0.tar.gz (41.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-5.1.0-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gspread-5.1.0.tar.gz
  • Upload date:
  • Size: 41.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.9

File hashes

Hashes for gspread-5.1.0.tar.gz
Algorithm Hash digest
SHA256 60010643ed86c3825166eabc92964ef22f40321abc7963944448eb98bb681926
MD5 e01fb124bc1a39f2badc5b9363820cc2
BLAKE2b-256 7169631eec5c1be54ce0241de979109a5e2a5d699405bfffff12f027bc580b51

See more details on using hashes here.

File details

Details for the file gspread-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: gspread-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.9

File hashes

Hashes for gspread-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53992c32228f16b974432c771c89316e0c4151d0106d4b23d86c803883e1b0c3
MD5 cfd222bf81be8b35ba06a3e0156cdd5c
BLAKE2b-256 162a97ceea11c05258de2bee135153c76283d64658752d12f54de2fc1689efa4

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