obsplus.utils.bank module

Utils for banks

obsplus.utils.bank.sql_connection(path, **kwargs)[source]

A simple context manager for a sqlite connection.

Parameters:

path – A path to the sqlite database.

obsplus.utils.bank.summarize_generic_stream(path, format=None)[source]

Return summary information for a stream stored on disk.

Parameters:
  • path – The path to the stream.

  • format – The format code, as used by obspy.

Return type:

List[dict]