otp.query (otq reference)#
- class query(path, *config, **params)[source]#
Bases:
object
Constructs a query object with a certain path. Keyword arguments specify query parameters. For example,
query('/otqs/some.otq::some_query', PARAM1='val1', PARAM2=3.14)
.You also can pass an instance of query.config class as the second positional argument to specify a query.
- Parameters
path (str) – path to an otq including the query name in the format <path>::<query-name>; exmaple:
/otqs/some.otq::some_query
- Raises