RegistryResults

class pyvo.registry.regtap.RegistryResults(votable, url=None, session=None)[source]

Bases: pyvo.dal.DALResults

an iterable set of results from a registry query. Each record is returned as RegistryResults

initialize the cursor. This constructor is not typically called by directly applications; rather an instance is obtained from calling a DALQuery’s execute().

Parameters:
votable : str

the service response parsed into an astropy.io.votable.tree.VOTableFile instance.

url : str

the URL that produced the response

session : object

optional session to use for network requests

Raises:
DALFormatError

if the response VOTable does not contain a response table

See also

DALFormatError

Methods Summary

getrecord(self, index) return all the attributes of a resource record with the given index as SimpleResource instance (a dictionary-like object).

Methods Documentation

getrecord(self, index)[source]

return all the attributes of a resource record with the given index as SimpleResource instance (a dictionary-like object).

Parameters:
index : int

the zero-based index of the record