Skip to main content

A lightweight cloud sheets operation library

Project description

Cloud Sheets Slim

Installation

pip install cloud-sheets-slim

Usage

from cloud_sheets_slim import CloudSheetsSlim

cloud_sheet = CloudSheetsSlim("https://docs.google.com/spreadsheets/d/1LS1gMp_wFkmuFTS17D***your-doc-key***", "Sheet1")
pdp = sheets.to_pdp()

# query operations
pdp.find({'key': 'value'})
pdp.find_one({'key': 'value'})

# write operations
pdp.update_one({'key': 'value'}, update_object)
pdp.replace_one({'key': 'value'}, update_object)
pdp.delete_one({'key': 'value'})
# send updated result to cloud sheets
cloud_sheet.push_df(pdp.get_df())

Features

load data from cloud sheets to pandas proxy, manipulate data in pandas proxy, every operation will be recorded in pandas proxy, and push back to cloud sheets.

avoid too many API calls to cloud sheets.

Pandas proxy

  • find_one
  • find
  • insert_one
  • insert_many
  • replace_one
  • update_one
  • update_many
  • delete_one
  • delete_many
  • count_records

Supported Platform

[x] Google Sheets

[ ] Lark sheets

[ ] MS Excel Sheets

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

cloud_sheets_slim-0.3.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

cloud_sheets_slim-0.3.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file cloud_sheets_slim-0.3.0.tar.gz.

File metadata

  • Download URL: cloud_sheets_slim-0.3.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/24.2.0

File hashes

Hashes for cloud_sheets_slim-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c5961eb9a3e90f02bad10f0f1d1242f7868ff6aba28307087ea153c63261a3f5
MD5 756ef3425c6f87b0d73ffe8e2a52bbe6
BLAKE2b-256 215ec0428ed573eec9935d8303e6c43ca4d839c9d5b1df8505040836101a3a24

See more details on using hashes here.

File details

Details for the file cloud_sheets_slim-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: cloud_sheets_slim-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/24.2.0

File hashes

Hashes for cloud_sheets_slim-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9e99ec090a6ff48b21a69b3b81fc695ae051bc280b2bf0cd22f9f918430291f
MD5 280c9e617a1c213e041b6e0f779f0e1e
BLAKE2b-256 60a0ada133a728411f48eadb2c55832f6df33411e557de2e7dd7cd13a35c0088

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