RegistryResults

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

Bases: DALResults

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

You can iterate over these, or access them by (numeric) index; note, however, that these indexes will not be stable across different executions and thus should only be used in interactive sessions. Alternatively, you can use short names as indexes; there might be clashes for these, as they are not unique VO-wide. Where this matters, you need to use full ivoids as index.

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

get_summary()

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

getrecord(index)

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

Methods Documentation

get_summary()[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.

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