Package: prefect-google-sheets
prefect-google-sheetsWelcome!Prefect collection of tasks in order to work with Google SheetsGetting StartedPython setupRequires an installation of Python 3.7+.We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.These tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to thePrefect documentation.InstallationInstallprefect-google-sheetswithpip:pipinstallprefect-google-sheetsThen, register toview the blockon Prefect Cloud:prefectblockregister-mprefect_google_sheetsNote, to use theloadmethod on Blocks, you must already have a block documentsaved through codeorsaved through the UI.Write and run a flowfromprefectimportflowfromprefect_google_sheets.tasksimport(read_google_sheet_as_data_frame,read_google_sheet_as_list_of_lists,read_google_sheet_as_dict_of_lists,)@flowdefread_sheets():sheet_df=read_google_sheet_as_data_frame(is_public_sheet="<True or False, depending if the sheet you are reading is public or not>",google_service_account="<The Google Service Account information in order to access the sheet>",google_sheet_key="<The key of the sheet to read>",google_sheet_name="<The name of the sheet to read>",first_row_header="<True or False, depending if the first row of the table needs to be considered as the header>",on_bad_lines="<What to do if bad lines are discovered while reading the sheet>",clean="<True or False, depending if blank columns and rows need to be removed>")sheet_list_of_lists=read_google_sheet_as_list_of_lists(is_public_sheet="<True or False, depending if the sheet you are reading is public or not>",google_service_account="<The Google Service Account information in order to access the sheet>",google_sheet_key="<The key of the sheet to read>",google_sheet_name="<The name of the sheet to read>",first_row_header="<True or False, depending if the first row of the table needs to be considered as the header>",on_bad_lines="<What to do if bad lines are discovered while reading the sheet>",clean="<True or False, depending if blank columns and rows need to be removed>")sheet_dict_of_lists=read_google_sheet_as_dict_of_lists(is_public_sheet="<True or False, depending if the sheet you are reading is public or not>",google_service_account="<The Google Service Account information in order to access the sheet>",google_sheet_key="<The key of the sheet to read>",google_sheet_name="<The name of the sheet to read>",first_row_header="<True or False, depending if the first row of the table needs to be considered as the header>",on_bad_lines="<What to do if bad lines are discovered while reading the sheet>",clean="<True or False, depending if blank columns and rows need to be removed>")read_sheet_as_dataframe()For more tips on how to use tasks and flows in a Collection, check outUsing Collections!ResourcesIf you encounter any bugs while usingprefect-google-sheets, feel free to open an issue in theprefect-google-sheetsrepository.If you have any questions or issues while usingprefect-google-sheets, you can find help in either thePrefect Discourse forumor thePrefect Slack community.Feel free to ⭐️ or watchprefect-google-sheetsfor updates too!DevelopmentIf you'd like to install a version ofprefect-google-sheetsfor development, clone the repository and perform an editable install withpip:gitclonehttps://github.com/stefanocascavilla/prefect-google-sheets.gitcdprefect-google-sheets/

pipinstall-e".[dev]"# Install linting pre-commit hookspre-commitinstall