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.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for betterspread-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c5081df5262dd81ef4068352df8b9dd0d9f64e7c96b0d5c6bbdcad98c2c7e18 |
|
MD5 | 7865c560c2b25e5820a9c276d9a0f40f |
|
BLAKE2b-256 | 361d883687c1efda88cc775ff2d6badf062de1f22987895f02e459fe3a615629 |