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.2.tar.gz (6.0 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.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysheetsql-1.0.2.tar.gz
  • Upload date:
  • Size: 6.0 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.2.tar.gz
Algorithm Hash digest
SHA256 b19f2686af8f45b5d6b271e5cc913963420a06ad47e8dd961d277e597d065659
MD5 b6897f161a52b57bc14e2def3d4d2f83
BLAKE2b-256 35f0c6a6d3503e38a425a68f4e710ec462cfe7426d1e68eb7ba5b79aea56e353

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysheetsql-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b01090b2b218b1c0dce4e91baf0827053df8642e5e39608a24f62aab7704b70
MD5 528eb16c41fe405e84b998a0f97179b6
BLAKE2b-256 1ac04b9bbd71e4dbd660e5f71adc63dc859df8033158b0f6d9b308c4cd223b36

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