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
watchlightpackage, the Developer Edition with an ergonomic decorator API. Thiswatchlight-enginepackage 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
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| watchlight_engine-0.2.1-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| watchlight_engine-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| watchlight_engine-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| watchlight_engine-0.2.1-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| watchlight_engine-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 13.1 MB
Release files / watchlight_engine-0.2.1-cp39-abi3-win_amd64.whl
| Download URL | watchlight_engine-0.2.1-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 2.8 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
818caa5522902152bdf46e19fd4140eacbefe5a90fd1925ca94fa43413c433aa
|
|
BLAKE2b-256 checksum How to use checksums |
38b07da114863a69347ce958420709ce151a8ea55a055ce26ba4592916faedab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 12, 2026.
Transparency logRelease files / watchlight_engine-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | watchlight_engine-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
89a264702d3e64bacfc741212a448aee1d46cb1cffd8f1458d0504d0721c4052
|
|
BLAKE2b-256 checksum How to use checksums |
6e73a310a114b074607ab8ee4a46ffecc22e13b74095a79f1ed8ba250d6754df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 12, 2026.
Transparency logRelease files / watchlight_engine-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | watchlight_engine-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
366b410c5296d59e4f49d83222f700533627e59e14fd156340f796f7077e0b92
|
|
BLAKE2b-256 checksum How to use checksums |
622b1ec7bc9188b5a98347d022a841d08a2ccdaf0316481f6b4f51531f0ac515
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 12, 2026.
Transparency logRelease files / watchlight_engine-0.2.1-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | watchlight_engine-0.2.1-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8149aaf4ee14423104cb200724fa0bdc8a4e537fa22473f11f4f3861caf57bed
|
|
BLAKE2b-256 checksum How to use checksums |
4e02905387d7909ebddc30bd62f3798e2ddffcb72300f2b1769161cf356c685f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 12, 2026.
Transparency logRelease files / watchlight_engine-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | watchlight_engine-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
74237abb60909f77128edb3c85a0b059894b21accd6b02fc09a45988bf20508f
|
|
BLAKE2b-256 checksum How to use checksums |
7c71369a0249e9d6ef91485190f908e78e95ce4c5bb94084e863c5d1b6a00ef0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 12, 2026.
Transparency log