ramp_database.tools.event.get_keyword_by_name

ramp_database.tools.event.get_keyword_by_name(session, name)

Get the keyword filtering by there name

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

namestr or None

The name of the keyword. If None, all keywords will be returned.

Returns
keywordramp_database.model.Keyword or list of ramp.model.Keyword

The keyword which have been queried.