{"id":17343551,"url":"https://github.com/maxmindlin/openfga-dsl-parser-python","last_synced_at":"2026-04-18T12:03:11.629Z","repository":{"id":105957290,"uuid":"519904473","full_name":"maxmindlin/openfga-dsl-parser-python","owner":"maxmindlin","description":"Python bindings to the openfga-dsl-parser library","archived":false,"fork":false,"pushed_at":"2022-08-01T01:02:07.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T09:46:42.279Z","etag":null,"topics":["json","library","openfga","parser","transformer"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/openfga-dsl-parser-python/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxmindlin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-31T22:55:58.000Z","updated_at":"2023-03-12T17:40:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a1fcf9d-40a0-4af5-8d13-6d50037b8001","html_url":"https://github.com/maxmindlin/openfga-dsl-parser-python","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maxmindlin/openfga-dsl-parser-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmindlin%2Fopenfga-dsl-parser-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmindlin%2Fopenfga-dsl-parser-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmindlin%2Fopenfga-dsl-parser-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmindlin%2Fopenfga-dsl-parser-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxmindlin","download_url":"https://codeload.github.com/maxmindlin/openfga-dsl-parser-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmindlin%2Fopenfga-dsl-parser-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267808147,"owners_count":24147384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","library","openfga","parser","transformer"],"created_at":"2024-10-15T16:09:41.359Z","updated_at":"2026-04-18T12:03:11.572Z","avatar_url":"https://github.com/maxmindlin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenFGA DSL Parser (Python)\n\nThe OpenFGA DSL Parser provides utilities for parsing DSL file string inputs into an AST representation, as well as transforming them into a JSON representation.\n\nThis library is meant to be a utility for services using [OpenFGA](https://openfga.dev/) for their authorization solution, but need a way to translate from their DSL to the JSON format the HTTP API expects.\n\n## Installation\n\n`pip install openfga-dsl-parser-python`\n\n## Usage\n\n```python\nfrom openfga_dsl_parser import dsl_to_json\ninput = \"\"\"type group\n  relations\n    define member as self\ntype resource\n  relations\n    define writer as self\n    define reader as self but not writer\"\"\"\n\njson = dsl_to_json(input)\nprint(json)\n```\n\n## Development\n\nSetup Python environment \u0026 install Maturin:\n\n1. `python -m venv .venv`\n2. `source .venv/bin/activate`\n3. `pip install maturin`\n\nInstall \u0026 build package using Maturin for local testing:\n\n`maturin develop`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmindlin%2Fopenfga-dsl-parser-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxmindlin%2Fopenfga-dsl-parser-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmindlin%2Fopenfga-dsl-parser-python/lists"}