obspy.fdsn.client.Client.__init__

Client.__init__(base_url='IRIS', major_versions={}, user=None, password=None, user_agent='ObsPy 0.9.0 (Linux-3.9-0.bpo.1-amd64-x86_64-with-debian-7.3, Python 2.7.5)', debug=False)[source]

Initializes an FDSN Web Service client.

>>> client = Client("IRIS")
>>> print client  
FDSN Webservice Client (base url: http://service.iris.edu)
Available Services: 'dataselect' (v1.0.0), 'event' (v1.0.6),
'station' (v1.0.7), 'available_event_contributors',
'available_event_catalogs'

Use e.g. client.help('dataselect') for the
parameter description of the individual services
or client.help() for parameter description of
all webservices.
Parameters:
  • base_url (str) Base URL of FDSN web service compatible server (e.g. “http://service.iris.edu”) or key string for recognized server (one of ‘IRIS’, ‘NCEDC’, ‘RESIF’, ‘USGS’, ‘USP’)
  • major_versions (dict) Allows to specify custom major version numbers for individual services (e.g. major_versions={‘station’: 2, ‘dataselect’: 3}), otherwise the latest version at time of implementation will be used.
  • user (str) User name of HTTP Digest Authentication for access to restricted data.
  • password (str) Password of HTTP Digest Authentication for access to restricted data.
  • user_agent (str) The user agent for all requests.
  • debug (bool) Debug flag.

This Page