Google sheet to dataframe
Project description
Google sheet to dataframe
Overview
This Python program connects to the google sheets api and creates a pandas dataframe from the target sheet.
Usage
df = read_google_sheet_into_dataframe(sheet_id, range_name, credentials_path)
Config
You must have SHEET_ID` and RANGE_NAME` env vars. You will also need a credentials.json from google. The credentials_path arg defaults to “credentials.json”
DEV
Create venv
python -m venv env
Activate venv
unix
source env/bin/activate
windows
env\Scripts\activate.bat
Install Packages
pip install -r requirements.txt
Test
make test
Format
make format
make lint
Version & Release
make bumpversion part=<major/minor/patch>
make release
note Don’t forget to git push with –tags
pre-commit
Setup
pre-commit install
Run all
make pre-commit
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
sheet_df-0.0.1.tar.gz
(5.4 kB
view details)
File details
Details for the file sheet_df-0.0.1.tar.gz
.
File metadata
- Download URL: sheet_df-0.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.9.6 requests/2.28.2 setuptools/58.1.0 requests-toolbelt/0.10.1 tqdm/4.65.0 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa24e8de99e2b7d346383f4122f454d8c88e9a84e7eaf25813ccfff1f5e69eb9 |
|
MD5 | 64e194bda024d037d71164d072540e1d |
|
BLAKE2b-256 | 1779a169c0b087b2afad0d6ac3e0ffc4cdec5745b73e35c0230ee4f9c489cbec |