Skip to main content

Official Python bindings for logicpearl-engine.

Project description

logicpearl

Official Python bindings for logicpearl-engine.

Use this package when:

  • Python code needs to execute a pearl artifact or pipeline directly
  • you want a real bridge to the Rust execution surface
  • you do not want to shell out to the CLI for every request

Do not use it as a reason to bake observers into pearls. The intended split is still:

  • observer/plugin: messy input interpretation
  • pearl: deterministic policy artifact
  • verify/response: operational interpretation

Example

from logicpearl import LogicPearlEngine

engine = LogicPearlEngine.from_path("examples/pipelines/observer_membership_verify/pipeline.json")
result = engine.run({
    "age": 34,
    "member": True,
    "country": "US",
})

print(result["mode"])
print(result["kind"])

Scope

This package currently exposes local execution through logicpearl-engine.

It is:

  • not a service client yet
  • not a reimplementation of runtime semantics in Python
  • not a wrapper around logicpearl CLI subprocess calls

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

logicpearl-0.1.2.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

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

logicpearl-0.1.2-cp39-abi3-macosx_11_0_arm64.whl (620.1 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file logicpearl-0.1.2.tar.gz.

File metadata

  • Download URL: logicpearl-0.1.2.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for logicpearl-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c52a00c0ca57b905b503d22cfeea4f6973cf68a619eaa522039cd2b7c8f00bc7
MD5 3d24b33c5c23648271f9020750455f16
BLAKE2b-256 7bd12b7c250e0eb0b0b9a56af723bb4097c1c8e209007f60fe7c5f5fb74860d2

See more details on using hashes here.

File details

Details for the file logicpearl-0.1.2-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for logicpearl-0.1.2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8777fbc103f67d8ddb27314ce83f1169e485be26d2ac765174cfebdbac29a631
MD5 b8c0b38621b567b63c04997aebc9169e
BLAKE2b-256 7fa28a056a502f751971a468029a446c70538dc04b7d625e6e282a212378e123

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