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 URLrequests.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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc6e4cc56d2d5ec357ca5cd280ff9f2111613c7077deb4c341f82680e31512f6
|
|
| MD5 |
5d942060b9f1143b892e2f054e95751b
|
|
| BLAKE2b-256 |
a342f2468567ec47c6073010fd4926644095fffa1d0b7ed8485f8576ebbb8653
|
Provenance
The following attestation bundles were made for gsheet_loader-1.0.2.tar.gz:
Publisher:
publish.yml on arshadziban/gsheet_loader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gsheet_loader-1.0.2.tar.gz -
Subject digest:
cc6e4cc56d2d5ec357ca5cd280ff9f2111613c7077deb4c341f82680e31512f6 - Sigstore transparency entry: 894246389
- Sigstore integration time:
-
Permalink:
arshadziban/gsheet_loader@ff0eeaae45f6a1ff3d5fd1515a73d2092d207267 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/arshadziban
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ff0eeaae45f6a1ff3d5fd1515a73d2092d207267 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42fab3961860aa0ea73002006d5a8db29bf14b74940736689866b9de66d00d41
|
|
| MD5 |
9a228c71a2217d95712e8c40e2402b30
|
|
| BLAKE2b-256 |
b1ad934e5f7bfd6ff82d178a4c8498a786b111efaba998ae497c7b2c8c77886f
|
Provenance
The following attestation bundles were made for gsheet_loader-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on arshadziban/gsheet_loader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gsheet_loader-1.0.2-py3-none-any.whl -
Subject digest:
42fab3961860aa0ea73002006d5a8db29bf14b74940736689866b9de66d00d41 - Sigstore transparency entry: 894246398
- Sigstore integration time:
-
Permalink:
arshadziban/gsheet_loader@ff0eeaae45f6a1ff3d5fd1515a73d2092d207267 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/arshadziban
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ff0eeaae45f6a1ff3d5fd1515a73d2092d207267 -
Trigger Event:
release
-
Statement type: