burnash/gspread

getallrecords() – can there be a "rows" option to get attributes from rows, not columns?

Open

#808 建立於 2020年8月26日

在 GitHub 查看
 (3 留言) (5 反應) (0 負責人)Python (960 fork)batch import
Feature Requestgood first issue

倉庫指標

Star
 (6,606 star)
PR 合併指標
 (平均合併 7天 17小時) (30 天內合併 2 個 PR)

描述

Is your feature request related to a problem? Please describe. Sometimes I have to work with spreadsheets that are "rotated 90 degrees" – that is, the creators use the rows to list important attributes, and then every item in the DB is listed in a column. The attributes list would have to be Column A for these sheets, not Row 1.

Describe the solution you'd like An optional argument in getallrecords() that will be able to produce dictionaries using the first column to find attribute names, not the first row.

Describe alternatives you've considered It's possible to use getallvalues() and iterate over things appropriately or create mappings. But a dictionary like the one getallrecords() produces would be much faster to work with.

貢獻者指南