DatalinkService¶
- class pyvo.dal.adhoc.DatalinkService(baseurl, session=None)[source]¶
Bases:
DALService
,AvailabilityMixin
,CapabilityMixin
a representation of a Datalink service
instantiate a Datalink service
- Parameters:
- baseurlstr
the base URL that should be used for forming queries to the service.
- sessionobject
optional session to use for network requests
Methods Summary
create_query
(id, *[, responseformat])create a query object that constraints can be added to and then executed.
run_sync
(id, *[, responseformat])runs sync query and returns its result
search
(id, *[, responseformat])runs sync query and returns its result
Methods Documentation
- create_query(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:
- baseurlstr
the base URL for the Datalink service
- idstr
the dataset identifier
- responseformatstr
the output format
- run_sync(id, *, responseformat=None, **keywords)[source]¶
runs sync query and returns its result
- Parameters:
- idstr
the dataset identifier
- responseformatstr
the output format
- Returns:
- DatalinkResults
the query result
See also
- search(id, *, responseformat=None, **keywords)¶
runs sync query and returns its result
- Parameters:
- idstr
the dataset identifier
- responseformatstr
the output format
- Returns:
- DatalinkResults
the query result
See also