No project description provided
Project description
Better Spread
A wrapper around gspread with cell and row level functionalities
Sheet
from betterspread import Sheet, Connection
con = Connection(credentials_path="./credentials.json")
sheet = Sheet(connection=con, sheet_name="Better Sheet")
tab = await sheet.get_tab('Sheet1')
Sheet
is a subclass of gsprad's Spreadsheet
get all values
await tab.values() # returns a list of rows
Row
row is a subclass of list, with functionalities like update
and clear
row = await tab.get_row(1) # returns a Row
print(row)
update row
await row.update(['new', 'values'])
await row.clear() # clear all value of the row
Cell
cell is a subclass of string, with additional functionalities like update
and clear
cell = await tab.get_cell('A1') # returns a Cell
cell = row[0] # same as above
update cell
await cell.update('New cell value')
await cell.clear() # clear value of the cell
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
betterspread-0.2.2.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file betterspread-0.2.2.tar.gz
.
File metadata
- Download URL: betterspread-0.2.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6de78d5bbffbf08ccb2ba3d6b214fbc8d3dbe855753d917d45f25891ffbfc01 |
|
MD5 | 9d95da461bb5d222a67ae81ba4993605 |
|
BLAKE2b-256 | 115ba6705cf0b34f865a0a24ea22215d5c51c79c60076efabe555ad03b6d2449 |
File details
Details for the file betterspread-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: betterspread-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c1705d41e4c71af68ad09478cced8b655dac19390556af3820562865555c655 |
|
MD5 | 49ecd0c1ef17bfaf5f60cedf2ce690da |
|
BLAKE2b-256 | 91c744db080ab4f44b36181e9b5d61918fcde3b0851bfa9960636a663588e685 |