Library

class mss_dataserver.event.core.Library(name)[source]

Bases: object

Manage a set of event catalogs.

Parameters

name (str) – The name of the library.

Variables

catalogs (dict) – A dictionary of event catalogs (Catalog) with the name of the catalog as the dictionary key.

Methods

__init__(name)

Initialize the instance.

add_catalog(catalog)

Add one or more catalogs to the library.

clear()

Remove all catalogs.

get_catalogs_in_db(project)

Query the available catalogs in the database.

get_events([catalog_names, start_time, end_time])

Get events from the library using from search criteria passed as keywords.

load_catalog_from_db(project, name[, …])

Load catalogs from the database.

load_event_by_id(project[, ev_id, public_id])

Get an event by the database id or the public id.

load_event_from_db(project[, ev_id, public_id])

Load an event from the database by database id or the public id.

remove_catalog(name)

Remove a catalog from the library.

Inheritence diagram

Inheritance diagram of mss_dataserver.event.core.Library