This example demonstrates working with the POST
/stores/:id/streamed-list-objects
endpoint in OpenFGA using the Python SDK.
If you do not already have an OpenFGA instance running, you can start one using the following command:
docker run -d -p 8080:8080 openfga/openfga
You may need to configure the example for your environment:
cp .env.example .env
Now edit the .env
file and set the values as appropriate.
Begin by installing the required dependencies:
pip install -r requirements.txt
Next, run the example. You can use either the synchronous or asynchronous client:
python asynchronous.py
python synchronous.py