Description
gspread is a Python API for Google Sheets. It uses the Google Sheets API v4 to open a spreadsheet by title, key or URL, read, write and format cell ranges, manage sharing and access control, and batch updates. Installation is a single pip install, and it requires Python 3. The quick example opens a sheet, updates a range of cells from a list of lists, updates a single cell, and formats a header row in bold. Authentication is covered in three routes: a service account for bots, OAuth client ID for end users, and access to public spreadsheets without credentials. The usage section includes examples for creating, sharing and deleting worksheets, getting and updating cell values, reading rows and columns as lists or dictionaries, finding cells, adding data validation, formatting, and using gspread with pandas and NumPy. Advanced usage covers custom authentication. The full API reference covers the client, models, authentication, HTTP client, utilities and exceptions. Questions go to Stack Overflow with the gspread tag, and bugs are reported on GitHub Issues. The listing shows the library as free.…
Highlights
- Read, write and format Google Sheets ranges
- Service account and OAuth authentication
- Works with pandas and NumPy
- Batch updates and sharing controls
Ratings & Reviews
No ratings yet
Be the first to rate Gspread.
People also visit
Gspread FAQ
What is gspread?
A Python library for reading and writing Google Sheets through the Google Sheets API.
How do I install it?
With pip install gspread. It requires Python 3.
How do I authenticate?
The docs cover a service account for bots, an OAuth client ID for end users, and no credentials for public spreadsheets.
Can it work with pandas?
Yes. The usage guide has a section on using gspread with pandas and NumPy.
Where do I ask questions?
The docs suggest Stack Overflow with the gspread tag, and bug reports go to GitHub Issues.
Is it free?
The listing shows it as free.
What are the best Gspread alternatives?
Popular alternatives to Gspread include Pygsheets, SheetDB and Sheetson. See all Gspread alternatives









