gavo.votable.enc_tabledata module

Encoding to tabledata.

These are functions returning pieces of code that are assembled into an encoding function. This still returns a normal string. The encoding into utf-8 only takes place in model’s TABLEDATA element.

Most functions here deal with both FIELD-s and PARAM-s, as the PARAM’s @value attribute contains tabledata-serialised values.

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

returns a sequence of python source lines to encode values described by field into tabledata.

gavo.votable.enc_tabledata.getPostamble(tableDefinition: TABLE) List[str][source]