gavo.votable.tableparser module

Parsing various forms of tabular data embedded in VOTables.

WARNING: This will fail if the parser exposes namespaces in its events (utils.iterparse doesn’t).

class gavo.votable.tableparser.Binary2Iterator(tableDefinition, nodeIterator)[source]

Bases: BinaryIteratorBase

decoderModule = <module 'gavo.votable.dec_binary2' from '/home/msdemlei/gavo/trunk/gavo/votable/dec_binary2.py'>
class gavo.votable.tableparser.BinaryIterator(tableDefinition, nodeIterator)[source]

Bases: BinaryIteratorBase

decoderModule = <module 'gavo.votable.dec_binary' from '/home/msdemlei/gavo/trunk/gavo/votable/dec_binary.py'>
class gavo.votable.tableparser.BinaryIteratorBase(tableDefinition, nodeIterator)[source]

Bases: DataIterator

A base class used by Rows to actually iterate over rows in BINARY(2) serialization.

Since the VOTable binary serialization has no framing, we need to present the data stream coming from the parser as a file to the decoder.

class gavo.votable.tableparser.DataIterator(tableDefinition, nodeIterator)[source]

Bases: object

A base for the classes actually doing the iteration.

You need to give a decoderModule attribute and implement _getRawRow.

class gavo.votable.tableparser.Rows(tableDefinition, nodeIterator)[source]

Bases: object

a wrapper for data within a VOTable.

Tabledatas are constructed with a model.VOTable.TABLE instance and the iterator maintained by parser.parse. They yield individual table lines.

In reality, __iter__ just dispatches to the various deserializers.

class gavo.votable.tableparser.TableDataIterator(tableDefinition, nodeIterator)[source]

Bases: DataIterator

An internal class used by Rows to actually iterate over rows in TABLEDATA serialization.

decoderModule = <module 'gavo.votable.dec_tabledata' from '/home/msdemlei/gavo/trunk/gavo/votable/dec_tabledata.py'>