def get_sheet_names(sheet_name_or_ix, book_name_or_ix=None, fullname_or_name=None, pid=None): book = get_book_object(fullname_or_name, book_name_or_ix, pid) sheet = get_sheet_object(book, sheet_name_or_ix) return jsonify(names=[serialize_name(name) for name in sheet.names])
def get_sheet_name(sheet_name_or_ix, sheet_scope_name, book_name_or_ix=None, fullname_or_name=None, pid=None): book = get_book_object(fullname_or_name, book_name_or_ix, pid) sheet = get_sheet_object(book, sheet_name_or_ix) return jsonify(serialize_name(sheet.names[sheet_scope_name]))
def get_book_name(name, book_name_or_ix=None, fullname_or_name=None, pid=None): book = get_book_object(fullname_or_name, book_name_or_ix, pid) return jsonify(serialize_name(book.names[name]))
def get_book_names(book_name_or_ix=None, fullname_or_name=None, pid=None): book = get_book_object(fullname_or_name, book_name_or_ix, pid) return jsonify(names=[serialize_name(name) for name in book.names])