INNER CODE UNIT · Python
create_tab_in_new_workbook
Squarespace/datasheets · datasheets/convenience.py:39
def create_tab_in_new_workbook(filename, tabname, emails=(), role='reader', notify=True,
message=None):
"""Create a new tab in a new workbook and return an instance of that tab
Args:
filename (str): The name of the workbook to be created
tabname (str): The name of the tab to be created
emails (str or tuple): The email address(es) to grant the permission to. This may be one
address in string form or a series of addresses in tuple form
role (str or tuple): The type of permission(s) to grant. This can be either a tuple of the
same size as `emails` or a single value, in which case all emails are granted that
permission level. Values must be one of 'owner', 'writer', or 'reader'
notify (bool): If True, send an email notifying the recipient(s) of their granted