gavo.votable.dec_tabledata module

Coding and decoding from tabledata.

gavo.votable.dec_tabledata.getGlobals(tableDefinition: Optional[TABLE]) Dict[str, Any][source]
gavo.votable.dec_tabledata.getLinesFor(field: TypedElement) List[str][source]

returns a sequence of python source lines to decode TABLEDATA-encoded values for field.

gavo.votable.dec_tabledata.getRowDecoderSource(tableDefinition: TABLE)[source]

returns the source for a function deserializing rows of tableDefition in TABLEDATA.

tableDefinition is a VOTable.TABLE instance.

gavo.votable.dec_tabledata.tokenizeBitArr(val: str) Iterator[str][source]

iterates over 0 or 1 tokens in val, discarding everything else.

gavo.votable.dec_tabledata.tokenizeComplexArr(val: str) Iterator[str][source]

iterates over suitable number literal pairs from the VOTable complex array literal val.

gavo.votable.dec_tabledata.tokenizeNormalArr(val: str) Iterator[str][source]

iterates over all whitespace-separated tokens in val