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 = sheet.get_tab('Sheet1')
Sheet
is a subclass of gsprad's Spreadsheet
get all values
tab.values() # returns a list of rows
Row
row is a subclass of list, with functionalities like update
and clear
row = tab.get_row(1) # returns a Row
print(row)
update row
row.update(['new', 'values'])
row.clear() # clear all value of the row
Cell
cell is a subclass of string, with additional functionalities like update
and clear
cell = tab.get_cell('A1') # returns a Cell
cell = row[0] # same as above
update cell
cell.update('New cell value')
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.1.4.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for betterspread-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 951f1f6ccf7857750fbe1acce0523c1e4b0ebb12782b381acac5bce4bcf1eb8d |
|
MD5 | e71284b791e0d1d81d8ca2e6e6700507 |
|
BLAKE2b-256 | b2442f3bf4854804ec6075b839b437334de4f833bc7be80126da9b61726ce8a1 |