A higher-level, cleaner interface for the Google Sheets API.
Project description
Better Google Sheets
The Better Google Sheets library provides the easiest and simplest way to interact with google sheets inside of Python.
Getting Started
pip install -r bgs_requirements.txt
Google Service Account
- Go to the Google Cloud Console
- Click on
IAM & Admin - Click on
Service AccountsthenCreate Service Account - Create your service account. Save the account email, and provide it edit access on your google sheet
- After creating the account, click on the email.
- Click on
Keysin the topnav bar - Then
ADD KEYand then create a new key as JSON. - Add it to your root directory and rename it
service-account.json
Usage
from better_gsheets.generation import Generation
from better_gsheets.reading import Reading
from better_gsheets.deletion import Deletion
from better_gsheets.conditionals import Conditionals
bgs_gen = Generation('<spreadsheet_id>')
bgs_read = Reading('<spreadsheet_id>')
bgs_del = Deletion('<spreadsheet_id>')
bgs_cond = Conditionals('<spreadsheet_id>')
bgs_gen.create_worksheet(sheetname='My Sheet!')
# It's really that simple.
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
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
File details
Details for the file better_gsheets-0.1.0.tar.gz.
File metadata
- Download URL: better_gsheets-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43dc2783dfd616e024fc3cc842a3850dea8ce28760302a2815b12199afb1eb77
|
|
| MD5 |
91afc65fe2db213614e2598898e3093c
|
|
| BLAKE2b-256 |
eea5c25893d0a48cdc443d982d67f137346cc961b9dd9001778cb0eb5b477eed
|
Provenance
The following attestation bundles were made for better_gsheets-0.1.0.tar.gz:
Publisher:
ci.yaml on Zachary-Richman/Better-Google-Sheets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
better_gsheets-0.1.0.tar.gz -
Subject digest:
43dc2783dfd616e024fc3cc842a3850dea8ce28760302a2815b12199afb1eb77 - Sigstore transparency entry: 747228986
- Sigstore integration time:
-
Permalink:
Zachary-Richman/Better-Google-Sheets@af0255e3aa64c4b5f9050d99887f75ac4274316f -
Branch / Tag:
refs/tags/v0.0.12 - Owner: https://github.com/Zachary-Richman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@af0255e3aa64c4b5f9050d99887f75ac4274316f -
Trigger Event:
release
-
Statement type:
File details
Details for the file better_gsheets-0.1.0-py3-none-any.whl.
File metadata
- Download URL: better_gsheets-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edd6b1e08735dd3114330ba6995c687518ab41ead43327e40251f3386a8f1861
|
|
| MD5 |
0ad91c1437cf77fd74ac97bcc07aa28e
|
|
| BLAKE2b-256 |
c02e1cc5ae170f9d447d7fe455d05e70b8472c77c21220dc03404583a773752a
|
Provenance
The following attestation bundles were made for better_gsheets-0.1.0-py3-none-any.whl:
Publisher:
ci.yaml on Zachary-Richman/Better-Google-Sheets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
better_gsheets-0.1.0-py3-none-any.whl -
Subject digest:
edd6b1e08735dd3114330ba6995c687518ab41ead43327e40251f3386a8f1861 - Sigstore transparency entry: 747228988
- Sigstore integration time:
-
Permalink:
Zachary-Richman/Better-Google-Sheets@af0255e3aa64c4b5f9050d99887f75ac4274316f -
Branch / Tag:
refs/tags/v0.0.12 - Owner: https://github.com/Zachary-Richman
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@af0255e3aa64c4b5f9050d99887f75ac4274316f -
Trigger Event:
release
-
Statement type: