NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2681 most downloaded on PyPI
An authorization library that supports access control models like ACL, RBAC, ABAC in Python
Last release 1 years ago
10 May 2025
Release timing varies
gaps range from 2 weeks to 5 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
126 releases · first in 2019
get implicit permissions filter policies domain by matching function
support matching functions to filter policies
One column per quarter.
add glob_match() test cases from Go to Python
ignore policies with domain when get_implicit_permissions_for_user
## 1.10.1 (2021-11-21) ### Bug Fixes * linter bug in test_enforcer.py
port the test case of add_function() example to pycasbin
reimplement default role manager
replace build_role_links with build_incremental_role_links
remove_filtered_policy_returns_effects inconsistent input with remove_filtered_policy
load_policy_line function load error
update simpleeval version to 0.9.11
## 1.9.2 (2021-09-29) ### Bug Fixes * 'keyMatch4' not defined
## 1.9.1 (2021-09-28) ### Bug Fixes * added utf8 encoding
# 1.9.0 (2021-09-25) ### Features * add explicit priority support
## 1.8.1 (2021-09-16) ### Bug Fixes * fm instance property
PyCasbin Watcher interfaces added
support in operator on list/set and other compound types
key_match4 builtin operator added
multiple request, policy, effect, matcher type support
# 1.4.0 (2021-07-19) ### Features * finish up UpdateAdapter
add API for role manager besides "g"
matching_func works with multiply match
add support for add_domain_matching_function
get_implicit_users_for_permission()
start auto loading policy for SyncedEnforcer
function 'keyMatch3' not defined
enforce_ex now works fine when it was disabled
optimized install_requires parsing process
replace fnmatch with wcmatch for glob match, keep same behavior with Go Casbin
## 1.0.4 (2021-04-24) ### Performance Improvements * remove unused variable
r.user.name -> r_user_name instead of r_user.name in ABAC model
wrong domain length judge and bug in build_incremental_role_links()
Custom effectors will need a rewrite
Signed-off-by: Andreas Bichinger andreas.bichinger@gmail.com
Co-authored-by: Andreas Bichinger andreas.bichinger@gmail.com
added distributed enforcer file along with respective unit tests
Added checks in init_with_model_and_adapter in CoreEnforcer
relocate unittest and fix file path
# 0.19.0 (2021-03-18) ### Features * Added dispatcher class
Added code to convert config value to different types
## 0.18.3 (2021-03-12) ### Performance Improvements * refacto & improve performance
## 0.18.2 (2021-03-02) ### Bug Fixes * typo
## 0.18.1 (2021-02-25) ### Performance Improvements * reposition build_role_links()
add AddNamedDomainMatchingFunc and AddNamedMatchingFunc to enforcer
# 0.17.0 (2021-02-19) ### Features * add update_policy()
## 0.16.2 (2021-02-03) ### Performance Improvements * remove duplicated check
role manager with matching_func
add batch api to SyncedEnforcer
# 0.15.0 (2020-12-26) ### Features * add filtered_adapter
# 0.14.0 (2020-12-23) ### Features * add function get_role_manager (7fb1879) * add SyncedEnforcer
add glob pattern matching using fnmatch module
add semantic-release-pypi plugin
# 0.10.0 (2020-11-11) ### Bug Fixes * improve KeyMatch and add tests (f62a2b2) ### Features * support semantic-release
Fix syntax errors on multiline config sentences.
get_implicit_users_for_permission()Built-in file adapter supports save_policy() now.
save_policy() now.Remove tests from setup.py packaging to avoid conflict(#40 ).
Optimize code to improve performance.
Support domain parameters in get_roles() and get_users().
get_roles() and get_users().remove_policy() returns a value of None.Implement the get_implicit_roles_for_user and get_implicit_permissions_for_user.
get_implicit_roles_for_user and get_implicit_permissions_for_user.add_role_for_user_in_domain and delete_roles_for_user_in_domain.remove_filtered_policy() to Policy.Change the class attributes in the Assertion to an object attributes. (Fixed #23)
Added the remove_policy function.
Fix the bug that Casbin modified global logging settings (#17) .
Your coding agent can read these notes before it upgrades. Set up the MCP server →