{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/3"}],"enrichment":{"capability":"Connects PyCasbin access control policies to SQLAlchemy-supported databases, allowing policies to be loaded from and persisted to PostgreSQL, MySQL, SQLite, Oracle, SQL Server, Firebird, or Sybase.","skillfed_tags":["access-control","policy-storage","rbac-abac"],"use_cases":["Store RBAC (role-based access control) rules in PostgreSQL for a multi-tenant SaaS application where policies change frequently.","Persist ABAC (attribute-based access control) policies in SQLite for a desktop application that needs offline policy evaluation.","Load access control lists from an existing Oracle database to enforce fine-grained permissions in a legacy system migration.","Implement soft-delete auditing of permission changes by marking rules as deleted while preserving a historical record.","Centralize authorization policy management across microservices by storing all rules in a shared MySQL database."],"what_it_does":"This package bridges PyCasbin (a flexible access control library) and SQLAlchemy, letting you store and retrieve authorization policies in any database that SQLAlchemy supports. Instead of keeping policies in memory or in a static file, you define your access control model in Casbin's configuration format and let this adapter handle reading and writing rules to your database of choice\u2014PostgreSQL, MySQL, SQLite, Oracle, SQL Server, Firebird, or Sybase.\n\nYou instantiate an Adapter with a database connection string, pass it to a Casbin Enforcer along with your model configuration, and then use Casbin's standard enforce() method to check whether a subject (user) can perform an action on an object (resource). The adapter also supports soft-delete semantics if you need to mark rules as deleted without removing them from the database, though you must implement the deletion timestamp logic yourself.","worth_installing":"Yes, if you are already using PyCasbin and need to persist policies in a relational database. The low install friction, permissive license, and broad database support make it a straightforward choice for that use case. However, note that maintenance is dormant (no release in 767 days), so if you encounter bugs or need features, you may need to fork or patch it yourself. No known vulnerabilities as of the query date."},"id":"casbin-sqlalchemy-adapter","links":{"html":"https://skillfed.io/packages/casbin-sqlalchemy-adapter","md":"https://skillfed.io/packages/casbin-sqlalchemy-adapter.md","pypi":"https://pypi.org/project/casbin-sqlalchemy-adapter/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-07-08","license_spdx":null,"license_treatment":"permissive","name":"casbin-sqlalchemy-adapter","python_support":"supports_current","summary":"SQLAlchemy Adapter for PyCasbin"},"popularity":{"monthly_downloads":400666,"position":6936,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4.0"}
