Skip to main content

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 Accounts then Create 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 Keys in the topnav bar
  • Then ADD KEY and 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

better_gsheets-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

better_gsheets-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for better_gsheets-0.1.0.tar.gz
Algorithm Hash digest
SHA256 43dc2783dfd616e024fc3cc842a3850dea8ce28760302a2815b12199afb1eb77
MD5 91afc65fe2db213614e2598898e3093c
BLAKE2b-256 eea5c25893d0a48cdc443d982d67f137346cc961b9dd9001778cb0eb5b477eed

See more details on using hashes here.

Provenance

The following attestation bundles were made for better_gsheets-0.1.0.tar.gz:

Publisher: ci.yaml on Zachary-Richman/Better-Google-Sheets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for better_gsheets-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edd6b1e08735dd3114330ba6995c687518ab41ead43327e40251f3386a8f1861
MD5 0ad91c1437cf77fd74ac97bcc07aa28e
BLAKE2b-256 c02e1cc5ae170f9d447d7fe455d05e70b8472c77c21220dc03404583a773752a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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