neptyne.google.sheets

def update_spreadsheet_properties(properties=None, fields='*'):

Updates properties of a spreadsheet.

Link

def update_sheet_properties(properties=None, fields='*'):

Updates properties of the sheet with the specified sheetId.

Link

def update_dimension_properties( range=None, data_source_sheet_range=None, properties=None, fields='*'):

Updates properties of dimensions within the specified range.

Link

def update_named_range(named_range=None, fields='*'):

Updates properties of the named range with the specified namedRangeId.

Link

def repeat_cell(range=None, cell=None, fields='*'):

Updates all cells in the range to the values in the given Cell object. Only the fields listed in the fields field are updated; others are unchanged. If writing a cell with a formula, the formula's ranges will automatically increment for each field in the range. For example, if writing a cell with formula =A1 into range B2:C4, B2 would be =A1, B3 would be =A2, B4 would be =A3, C2 would be =B1, C3 would be =B2, C4 would be =B3. To keep the formula's ranges static, use the $ indicator. For example, use the formula =$A$1 to prevent both the row and the column from incrementing.

Link

def add_named_range(named_range=None):

Adds a named range to the spreadsheet.

Link

def delete_named_range(named_range_id=None):

Removes the named range with the given ID from the spreadsheet.

Link

def add_sheet(properties=None):

Adds a new sheet. When a sheet is added at a given index, all subsequent sheets' indexes are incremented. To add an object sheet, use AddChartRequest instead and specify EmbeddedObjectPosition.sheetId or EmbeddedObjectPosition.newSheet.

Link

def delete_sheet(sheet_id=None):

Deletes the requested sheet.

Link

def auto_fill(range=None, source_and_destination=None, use_alternate_series=None):

Fills in more data based on existing data.

Link

def cut_paste(source=None, destination=None, paste_type=None):

Moves data from the source to the destination.

Link

def copy_paste( source=None, destination=None, paste_type=None, paste_orientation=None):

Copies data from the source to the destination.

Link

def merge_cells(range=None, merge_type=None):

Merges all cells in the range.

Link

def unmerge_cells(range=None):

Unmerges cells in the given range.

Link

def update_borders( range=None, top=None, bottom=None, left=None, right=None, inner_horizontal=None, inner_vertical=None):

Updates the borders of a range. If a field is not set in the request, that means the border remains as-is. For example, with two subsequent UpdateBordersRequest: 1. range: A1:A5 { top: RED, bottom: WHITE } 2. range: A1:A5 { left: BLUE } That would result in A1:A5 having a borders of { top: RED, bottom: WHITE, left: BLUE }. If you want to clear a border, explicitly set the style to NONE.

Link

def update_cells(start=None, range=None, rows=None, fields='*'):

Updates all cells in a range with new data.

Link

def add_filter_view(filter=None):

Adds a filter view.

Link

def append_cells(sheet_id=None, rows=None, fields='*'):

Adds new cells after the last row with data in a sheet, inserting new rows into the sheet if necessary.

Link

def clear_basic_filter(sheet_id=None):

Clears the basic filter, if any exists on the sheet.

Link

def delete_dimension(range=None):

Deletes the dimensions from the sheet.

Link

def delete_embedded_object(object_id=None):

Deletes the embedded object with the given ID.

Link

def delete_filter_view(filter_id=None):

Deletes a particular filter view.

Link

def duplicate_filter_view(filter_id=None):

Duplicates a particular filter view.

Link

def duplicate_sheet( source_sheet_id=None, insert_sheet_index=None, new_sheet_id=None, new_sheet_name=None):

Duplicates the contents of a sheet.

Link

def find_replace( find=None, replacement=None, range=None, sheet_id=None, all_sheets=None, match_case=None, match_entire_cell=None, search_by_regex=None, include_formulas=None):

Finds and replaces data in cells over a range, sheet, or all sheets.

Link

def insert_dimension(range=None, inherit_from_before=None):

Inserts rows or columns in a sheet at a particular index.

Link

def insert_range(range=None, shift_dimension=None):

Inserts cells into a range, shifting the existing cells over or down.

Link

def move_dimension(source=None, destination_index=None):

Moves one or more rows or columns.

Link

def update_embedded_object_position(object_id=None, new_position=None, fields='*'):

Update an embedded object's position (such as a moving or resizing a chart or image).

Link

def paste_data(coordinate=None, data=None, delimiter=None, html=None, type=None):

Inserts data into the spreadsheet starting at the specified coordinate.

Link

def text_to_columns(source=None, delimiter=None, delimiter_type=None):

Splits a column of text into multiple columns, based on a delimiter in each cell.

Link

def update_filter_view(filter=None, fields='*'):

Updates properties of the filter view.

Link

def delete_range(range=None, shift_dimension=None):

Deletes a range of cells, shifting other cells into the deleted area.

Link

def append_dimension(sheet_id=None, dimension=None, length=None):

Appends rows or columns to the end of a sheet.

Link

def add_conditional_format_rule(rule=None, index=None):

Adds a new conditional format rule at the given index. All subsequent rules' indexes are incremented.

Link

def update_conditional_format_rule(rule=None, new_index=None, index=None, sheet_id=None):

Updates a conditional format rule at the given index, or moves a conditional format rule to another index.

Link

def delete_conditional_format_rule(index=None, sheet_id=None):

Deletes a conditional format rule at the given index. All subsequent rules' indexes are decremented.

Link

def sort_range(range=None, sort_specs=None):

Sorts data in rows based on a sort order per column.

Link

def set_data_validation(range=None, rule=None):

Sets a data validation rule to every cell in the range. To clear validation in a range, call this with no rule specified.

Link

def set_basic_filter(filter=None):

Sets the basic filter associated with a sheet.

Link

def add_protected_range(protected_range=None):

Adds a new protected range.

Link

def update_protected_range(protected_range=None, fields='*'):

Updates an existing protected range with the specified protectedRangeId.

Link

def delete_protected_range(protected_range_id=None):

Deletes the protected range with the given ID.

Link

def auto_resize_dimensions(dimensions=None, data_source_sheet_dimensions=None):

Automatically resizes one or more dimensions based on the contents of the cells in that dimension.

Link

def add_chart(chart=None):

Adds a chart to a sheet in the spreadsheet.

Link

def update_chart_spec(chart_id=None, spec=None):

Updates a chart's specifications. (This does not move or resize a chart. To move or resize a chart, use UpdateEmbeddedObjectPositionRequest.)

Link

def update_banding(banded_range=None, fields='*'):

Updates properties of the supplied banded range.

Link

def add_banding(banded_range=None):

Adds a new banded range to the spreadsheet.

Link

def delete_banding(banded_range_id=None):

Removes the banded range with the given ID from the spreadsheet.

Link

def create_developer_metadata(developer_metadata=None):

A request to create developer metadata.

Link

def update_developer_metadata(data_filters=None, developer_metadata=None, fields='*'):

A request to update properties of developer metadata. Updates the properties of the developer metadata selected by the filters to the values provided in the DeveloperMetadata resource. Callers must specify the properties they wish to update in the fields parameter, as well as specify at least one DataFilter matching the metadata they wish to update.

Link

def delete_developer_metadata(data_filter=None):

A request to delete developer metadata.

Link

def randomize_range(range=None):

Randomizes the order of the rows in a range.

Link

def add_dimension_group(range=None):

Creates a group over the specified range. If the requested range is a superset of the range of an existing group G, then the depth of G is incremented and this new group G' has the depth of that group. For example, a group [C:D, depth 1] + [B:E] results in groups [B:E, depth 1] and [C:D, depth 2]. If the requested range is a subset of the range of an existing group G, then the depth of the new group G' becomes one greater than the depth of G. For example, a group [B:E, depth 1] + [C:D] results in groups [B:E, depth 1] and [C:D, depth 2]. If the requested range starts before and ends within, or starts within and ends after, the range of an existing group G, then the range of the existing group G becomes the union of the ranges, and the new group G' has depth one greater than the depth of G and range as the intersection of the ranges. For example, a group [B:D, depth 1] + [C:E] results in groups [B:E, depth 1] and [C:D, depth 2].

Link

def delete_dimension_group(range=None):

Deletes a group over the specified range by decrementing the depth of the dimensions in the range. For example, assume the sheet has a depth-1 group over B:E and a depth-2 group over C:D. Deleting a group over D:E leaves the sheet with a depth-1 group over B:D and a depth-2 group over C:C.

Link

def update_dimension_group(dimension_group=None, fields='*'):

Updates the state of the specified group.

Link

def trim_whitespace(range=None):

Trims the whitespace (such as spaces, tabs, or new lines) in every cell in the specified range. This request removes all whitespace from the start and end of each cell's text, and reduces any subsequence of remaining whitespace characters to a single space. If the resulting trimmed text starts with a '+' or '=' character, the text remains as a string value and isn't interpreted as a formula.

Link

def delete_duplicates(range=None, comparison_columns=None):

Removes rows within this range that contain values in the specified columns that are duplicates of values in any previous row. Rows with identical values but different letter cases, formatting, or formulas are considered to be duplicates. This request also removes duplicate rows hidden from view (for example, due to a filter). When removing duplicates, the first instance of each duplicate row scanning from the top downwards is kept in the resulting range. Content outside of the specified range isn't removed, and rows considered duplicates do not have to be adjacent to each other in the range.

Link

def update_embedded_object_border(object_id=None, border=None, fields='*'):

Updates an embedded object's border property.

Link

def add_slicer(slicer=None):

Adds a slicer to a sheet in the spreadsheet.

Link

def update_slicer_spec(slicer_id=None, spec=None, fields='*'):

Updates a slicer's specifications. (This does not move or resize a slicer. To move or resize a slicer use UpdateEmbeddedObjectPositionRequest.

Link

def add_data_source(data_source=None):

Adds a data source. After the data source is added successfully, an associated DATA_SOURCE sheet is created and an execution is triggered to refresh the sheet to read data from the data source. The request requires an additional bigquery.readonly OAuth scope.

Link

def update_data_source(data_source=None, fields='*'):

Updates a data source. After the data source is updated successfully, an execution is triggered to refresh the associated DATA_SOURCE sheet to read data from the updated data source. The request requires an additional bigquery.readonly OAuth scope.

Link

def delete_data_source(data_source_id=None):

Deletes a data source. The request also deletes the associated data source sheet, and unlinks all associated data source objects.

Link

def refresh_data_source(references=None, data_source_id=None, is_all=None, force=None):

Refreshes one or multiple data source objects in the spreadsheet by the specified references. The request requires an additional bigquery.readonly OAuth scope. If there are multiple refresh requests referencing the same data source objects in one batch, only the last refresh request is processed, and all those requests will have the same response accordingly.

Link