Skip to main content

watchlight-engine

The in-process authorization engine behind Watchlight Developer Edition.

watchlight-engine lets a Python agent make a real authorization decision — ALLOW / DENY — for a tool call, in-process, with zero infrastructure: no database, no network, no sidecar. It ships as a prebuilt, self-contained compiled wheel.

Most developers want the watchlight package, the Developer Edition with an ergonomic decorator API. This watchlight-engine package is the lower-level engine it embeds — install it directly only if you are building on the engine yourself.

Install

pip install watchlight-engine

Prebuilt wheels are provided for Linux (x86_64, aarch64), macOS (Apple Silicon and Intel), and Windows (x64), for CPython 3.9 and newer. No Rust toolchain is required.

Quickstart

import watchlight_engine

engine = watchlight_engine.PolicyEngine()
assert engine.ready()

# Load a policy, then authorize a request — a real decision, in-process.
engine.add_policy(policy_json)
decision = engine.authorize(request_json)
print(decision)   # -> Allow / Deny with the governing reason

When a policy is refused

add_policy refuses a policy whose @enforcement_effect annotation the engine cannot honour: an effect value it does not implement, or an annotation name that is a near miss for enforcement_effect (such as @enforcement_efect). It raises watchlight_engine.PolicyAnnotationError, which is a ValueError, and does not load the policy. The exception has a .code, which is one of watchlight_engine.POLICY_ANNOTATION_ERROR_CODES (UNRECOGNISED_ENFORCEMENT_EFFECT or ENFORCEMENT_EFFECT_NAME_NEAR_MISS), and a .policy_id naming the refused policy. Any other refusal raises a different exception.

try:
    engine.add_policy(policy_json)
except watchlight_engine.PolicyAnnotationError as err:
    print(err.code, err.policy_id)

See the Watchlight documentation for policy and request shapes, and the Developer Edition guide for the full workflow.

What you get

  • A real, in-process policy decision — the same authorization engine that powers the Watchlight platform, embedded so you can enforce governance without standing up any services.
  • Fail-closed by design: ambiguity denies.
  • A single prebuilt wheel per platform — install and go.

Developer Edition vs. Enterprise

The Developer Edition is for building and evaluating locally. The full Watchlight platform adds the governed control plane — centralized policy, tamper-evident lineage and audit, runtime enforcement across your fleet, drift and anomaly detection, secrets brokering, and the operator dashboard. See watchlight.ai to learn more.

License

Proprietary — licensed software, not open source. Copyright © Watchlight AI, LLC. All rights reserved.

The Developer Edition license lets you install and use watchlight-engine free of charge, including in production and commercially. A commercial license is required only to provide the engine itself to third parties as a hosted, managed, or embedded authorization service — contact legal@watchlight.ai. Redistribution, reverse-engineering, and sublicensing are not permitted. See the bundled LICENSE for the full terms.

Metadata

Release files for watchlight-engine 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for watchlight-engine 0.2.5
File Actions
watchlight_engine-0.2.5-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for watchlight_engine-0.2.5-cp39-abi3-win_amd64.whl
watchlight_engine-0.2.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for watchlight_engine-0.2.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
watchlight_engine-0.2.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for watchlight_engine-0.2.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
watchlight_engine-0.2.5-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for watchlight_engine-0.2.5-cp39-abi3-macosx_11_0_arm64.whl
watchlight_engine-0.2.5-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for watchlight_engine-0.2.5-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 16.0 MB

Release files / watchlight_engine-0.2.5-cp39-abi3-win_amd64.whl

Download URL watchlight_engine-0.2.5-cp39-abi3-win_amd64.whl
Size 3.4 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
444fc8d4f2c335e32d3c5960218b4d899522e2928bf4e463dfa8b49b75ce3174
BLAKE2b-256 checksum
How to use checksums
866f8221ee4f77885cfa1de7881c7822814c5d6118ceb775ca992eef46eb2e17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / watchlight_engine-0.2.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL watchlight_engine-0.2.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 3.3 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
110410cc0e18ea744d0ef1ee6f237724ef500c33dc07377c27af629ec0d00d47
BLAKE2b-256 checksum
How to use checksums
d7ab73a85d4741572b6c084f653dfeff27ef744389a9899676aa5bbeb08ad8b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / watchlight_engine-0.2.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL watchlight_engine-0.2.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 3.1 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
aeba36355a4299f34bb4dc0eb06025f5cf3f82b95127fbe2a22bc65acddc0c87
BLAKE2b-256 checksum
How to use checksums
d12b71ca462d55669395659a0827a8aa28e791fc47594df54a0dcd57ec5704ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / watchlight_engine-0.2.5-cp39-abi3-macosx_11_0_arm64.whl

Download URL watchlight_engine-0.2.5-cp39-abi3-macosx_11_0_arm64.whl
Size 3.0 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
974f7c2bca85fb005f8dd2bea92a38f301ef5939e1de55baec3c31d69196afa2
BLAKE2b-256 checksum
How to use checksums
438a1cf88b22c8a5a6bd14f8033947be29e14ffcb0b3308f8ca125c5c2f6f909
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / watchlight_engine-0.2.5-cp39-abi3-macosx_10_12_x86_64.whl

Download URL watchlight_engine-0.2.5-cp39-abi3-macosx_10_12_x86_64.whl
Size 3.2 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
30d60ef86aa3edb0c6c265534eb98a6023b53a350481e8205164f705a9ac8b92
BLAKE2b-256 checksum
How to use checksums
018a400f845d7ea2d19945e503ddaa95e398512dfb0945ec38d87a5d6caec880
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for watchlight-engine 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for watchlight_engine-0.2.5-cp39-abi3-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page