curved-florist-98287
12/10/2023, 8:17 AMchilly-king-10285
12/10/2023, 8:17 AMchilly-king-10285
12/10/2023, 8:18 AMbash go get <http://github.com/ory/keto/proto|github.com/ory/keto/proto> go get <http://github.com/ory/keto-client-go|github.com/ory/keto-client-go> Then, you can create minimal permission rules with the following code: javascript import { Namespace, SubjectSet, Context } from "@ory/keto-namespace-types" class User implements Namespace { } class Blog implements Namespace { related: { viewers: User[] } permits = { view: (ctx: Context): boolean => this.related.viewers.includes(ctx.subject) } } For Python, you can install the Ory Python SDK with the following commands: bash pip install git+<https://github.com/ory/sdk.git> python setup.py install --user Then, you can import the package with the following code: python import ory_client For more examples of SDK usage, you can refer to the auto-generated documentation for [keto-client-go](https://github.com/ory/keto-client-go/tree/master/docs) and [ory-client](https://github.com/ory/sdk/blob/master/clients/client/python/README.md). Sources: - [Go SDK](https://www.ory.sh/docs/keto/self-hosted/go) - [Python SDK](https://www.ory.sh/docs/keto/sdk/python)