pycasbin
pycasbin copied to clipboard
[feature] create casbin-python-cli to use PyCasbin in CLI
For now, Casbin is mainly a library, or sometimes as a service. It also can be a CLI tool. So we can call jCasbin in shell.
At least, we need to support basic model, adapter, enforcer APIs this time: https://casbin.org/docs/model-storage, https://casbin.org/docs/policy-storage
Refer to:
- https://www.openpolicyagent.org/docs/latest/cli/
- https://docs.cerbos.dev/cerbos/latest/cli/index.html
Similar to:
- Go: https://github.com/casbin/casbin/issues/1414
- Java: https://github.com/casbin/jcasbin/issues/400
Existing CLI repos:
- Go: https://github.com/casbin/casbin-go-cli
- Java: https://github.com/jcasbin/casbin-java-cli
The output for this issue will be in:
- Python: https://github.com/officialpycasbin/casbin-python-cli
@techoner @Nekotoxin