obspy.clients.seedlink.slclient.SLClient
- class SLClient(loglevel=None, timeout=None)[source]
Bases:
object
Basic class to create and use a connection to a SeedLink server using a SeedLinkConnection object.
A new SeedLink application can be created by sub-classing SLClient and overriding at least the packet_handler method of SLClient.
- Variables
slconn – SeedLinkConnection object for communicating with the SeedLinkConnection over a socket.
verbose – Verbosity level, 0 is lowest.
ppackets – Flag to indicate show detailed packet information.
streamfile – Name of file containing stream list for multi-station mode.
selectors – Selectors for uni-station or default selectors for multi-station.
multiselect – Selectors for multi-station.
statefile – Name of file for reading (if exists) and storing state.
begin_time – Beginning of time window for read start in past.
end_time – End of time window for reading windowed data.
infolevel – INFO LEVEL for info request only.
- Parameters
timeout (float) – Timeout in seconds, passed on to the underlying SeedLinkConnection.
Attributes
Public Methods
Initializes this SLClient. |
|
Main method - creates and runs an SLClient using the specified command line arguments |
|
Processes each packet received from the SeedLinkConnection. |
|
Parses the command line arguments. |
|
Prints the usage message for this class. |
|
Start this SLClient. |
Special Methods
- SLClient.__delattr__(name, /)
Implement delattr(self, name).
- SLClient.__dir__()
Default dir() implementation.
- SLClient.__eq__(value, /)
Return self==value.
- SLClient.__format__(format_spec, /)
Default object formatter.
- SLClient.__ge__(value, /)
Return self>=value.
- SLClient.__getattribute__(name, /)
Return getattr(self, name).
- SLClient.__gt__(value, /)
Return self>value.
- SLClient.__hash__()
Return hash(self).
- SLClient.__init__(loglevel=None, timeout=None)[source]
Creates a new instance of SLClient with the specified logging object
- SLClient.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- SLClient.__le__(value, /)
Return self<=value.
- SLClient.__lt__(value, /)
Return self<value.
- SLClient.__ne__(value, /)
Return self!=value.
- SLClient.__new__(**kwargs)
- SLClient.__reduce__()
Helper for pickle.
- SLClient.__reduce_ex__(protocol, /)
Helper for pickle.
- SLClient.__repr__()
Return repr(self).
- SLClient.__setattr__(name, value, /)
Implement setattr(self, name, value).
- SLClient.__sizeof__()
Size of object in memory, in bytes.
- SLClient.__str__()
Return str(self).
- SLClient.__subclasshook__()
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).