Skip to content

Releases: casbin/pycasbin

PyCasbin 0.5

05 Jun 16:00

Choose a tag to compare

New

  • Added 'add_policy' api.

PyCasbin 0.4

27 May 16:00

Choose a tag to compare

New

  • Added some management api.
  • Added some rbac api.

PyCasbin 0.3

29 Apr 07:01

Choose a tag to compare

New

  • Added SQLAlchemy Adapter

Fixed

  • Fix logging problem when passing objects as parameters into enforce(). ( #9 )
  • Fix for empty policy list ( #10 )

PyCasbin 0.2

01 Mar 09:40

Choose a tag to compare

PyCasbin is a powerful and efficient open-source access control library for Python projects. It provides support for enforcing authorization based on various access control models.

Features

What Casbin does:

  1. enforce the policy in the classic {subject, object, action} form or a customized form as you defined, both allow and deny authorizations are supported.
  2. handle the storage of the access control model and its policy.
  3. manage the role-user mappings and role-role mappings (aka role hierarchy in RBAC).
  4. support built-in superuser like root or administrator. A superuser can do anything without explict permissions.
  5. multiple built-in operators to support the rule matching. For example, keyMatch can map a resource key /foo/bar to the pattern /foo*.

What Casbin does NOT do:

  1. authentication (aka verify username and password when a user logs in)
  2. manage the list of users or roles. I believe it's more convenient for the project itself to manage these entities. Users usually have their passwords, and Casbin is not designed as a password container. However, Casbin stores the user-role mapping for the RBAC scenario.