{"repo":"pycasbin/django-orm-adapter","free":true,"listed":false,"github":"https://github.com/pycasbin/django-orm-adapter","clone":"git clone https://github.com/pycasbin/django-orm-adapter.git","description":"Django ORM Adapter for PyCasbin","language":"Python","stars":30,"topics":["casbin","adapter","storage-driver","django","orm","django-orm","access-control","authorization","pycasbin"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Django ORM Adapter for PyCasbin Django ORM Adapter is the Django's ORM adapter for PyCasbin. With this library, Casbin can load policy from Django ORM supported database or save policy to it. Based on Officially Supported Databases, The current supported databases are: - PostgreSQL - MariaDB - MySQL - Oracle - SQLite - IBM DB2 - Microsoft SQL Server - Firebird - ODBC Installation Add casbin adapter.apps.CasbinAdapterConfig to your INSTALLED APPS To run schema migration, execute python manage.py migrate casbin adapter Simple Example Configuration CASBIN MODEL A string containing the file location of your casbin model. CASBIN ADAPTER A string containing the adapter import path. Default to the django adapter shipped with this package: casbin adapter.adapter.Adapter CASBIN ADAPTER ARGS A tuple of arguments to be passed into the constructor of the adapter specified in CASBIN ADAPTER . Refer to adapters to see available arguments. E.g. if you wish to use the file adapter set the adapter to casbin.persist.adapters.FileAdapter and use CASBIN ADAPTER ARGS = ('path/to/policy file.csv',) CASBIN DB ALIAS The database the adapter uses. Default to \"default\". CASBIN WATCHER Watcher instance to be set as the watcher on the enforcer instance. CASBIN ROLE MANAGER Role manager instance to be set as the role manager on the enforcer instance. Getting Help - PyCasbin License This project is licensed under the Apache 2.0 license.","default_branch":null,"files":null,"tree":[],"storefront":"/r/pycasbin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pycasbin/django-orm-adapter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}