Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added python bindings for casbin::Enforcer #128

Merged
merged 2 commits into from
Jul 30, 2021

Conversation

EmperorYP7
Copy link
Member

@EmperorYP7 EmperorYP7 commented Jul 26, 2021

Fixes #84 partially

Signed-off-by: Yash Pandey (YP) yash.btech.cs19@iiitranchi.ac.in


Description

This code:

  • Adds casbin::Enforcer definitions in python bindings.
    • The bindings are compiled into pycasbin.so file in UNIX and pycasbin.pyd in Windows.
    • This file can now be added into the PATH variable and can be imported directly in Python.
  • Configures the build system to compile targets with -fPIC flag

Signed-off-by: Yash Pandey (YP) <yash.btech.cs19@iiitranchi.ac.in>
Signed-off-by: Yash Pandey (YP) <yash.btech.cs19@iiitranchi.ac.in>
@EmperorYP7 EmperorYP7 marked this pull request as ready for review July 30, 2021 07:50
@hsluoyz hsluoyz merged commit cf72f4b into casbin:master Jul 30, 2021
@github-actions
Copy link

🎉 This PR is included in version 1.29.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@EmperorYP7 EmperorYP7 deleted the enforcer-binding branch August 7, 2021 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python bindings to facilitate PyCasbin-on-CPP
2 participants