burnash/gspread — pull request #26 by candeira (2012-04-26 06:28:46+00:00)
Title: add a new feature, wks.get_all_records()

I found myself writing the same utility functions over and over, so I decided to put them in gspread instead of having them in my code.

wks.get_all_records() treats the spreadsheet like a lightweight database,
returning all rows after the first one as a dictionaries that have the first
row of values as keys.

In addition, values are not merely returned as strings, but converted when
possible to a float or an int. A boolean param called empty2zero controls
whether empty cells are returned as empty strings or as zeroes.

utils.numericise() converts the cell values to floats or ints if possible, and empty
strings to zeroes if empty2zero is set.

utils.numericise_all() converts a whole row, and returns a list of numericised values.

I don't know how to fix the docs. If they need fixing, I'd rather to explain to me how to do it (so I can do it the next time) than fix them yourself.

Thanks, J