Skip to main content

A simple package to load Google Sheets into pandas DataFrame

Project description

gsheet_loader

A simple Python package to load Google Sheets into pandas DataFrame.

Installation

pip install gsheet-loader

Requirements

  • Python >= 3.7
  • pandas
  • requests

Usage

Basic Usage

import pandas as pd
from gsheet_loader import load_sheet

# Load a Google Sheet
url = "google sheet url here"
data = load_sheet(url)
df = pd.read_csv(data)

API Reference

load_sheet(sheet_url)

Load a Google Sheet and return as StringIO (ready for pd.read_csv).

Parameters:

  • sheet_url (str): The Google Sheet URL (sharing link or edit link)

Returns:

  • StringIO: StringIO object containing the CSV data

Raises:

  • ValueError: If the URL is not a valid Google Sheets URL
  • requests.RequestException: If there's an error fetching the sheet

Note

The Google Sheet must be publicly accessible (set to "Anyone with the link can view") for this package to work.

Author

Arshad Ziban

Version

1.0.2

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

gsheet_loader-1.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

gsheet_loader-1.0.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file gsheet_loader-1.0.2.tar.gz.

File metadata

  • Download URL: gsheet_loader-1.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gsheet_loader-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cc6e4cc56d2d5ec357ca5cd280ff9f2111613c7077deb4c341f82680e31512f6
MD5 5d942060b9f1143b892e2f054e95751b
BLAKE2b-256 a342f2468567ec47c6073010fd4926644095fffa1d0b7ed8485f8576ebbb8653

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsheet_loader-1.0.2.tar.gz:

Publisher: publish.yml on arshadziban/gsheet_loader

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

File details

Details for the file gsheet_loader-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: gsheet_loader-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gsheet_loader-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42fab3961860aa0ea73002006d5a8db29bf14b74940736689866b9de66d00d41
MD5 9a228c71a2217d95712e8c40e2402b30
BLAKE2b-256 b1ad934e5f7bfd6ff82d178a4c8498a786b111efaba998ae497c7b2c8c77886f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsheet_loader-1.0.2-py3-none-any.whl:

Publisher: publish.yml on arshadziban/gsheet_loader

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