5. Running Simple Services

When querying “simple” remote services (image, spectral, cone search; not directly TAP), PyVO has a consistent pattern:

# <prot> is SIA, SSA, SCS, SLA...
import pyvo

# construct a service object with a service's endpoint URL
service = pyvo.dal.<prot>Service(access_url)

#call the search method with the protocol's parameters
for result in service.search(<parameters>):
  ...work on dict-like object result...

The “dal” in here means “Data Access Layer”, which essentially means: the VO protocols dealing with how to query services and how the services are supposed to respond.

You’ll soon learn who to find out the access URLs.


Markus Demleitner, Hendrik Heinl