A package for managing Google Sheets data with gspread
Project description
PySheetsQL
pysheetsql is a Python package designed to simplify the management of Google Sheets data using the gspread library. With this package, you can effortlessly create, update, retrieve, delete, and export Google Sheets data.
Installation
To install pysheetsql, use pip:
pip install pysheetsql
Getting Started
Google API Credentials
To use pysheetsql, you need to obtain Google Sheets API credentials. Follow these steps to get your credentials.json file:
-
Create a Google Cloud Project:
- Visit the Google Cloud Console.
- Click on "Select a project" and then "New Project".
- Enter a project name and click "Create".
-
Enable APIs:
- Navigate to the API Library.
- Search for and enable the Google Sheets API.
- Also, enable the Google Docs API.
-
Create Credentials:
- Go to the Credentials page.
- Click on "Create Credentials" and select "Service account".
- Follow the prompts to set up the service account.
- After creating the service account, click "Create Key" and choose JSON format. This will download your
credentials.jsonfile.
Setup
To interact with Google Sheets using pysheetsql:
from pysheetsql.start import SheetClient
client = SheetClient(
scopes=["https://www.googleapis.com/auth/spreadsheets"],
credentials_file_path="path/to/credentials.json"
)
Replace path/to/credentials.json with the actual path to your downloaded credentials.json file.
For more usage information, visit the PySheetsQL Documentation.
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 pysheetsql-1.0.0.tar.gz.
File metadata
- Download URL: pysheetsql-1.0.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
840e6a42e901610d6aff70202efce4b6dce80244fc62685247dd8b70cbe1f20a
|
|
| MD5 |
dc08a7b7c5e92aba9b3aac793587c05f
|
|
| BLAKE2b-256 |
68a484b164f369d62f9e9b75d43d4f2db26c1216f5b84ea1692757dcd510fc63
|
File details
Details for the file pysheetsql-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pysheetsql-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32942da9c37cd1fa5014b1ff6b9edd28ca9f1d19cd7ffbc20c4bfa9a83bea32e
|
|
| MD5 |
33fd4faa04db730e60bf1e905417df1a
|
|
| BLAKE2b-256 |
97674bcf0a7df35423f4bd4fc95f58f7e87aa311db40cae2db86fbd6417a1e83
|