{"categories":[{"label":"Security","url":"https://skillfed.io/packages/category/security"}],"enrichment":{"capability":"cedarpy binds the Cedar Policy authorization engine to Python, letting you evaluate access-control policies and validate them against schemas from Python code.","skillfed_tags":["authorization","access-control","policy-engine"],"use_cases":["Enforce fine-grained access control in a web service by evaluating Cedar policies against incoming requests before granting access to resources.","Batch-authorize a set of user actions in a single call to avoid the overhead of parsing policies and entities repeatedly.","Validate a policy file against a schema at deployment time to catch syntax and type errors before policies go live.","Reuse a static policy set across many authorization requests in a long-running service or Lambda function, avoiding repeated parsing.","Add dynamic per-request policies to a static base policy set without re-parsing the entire base each time."],"what_it_does":"cedarpy is a Python wrapper around the Cedar Policy authorization engine, a Rust-based policy evaluator developed by AWS. It lets you define fine-grained access-control policies in Cedar's domain-specific language, then evaluate authorization requests against those policies and a schema from Python. The package supports three main workflows: checking whether a single request is authorized, validating policies against a schema, and formatting policies.\n\nThe library is designed for performance in long-running services and serverless functions. It offers batch authorization (evaluating many requests against shared policies in one call, often 10x faster than individual calls), reusable PolicySet handles to avoid re-parsing static policies on every request, and optional per-request policy fragments layered on top of a static base. It has no runtime dependencies and is available as pre-built wheels for modern Python versions and common platforms.","worth_installing":"Yes, if you need Cedar's policy language and evaluation engine in Python. The package is actively maintained, has no known vulnerabilities, covers modern Python versions and common platforms with pre-built wheels, and offers both single-request and batch authorization with performance optimizations for static policies. License treatment is unclear, so verify licensing terms before use in commercial projects."},"id":"cedarpy","links":{"html":"https://skillfed.io/packages/cedarpy","md":"https://skillfed.io/packages/cedarpy.md","pypi":"https://pypi.org/project/cedarpy/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-10","license_spdx":null,"license_treatment":"unclear","name":"cedarpy","python_support":"supports_current","summary":null},"popularity":{"monthly_downloads":669604,"position":5412,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.8.7"}
