openfga / openfga/python-sdk

OpenFGA Syntax Transformer should come built in to python.

Open
#214 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
85
Forks
36
Avg merge
3h 8m
Merged PRs (30d)
3

Description

Checklist
Describe the problem you'd like to have solved

Seems like an obvious thing to have for the python sdk. I rather not run cli commands within a python environment just to generate the json from the easier to read fga file.

Describe the ideal solution

Export the functionality of converting back and forth from fga to json in https://github.com/openfga/frontend-utils to a pure python function.

Alternatives and current workarounds

No response

References

https://github.com/openfga/frontend-utils

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the referenced frontend-utils repository and the OpenFGA Python SDK to understand the existing FGA-to-JSON and JSON-to-FGA behavior. Identify the SDK entry point where a pure Python transformer would belong; done means both conversion directions are available without invoking CLI commands and match the referenced functionality.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authorization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.