def _call_viewlike(resource, options):
    if 'keys' in options:
        options = options.copy()
        keys = {'keys': options.pop('keys')}
        return resource.post_json(body=keys, **_encode_view_options(options))
    else:
        return resource.get_json(**_encode_view_options(options))
Call a resource that takes view-like options.
dataset/ETHPy150Open djc/couchdb-python/couchdb/client.py/_call_viewlike