TAPQuery

class pyvo.dal.tap.TAPQuery(baseurl, query, mode='sync', language='ADQL', maxrec=None, uploads=None)[source]

Bases: pyvo.dal.query.DALQuery

initialize the query object with the given parameters

Parameters:

baseurl : str

the TAP baseurl

query : str

the query string / parameters

mode : str

the query mode (sync | async). default “sync”

language : str

the query language. defaults to ADQL

maxrec : int

the amount of records to fetch

uploads : dict

Files to upload. Uses table name as key and file name as value

Methods Summary

execute_stream() submit the query and return the raw VOTable XML as a file stream
getqueryurl()
submit() does the actual request

Methods Documentation

execute_stream()[source]

submit the query and return the raw VOTable XML as a file stream

Raises:

DALServiceError

for errors connecting to or communicating with the service

DALQueryError

for errors in the input query syntax

getqueryurl()[source]
submit()[source]

does the actual request