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
- https://developers.google.com/sheets/api/quickstart/python
- https://developers.google.com/sheets/api/guides/concepts
- https://github.com/burnash/gspread
- https://docs.gspread.org/en/latest/oauth2.html
[ ] Lark sheets
- https://github.com/larksuite/oapi-sdk-python
- https://github.com/larksuite/oapi-sdk-python-demo/blob/main/composite_api/sheets/copy_and_paste_by_range.py
- https://open.larksuite.com/document/server-docs/docs/sheets-v3/spreadsheet-sheet/operate-sheets
[ ] MS Excel Sheets
Release files for cloud_sheets_slim 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cloud_sheets_slim-0.3.0.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloud_sheets_slim-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / cloud_sheets_slim-0.3.0.tar.gz
| Download URL | cloud_sheets_slim-0.3.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5961eb9a3e90f02bad10f0f1d1242f7868ff6aba28307087ea153c63261a3f5
|
|
BLAKE2b-256 checksum How to use checksums |
215ec0428ed573eec9935d8303e6c43ca4d839c9d5b1df8505040836101a3a24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.13 Darwin/24.2.0
|
Release files / cloud_sheets_slim-0.3.0-py3-none-any.whl
| Download URL | cloud_sheets_slim-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9e99ec090a6ff48b21a69b3b81fc695ae051bc280b2bf0cd22f9f918430291f
|
|
BLAKE2b-256 checksum How to use checksums |
60a0ada133a728411f48eadb2c55832f6df33411e557de2e7dd7cd13a35c0088
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.13 Darwin/24.2.0
|