pycasbin icon indicating copy to clipboard operation
pycasbin copied to clipboard

[feature] create casbin-python-cli to use PyCasbin in CLI

Open hsluoyz opened this issue 1 year ago • 1 comments

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

hsluoyz avatar Jun 16 '24 08:06 hsluoyz

@techoner @Nekotoxin

casbin-bot avatar Jun 16 '24 08:06 casbin-bot