obspy.clients.fdsn.client.Client¶
- class Client(base_url=u'IRIS', major_versions=None, user=None, password=None, user_agent=u'ObsPy/1.1.1 (Linux-4.16.13-300.fc28.x86_64-x86_64-with-centos-7.6.1810-Core, Python 2.7.5)', debug=False, timeout=120, service_mappings=None, force_redirect=False, eida_token=None)[source]¶
Bases: future.types.newobject.newobject
FDSN Web service request client.
For details see the __init__() method.
Attributes
RE_HEX4 unicode(object=’‘) -> unicode object RE_IPv4 unicode(object=’‘) -> unicode object RE_IPv6 unicode(object=’‘) -> unicode object RE_UINT8 unicode(object=’‘) -> unicode object URL_REGEX unicode(object=’‘) -> unicode object __dict__ __doc__ unicode(object=’‘) -> unicode object __module__ str(object=’‘) -> string __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. next 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
__format__ default object formatter __init__ Initializes an FDSN Web Service client. __long__ __native__ Hook for the future.utils.native() function __new__ __nonzero__ __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(). __unicode__