{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/14"}],"enrichment":{"capability":"regopy wraps the Open Policy Agent's Rego language compiler and runtime, letting you write and execute Rego policy queries directly from Python code.","skillfed_tags":["policy-as-code","opa","declarative-rules"],"use_cases":["Embed policy evaluation in Python microservices to enforce authorization rules or compliance checks without external API calls.","Build configuration validation tools that use declarative Rego rules to check infrastructure or application settings.","Implement access control logic in Python applications by writing Rego policies and querying them with user/resource context.","Integrate OPA-compatible policies into Python data pipelines for dynamic filtering or transformation rules.","Prototype and test Rego policies in a Python environment before deploying them to a full OPA instance."],"what_it_does":"regopy is a Python wrapper around rego-cpp, Microsoft's open-source C++ implementation of the Rego language from the Open Policy Agent project. Rego is a declarative query language designed for policy evaluation and data querying. The package lets you instantiate a Rego interpreter in Python, load policy modules, set input and data contexts, and execute queries that return structured results with variable bindings.\n\nYou can use regopy to embed policy-as-code evaluation into Python applications\u2014defining rules in Rego syntax, then querying them from Python with dynamic input and data. The wrapper provides idiomatic Python interfaces: you load modules as strings, set input and data via dictionaries, and receive results as JSON-like objects. It also supports building and executing pre-compiled Rego bundles, useful for performance-sensitive deployments.","worth_installing":"Yes, if you need to run Rego policies from Python. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and provides prebuilt wheels for common platforms. Medium install friction is typical for compiled packages and not a barrier. Start with it if you're already using or planning to adopt Rego for policy evaluation."},"id":"regopy","links":{"html":"https://skillfed.io/packages/regopy","md":"https://skillfed.io/packages/regopy.md","pypi":"https://pypi.org/project/regopy/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-06","license_spdx":null,"license_treatment":"permissive","name":"regopy","python_support":"supports_current","summary":"Python interface for the OPA Rego Language and Runtime"},"popularity":{"monthly_downloads":185354,"position":10011,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.5.2"}
