from frictionless import Resource
from frictionless.plugins.inline import InlineDialect
dialect = InlineDialect(keyed=True, keys=['name', 'id'])
resource = Resource(data=[{'id': 1, 'name': 'english'}, {'id': 2, 'name': 'german'}], dialect=dialect)
print(resource.to_view())