Skip to main content

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:

  1. 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".
  2. Enable APIs:

    • Navigate to the API Library.
    • Search for and enable the Google Sheets API.
    • Also, enable the Google Docs API.
  3. 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.json file.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysheetsql-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysheetsql-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

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

Hashes for pysheetsql-1.0.0.tar.gz
Algorithm Hash digest
SHA256 840e6a42e901610d6aff70202efce4b6dce80244fc62685247dd8b70cbe1f20a
MD5 dc08a7b7c5e92aba9b3aac793587c05f
BLAKE2b-256 68a484b164f369d62f9e9b75d43d4f2db26c1216f5b84ea1692757dcd510fc63

See more details on using hashes here.

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

Hashes for pysheetsql-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32942da9c37cd1fa5014b1ff6b9edd28ca9f1d19cd7ffbc20c4bfa9a83bea32e
MD5 33fd4faa04db730e60bf1e905417df1a
BLAKE2b-256 97674bcf0a7df35423f4bd4fc95f58f7e87aa311db40cae2db86fbd6417a1e83

See more details on using hashes here.

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