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
votablestr

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

urlstr

the URL that produced the response

sessionobject

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(index)

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

to_table()

returns a brief overview of the matched results as an astropy table.

Methods Documentation

getrecord(index)[source]

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

Parameters
indexint

the zero-based index of the record

to_table()[source]

returns a brief overview of the matched results as an astropy table.

This is mainly intended for interactive use, where people would like to inspect the matches in, perhaps, notebooks.