obspy.clients.fdsn.client.Client

class Client(base_url='IRIS', major_versions=None, user=None, password=None, user_agent='ObsPy/1.1.0 (Linux-2.6.32-042stab124.2-i686-with-debian-wheezy-sid, Python 3.4.4)', debug=False, timeout=120, service_mappings=None, force_redirect=False, eida_token=None)[source]

Bases: builtins.object

FDSN Web service request client.

For details see the __init__() method.

Attributes

RE_HEX4 str(object=’‘) -> str
RE_IPv4 str(object=’‘) -> str
RE_IPv6 str(object=’‘) -> str
RE_UINT8 str(object=’‘) -> str
URL_REGEX str(object=’‘) -> str
__dict__
__doc__ str(object=’‘) -> str
__module__ str(object=’‘) -> str
__weakref__ list of weak references to the object (if defined)

Public Methods

get_events Query the event service of the client.
get_stations Query the station service of the FDSN client.
get_stations_bulk Query the station service of the client.
get_waveforms Query the dataselect service of the client.
get_waveforms_bulk Query the dataselect service of the client.
get_webservice_version Get full version information of webservice (as a tuple of ints).
help Print a more extensive help for a given service.
set_credentials Set user and password resulting in subsequent web service requests for waveforms being authenticated for potential access to restricted data.
set_eida_token Fetch user and password from the server using the provided token, resulting in subsequent web service requests for waveforms being authenticated for potential access to restricted data.

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

_attach_dataselect_url_to_stream Attaches the actually used dataselet URL to each Trace.
_attach_responses Helper method to fetch response via get_stations() and attach it to
_build_url Builds the correct URL.
_create_url_from_parameters
_discover_services Automatically discovers available services.
_download
_get_webservice_versionstring Get full version information of webservice as a string.
_repr_pretty_
_resolve_eida_token Use the token to get credentials.
_set_opener
_validate_base_url
_write_to_file_object

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__init__ Initializes an FDSN Web Service client.
__new__ Create and return a new object.
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__ size of object in memory, in bytes
__str__
__subclasshook__ Abstract classes can override this to customize issubclass().