DatalinkService

class pyvo.dal.adhoc.DatalinkService(baseurl, session=None)[source]

Bases: pyvo.dal.DALService, pyvo.dal.vosi.AvailabilityMixin, pyvo.dal.vosi.CapabilityMixin

a representation of a Datalink service

instantiate a Datalink service

Parameters:
baseurl : str

the base URL that should be used for forming queries to the service.

session : object

optional session to use for network requests

Methods Summary

create_query(self, id[, responseformat]) create a query object that constraints can be added to and then executed.
run_sync(self, id[, responseformat]) runs sync query and returns its result
search(self, id[, responseformat]) runs sync query and returns its result

Methods Documentation

create_query(self, id, responseformat=None, **keywords)[source]

create a query object that constraints can be added to and then executed. The input arguments will initialize the query with the given values.

Parameters:
baseurl : str

the base URL for the Datalink service

id : str

the dataset identifier

responseformat : str

the output format

run_sync(self, id, responseformat=None, **keywords)[source]

runs sync query and returns its result

Parameters:
id : str

the dataset identifier

responseformat : str

the output format

Returns:
DatalinkResults

the query result

See also

DatalinkResults
search(self, id, responseformat=None, **keywords)

runs sync query and returns its result

Parameters:
id : str

the dataset identifier

responseformat : str

the output format

Returns:
DatalinkResults

the query result

See also

DatalinkResults