Skip to main content

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.

Metadata

Release files for pysheetsql 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysheetsql 1.0.2
File Size Uploaded
pysheetsql-1.0.2.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysheetsql 1.0.2
File Interpreter ABI Platform
pysheetsql-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / pysheetsql-1.0.2.tar.gz

Download URL pysheetsql-1.0.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b19f2686af8f45b5d6b271e5cc913963420a06ad47e8dd961d277e597d065659
BLAKE2b-256 checksum
How to use checksums
35f0c6a6d3503e38a425a68f4e710ec462cfe7426d1e68eb7ba5b79aea56e353
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.0

Release files / pysheetsql-1.0.2-py3-none-any.whl

Download URL pysheetsql-1.0.2-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b01090b2b218b1c0dce4e91baf0827053df8642e5e39608a24f62aab7704b70
BLAKE2b-256 checksum
How to use checksums
1ac04b9bbd71e4dbd660e5f71adc63dc859df8033158b0f6d9b308c4cd223b36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.0

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page