search.py
TextgridSearchRequest.search
and TextgridSearch.search
map the search interface of the REST API to the client's functional API one by one but rename some of the parameters. Thus, the documentation of the REST API has to be duplicated in the library with respect to these changes. This is error prone and should be avoided (at least with the low-level TextgridSearchRequest
).
Proposal: Evaluate functional parameters with **kwargs
and check the keys against a list of allowed parameters.