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.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.1.tar.gz (2.3 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.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gsheet_loader-1.0.1.tar.gz
  • Upload date:
  • Size: 2.3 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.1.tar.gz
Algorithm Hash digest
SHA256 99267c3a4b4050bf0fbee41648ca05d5e6151eaa9b86bed257ad78598717ee6b
MD5 edbd676ab75e979d90616de928510842
BLAKE2b-256 ae991104cc07020e81b6c21d2fbd7bc4c60fb7d5061fb1ce55ea846453a06411

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: gsheet_loader-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6a399a34e4706e8402a3468f9272ba9d46f5b299f30e9cd37f5c0f5ba56f72f
MD5 ea3c391b45a5898d0cfd813cb73d8687
BLAKE2b-256 dcc7d03fd52cc8d58a88881234415ca061fb5eede401fc68b5518ee520226ba3

See more details on using hashes here.

Provenance

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