obspy.clients.seishub.client.Client

class Client(base_url='http://teide.geophysik.uni-muenchen.de:8080', user='admin', password='admin', timeout=10, debug=False, retries=3)[source]

Bases: builtins.object

SeisHub database request Client class.

The following classes are automatically linked with initialization. Follow the links in “Linked Class” for more information. They register via the name listed in “Entry Point”.

Entry Point Linked Class
Client.waveform _WaveformMapperClient
Client.station _StationMapperClient
Client.event _EventMapperClient

Example

>>> from obspy.clients.seishub import Client
>>>
>>> t = UTCDateTime("2009-09-03 00:00:00")
>>> client = Client(timeout=20)
>>>
>>> st = client.waveform.get_waveforms(
...     "BW", "RTBE", "", "EHZ", t, t + 20)  
>>> print(st)  
1 Trace(s) in Stream:
BW.RTBE..EHZ | 2009-09-03T00:00:00.000000Z - ... | 200.0 Hz, 4001 samples

Attributes

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

Public Methods

ping Ping the SeisHub server.
test_auth Test if authentication information is valid.

Private Methods

Warning

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

_fetch
_http_request Send a HTTP request via urllib2.
_objectify

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__init__ Initializes the SeisHub 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
__subclasshook__ Abstract classes can override this to customize issubclass().