QueryResponse

class sunpy.net.dataretriever.QueryResponse(lst, client=None)[source]

Bases: sunpy.net.base_client.BaseQueryResponse

Container of QueryResponseBlocks

Attributes Summary

blocks

A collections.abc.Sequence object which contains the records contained within the Query Response.

client

An instance of BaseClient used to generate the results.

Methods Summary

build_table()

Return an astropy.table.Table representation of the query response.

create(amap, lst[, time, client])

response_block_properties()

Returns a set of class attributes on all the response blocks.

time_range()

Returns the time-span for which records are available.

Attributes Documentation

blocks

A collections.abc.Sequence object which contains the records contained within the Query Response.

client

An instance of BaseClient used to generate the results.

Generally this is used to fetch the results later.

Note

In general, this doesn’t have to be the same instance of BaseClient, this is left to the client developer. If there is a significant connection overhead in creating an instance of a client you might want it to be the same instance as used for the search.

Methods Documentation

build_table()[source]

Return an astropy.table.Table representation of the query response.

classmethod create(amap, lst, time=None, client=None)[source]
response_block_properties()[source]

Returns a set of class attributes on all the response blocks.

time_range()[source]

Returns the time-span for which records are available.