Skip to main content

A package for managing Google Sheets data with gspread

Project description

PySheetsQL

pysheetsql is a simple Python library I made to automate logging data to Google Sheets. I have designed the library to perform basic CRUD operations and use it as a small-scale database for static side projects.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysheetsql-1.0.1.tar.gz
  • Upload date:
  • Size: 5.7 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.1.tar.gz
Algorithm Hash digest
SHA256 4a6c9ae879e048b5a85031cc8b86c749897b1968591d9faed884b905884c7a29
MD5 41dc95c754fec100751fd2b6b4e4372c
BLAKE2b-256 bbf3d722ca89885b6cdb92b2f2832073f3fcedd95d6e2ee5f61b6c685c68e599

See more details on using hashes here.

File details

Details for the file pysheetsql-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pysheetsql-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9252a82c7efe1727420ae57a3a94085c058ace34b435ffc4f80b8d4627c51ca8
MD5 dea3d7322298a5a3edf768043af54dcc
BLAKE2b-256 e5351609593b31f3ad028ab4273e501535cbe323ee95b52e4a00f3897eb16e76

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