No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-18 17:20:19 +00:00
examples Add KSI generator 2026-06-25 16:21:53 +02:00
google_sheet_writer fix stats formulas, column widths, grid spill; add test data scripts 2026-04-06 02:04:19 +02:00
.gitignore update 2023-10-28 20:26:24 +04:00
LICENSE.md renaming 2023-07-16 21:26:28 +04:00
README.md Add canonical repository notice 2026-07-18 16:58:08 +00:00
setup.py Repoint repository URLs to code.pecheny.me 2026-07-18 17:20:19 +00:00

The main repository of this project lives at https://code.pecheny.me/pecheny/google_sheet_writer. All issues should be created there.

google_sheet_writer

google_sheet_writer is an object-oriented wrapper around (amazing!) gspread and gspread_formatting that allows to programmatically create Google Sheets tables in an easy way.

On top of being convenient, it strives to minimize the amount of requests to save API quota.

Install in development mode: pip install -e .

See examples in examples folder.

The examples assume United Kingdom spreadsheet locale (can be changed in File → Settings prior to launching generation script). Other locales (e.g. Russia) might not work.

Version history

v0.0.8

  • Batch API calls for dramatically faster spreadsheet generation (especially 10+ sheets)
    • Worksheet creation/deletion batched into a single API call instead of one per sheet
    • Cell values for all sheets written in one values_batch_update call
    • Sheet resizing via updateSheetProperties instead of writing empty cells
    • Formatting and structural requests merged into a single batch_update call
    • Worksheet hiding folded into the formatting batch

v0.0.7

  • After successfully finishing table generation, a link to the table is printed to the console

v0.0.6

  • Raise exception if users tries to set cursor's x/y attributes to floats

v0.0.5

  • Added support for older pythons (3.9 and newer)