Skip to main content

The SDK for OpenGPL policy files — enforcement, authoring, and testing

Project description

opengpl-sdk

The Python SDK for OpenGPL policy enforcement.

Install

pip install opengpl-sdk

Quick start

from opengpl import PolicyEngine

engine = PolicyEngine("policy.gpl")
result = engine.check_input("Hello, what is my balance?")
print(result.passed)  # True or False

CLI

opengpl validate policy.gpl
opengpl eval policy.gpl --prompt "what is my balance?"
opengpl audit policy.gpl --framework FedRAMP-Moderate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opengpl_sdk-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opengpl_sdk-0.1.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file opengpl_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: opengpl_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for opengpl_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dc0abd6bb79e6236eca42e1e9f8fcd3ea7f3e95111bef518fb677979755c9691
MD5 d5bf910226c4d62bba88af247b1ca670
BLAKE2b-256 1fd81646f5576196a4777b3b339b0c619380a39eaf673bb021321f73170c9876

See more details on using hashes here.

File details

Details for the file opengpl_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: opengpl_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for opengpl_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5858727e1e4b4f7943b389f1c4673c093a28d6450b8c4ae10c591e1f855ccc1c
MD5 1b861d270936efa179d3389abfe9be6e
BLAKE2b-256 563bae7c209eeda5889d2f942ef7e10262a836c846dba435966f990d023cab3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page