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.

PyPI version Python 3.7+

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.0

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.0.tar.gz (2.4 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.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gsheet_loader-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 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.0.tar.gz
Algorithm Hash digest
SHA256 9346d8bf32df64b0e618f4ae5cbb7e7253883446063b0c5366878b35e05aefee
MD5 d6447118b610e482389b5da6534d8500
BLAKE2b-256 b2c2e4c72df64fee6ed572d1ef9c0b680e5d764046a70846e2dfb44c1e4c80d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsheet_loader-1.0.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: gsheet_loader-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e395a692200730b77716f05885fe779713541e3d808ab94ec10f173eec0e2a0f
MD5 8585f049df770e8659e98cff6c1403a9
BLAKE2b-256 0b53e2575dfb4abc6afd4e16513c384d7ac9c4e4a4c752b0b643ad03d40dec29

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsheet_loader-1.0.0-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