def share_with_anyone(service, file_id):
    """Shares the file with anyone with the link
  Args:
    service: Drive API service instance.
    file_id: ID of the file to insert permission for.
  Returns:
    The inserted permission if successful, None otherwise.
  """
new_permission = {'type': 'anyone', 'role': 'writer', 'withLink': True}
try:
    return service.permissions().insert(fileId=file_id, body=new_permission
        ).execute()
except errors.HttpError as error:
    print('An error occurred: %s' % error)
return None
python + google drive: загрузить xlsx, преобразовать в лист google, получить ссылку для общего доступа