singlet.io.googleapi package
Submodules
singlet.io.googleapi.googleapi module
singlet.io.googleapi.samplesheet module
-
exception
singlet.io.googleapi.samplesheet.
GoogleIOError
[source]
Bases: OSError
-
class
singlet.io.googleapi.samplesheet.
SampleSheet
(sheet)[source]
Bases: object
-
MAX_COLUMN
= 'AZ'
-
add_sheet
(sheetname)[source]
-
application_name
= 'Google Sheet API to singlet'
-
static
convert_A24_to_row_col
(well)[source]
-
convert_range_json_to_A1
(r)[source]
-
classmethod
convert_row_col_to_A1
(row, col)[source]
-
static
convert_row_col_to_A24
(row, col)[source]
-
delete_sheet
(sheetname)[source]
-
get_backgrounds
(sheetname)[source]
-
get_cell_property
(sheetname, field_string, ranges=())[source]
-
get_credentials
()[source]
Gets valid user credentials from storage.
If nothing has been stored, or if the stored credentials are invalid,
the OAuth2 flow is completed to obtain the new credentials.
Returns: | Credentials, the obtained credential. |
-
get_data
(sheetname, ranges=())[source]
Get the whole sheet as a pandas dataframe
-
get_header_columns_indices
(colnames, sheetname)[source]
Get the indices of columns in A1 notation
-
get_last_column
(sheetname)[source]
-
get_named_ranges
(sheetname=None, fmt='dict', convert=True)[source]
-
get_sheet_id
(sheetname)[source]
-
get_sheet_shape
(sheetname)[source]
Get the data range of the sheet
-
get_sheetnames
()[source]
-
get_table
(fmt='pandas')[source]
-
get_text_format
(sheetname, prop, ranges=())[source]
-
static
hex_to_rgb
(value)[source]
Return (red, green, blue) for the color given as #rrggbb.
-
static
rgb_to_hex
(rgb)[source]
Return color as #rrggbb for the given color values.
-
scopes
= 'https://www.googleapis.com/auth/spreadsheets.readonly'
-
set_backgrounds
(sheetname, bkgs, start_range=(0, 0))[source]
-
set_cell_property
(sheetname, field_string, data, start_range=(0, 0))[source]
-
set_dimension_size
(sheetname, dimension, pixel_size, dim_range=(None, None))[source]
-
set_service
()[source]
-
set_sheet
(sheetname, values)[source]
-
set_text_format
(sheetname, prop, fmts, start_range=(0, 0))[source]
Module contents
-
singlet.io.googleapi.
parse_samplesheet
(sheet)[source]