obspy.db.indexer.WaveformFileCrawler

class WaveformFileCrawler[source]

Bases: object

A waveform file crawler.

This class scans periodically all given paths for waveform files and collects them into a watch list.

Attributes

features

patterns

Public Methods

get_features

get_patterns

has_pattern

Checks if the file name fits to the preferred file pattern.

iterate

Handles exactly one directory.

Private Methods

Warning

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

WaveformFileCrawler._delete(path, file=None)[source]

Remove a file or all files with a given path from the database.

WaveformFileCrawler._prepare_paths(paths)[source]
WaveformFileCrawler._process_log_queue()[source]
WaveformFileCrawler._process_output_queue()[source]
WaveformFileCrawler._reset_walker()[source]

Resets the crawler parameters.

WaveformFileCrawler._select(path=None)[source]

Fetch entry from database.

WaveformFileCrawler._step_walker()[source]

Steps current walker object to the next directory.

WaveformFileCrawler._update_or_insert(dataset)[source]

Add a new file into or modifies existing file in database.

Special Methods

WaveformFileCrawler.__delattr__(name, /)

Implement delattr(self, name).

WaveformFileCrawler.__dir__()

Default dir() implementation.

WaveformFileCrawler.__eq__(value, /)

Return self==value.

WaveformFileCrawler.__format__(format_spec, /)

Default object formatter.

WaveformFileCrawler.__ge__(value, /)

Return self>=value.

WaveformFileCrawler.__getattribute__(name, /)

Return getattr(self, name).

WaveformFileCrawler.__gt__(value, /)

Return self>value.

WaveformFileCrawler.__hash__()

Return hash(self).

WaveformFileCrawler.__init__()
WaveformFileCrawler.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

WaveformFileCrawler.__le__(value, /)

Return self<=value.

WaveformFileCrawler.__lt__(value, /)

Return self<value.

WaveformFileCrawler.__ne__(value, /)

Return self!=value.

WaveformFileCrawler.__new__(**kwargs)
WaveformFileCrawler.__reduce__()

Helper for pickle.

WaveformFileCrawler.__reduce_ex__(protocol, /)

Helper for pickle.

WaveformFileCrawler.__repr__()

Return repr(self).

WaveformFileCrawler.__setattr__(name, value, /)

Implement setattr(self, name, value).

WaveformFileCrawler.__sizeof__()

Size of object in memory, in bytes.

WaveformFileCrawler.__str__()

Return str(self).

WaveformFileCrawler.__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).