Skip to content

add_function can support both async and sync; add await enforce.enfor…#381

Closed
Chimou0 wants to merge 349 commits intoapache:masterfrom
Chimou0:feature/support-async-matcher
Closed

add_function can support both async and sync; add await enforce.enfor…#381
Chimou0 wants to merge 349 commits intoapache:masterfrom
Chimou0:feature/support-async-matcher

Conversation

@Chimou0
Copy link
Copy Markdown
Contributor

@Chimou0 Chimou0 commented Jul 11, 2025

add_function can support both async and sync; add await enforce.enforce() #342

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jul 11, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
18 out of 19 committers have signed the CLA.

✅ BustDot
✅ amisadmin
✅ nschwane
✅ premac
✅ Chimou0
✅ felixlu
✅ tanasecucliciu
✅ nomeguy
✅ mbierma
✅ hsluoyz
✅ abichinger
✅ LeTeddy
✅ barret-yzh
✅ HashCookie
✅ leeqvip
✅ huonw
✅ KoNEW
✅ truc0
❌ semantic-release-bot
You have signed the CLA already but the status is still pending? Let us recheck it.

@Chimou0 Chimou0 closed this Jul 13, 2025
@Chimou0 Chimou0 deleted the feature/support-async-matcher branch July 13, 2025 02:39
@Chimou0 Chimou0 restored the feature/support-async-matcher branch July 13, 2025 15:09
@Chimou0 Chimou0 reopened this Jul 13, 2025
Carme, Pamy and others added 25 commits July 17, 2025 13:49
Signed-off-by: Carme, Pamy <pamy.carme@sciencelogic.com>
Signed-off-by: Jon Lee <techlee@qq.com>
Signed-off-by: Andreas Bichinger <andreas.bichinger@gmail.com>
## [0.16.1](apache/casbin-pycasbin@v0.16.0...v0.16.1) (2021-01-29)

### Bug Fixes

* role manager with matching_func ([8079cda](apache@8079cda))
* perf: remove duplicated check

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

* perf: remove duplicated check

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
## [0.16.2](apache/casbin-pycasbin@v0.16.1...v0.16.2) (2021-02-03)

### Performance Improvements

* remove duplicated check ([apache#117](apache#117)) ([6aebadf](apache@6aebadf))
Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

feat: further development on update_policy()

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

refactor: adjust to Python-style variable naming

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

feat: add update_policies()

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

feat: add unittest for update_policies()

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

refactor: remove adapter check

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

refactor: remove duplicated check

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
# [0.17.0](apache/casbin-pycasbin@v0.16.2...v0.17.0) (2021-02-19)

### Features

* add update_policy() ([7f7d26f](apache@7f7d26f))
…rcer (apache#122)

* feat: add AddNamedDomainMatchingFunc and AddNamedMatchingFunc to enforcer

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

* refactor: remove log output

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

* refactor: rename rm to rmMap

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

* style: format

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

* refactor: rename to python-style variable

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>

* refactor: remove unnecessary statements

Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
# [0.18.0](apache/casbin-pycasbin@v0.17.0...v0.18.0) (2021-02-23)

### Features

* add AddNamedDomainMatchingFunc and AddNamedMatchingFunc to enforcer ([apache#122](apache#122)) ([e01f393](apache@e01f393))
Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
## [0.18.1](apache/casbin-pycasbin@v0.18.0...v0.18.1) (2021-02-25)

### Performance Improvements

* reposition build_role_links() ([396ef7a](apache@396ef7a))
Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
Signed-off-by: Romain Arnal <romain.arnal@sewan.fr>
## [0.18.3](apache/casbin-pycasbin@v0.18.2...v0.18.3) (2021-03-12)

### Performance Improvements

* refacto & improve performance ([ff7f288](apache@ff7f288))
Signed-off-by: divyagar <divyagarg2601@gmail.com>
## [0.18.4](apache/casbin-pycasbin@v0.18.3...v0.18.4) (2021-03-17)

### Performance Improvements

* Added code to convert config value to different types ([c87fdfa](apache@c87fdfa))
Signed-off-by: divyagar <divyagarg2601@gmail.com>
# [0.19.0](apache/casbin-pycasbin@v0.18.4...v0.19.0) (2021-03-18)

### Features

* Added dispatcher class ([5c4a992](apache@5c4a992))
Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
## [0.19.1](apache/casbin-pycasbin@v0.19.0...v0.19.1) (2021-03-18)

### Bug Fixes

* relocate unittest and fix file path ([5ed07b2](apache@5ed07b2))
Signed-off-by: divyagar <divyagarg2601@gmail.com>
semantic-release-bot and others added 28 commits July 17, 2025 13:50
# [1.35.0](apache/casbin-pycasbin@v1.34.0...v1.35.0) (2024-01-11)

### Features

* support up to Python 3.12 ([6dea204](apache@6dea204))
# [1.36.0](apache/casbin-pycasbin@v1.35.0...v1.36.0) (2024-02-09)

### Features

* Added support for async watcher callbacks [apache#340](apache#340) ([apache#341](apache#341)) ([c04d832](apache@c04d832))
Co-authored-by: mbierma <3448579-mbierma@users.noreply.gitlab.com>
## [1.36.1](apache/casbin-pycasbin@v1.36.0...v1.36.1) (2024-05-21)

### Bug Fixes

* FastEnforcer not fast ([apache#344](apache#344)) ([8aef43b](apache@8aef43b))
…pache#346)

* fix: field_index is incorrect in RBAC with domains mode (apache#345)

* chore: replace field name with constant in ManagementEnforcer
## [1.36.2](apache/casbin-pycasbin@v1.36.1...v1.36.2) (2024-06-11)

### Bug Fixes

* field_index is incorrect in RBAC with domains mode ([apache#345](apache#345)) ([apache#346](apache#346)) ([9f6a379](apache@9f6a379))
## [1.36.3](apache/casbin-pycasbin@v1.36.2...v1.36.3) (2024-06-24)

### Bug Fixes

* KeyError: 'g' when build_role_links ([bf9cb44](apache@bf9cb44))
…licies and roles (apache#360)

* feat: optimize filtered file adapter policy loading

* style: standardize whitespace and formatting in filtered_file_adapter.py

* feat: add test

* test: improve test_load_filtered_policy_with_comments in test_filter.py

* test: update test description for mixed filter
# [1.37.0](apache/casbin-pycasbin@v1.36.3...v1.37.0) (2024-11-25)

### Features

* enhance FilteredFileAdapter to handle flexible filtering for policies and roles ([apache#360](apache#360)) ([936d5f6](apache@936d5f6))
# [1.38.0](apache/casbin-pycasbin@v1.37.0...v1.38.0) (2025-01-12)

### Features

* add StringAdapter's statement in init.py ([apache#367](apache#367)) ([bf84eed](apache@bf84eed))
# [1.39.0](apache/casbin-pycasbin@v1.38.0...v1.39.0) (2025-03-11)

### Features

* Port get_allowed_object_conditions() from Golang to Python ([apache#373](apache#373)) ([c433a59](apache@c433a59))
# [1.40.0](apache/casbin-pycasbin@v1.39.0...v1.40.0) (2025-03-13)

### Features

* fix bug that "!=" in policies is replaced with "not=" ([apache#375](apache#375)) ([54208b6](apache@54208b6))
# [1.41.0](apache/casbin-pycasbin@v1.40.0...v1.41.0) (2025-03-15)

### Features

* add "logging_config" for PyCasbin logging ([apache#376](apache#376)) ([f39ace2](apache@f39ace2))
# [1.42.0](apache/casbin-pycasbin@v1.41.0...v1.42.0) (2025-04-21)

### Features

* fix missing await in load_increment_filtered_policy() in async_internal_enforcer.py ([apache#378](apache#378)) ([ca26402](apache@ca26402))
# [1.45.0](apache/casbin-pycasbin@v1.44.0...v1.45.0) (2025-06-07)

### Features

* Optimize `load_policy_line` to avoid quadratic individual-character loop ([apache#355](apache#355)) ([d3149e8](apache@d3149e8))
@Chimou0 Chimou0 force-pushed the feature/support-async-matcher branch from 647834e to 28219c6 Compare July 17, 2025 09:59
@Chimou0 Chimou0 closed this Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.