Skip to main content

theaios-core

Shared foundations of the theaios libraries. You do not need to install it yourself: theaios-guardrails, theaios-context-router, theaios-agent-monitor and theaios-agent-auth depend on it.

It exists so that security-sensitive code lives in one place instead of four copies.

What is inside

Module What it does
theaios.core.expressions The safe condition language used in policy files (action == "send_email" and recipient.domain != $company_domain). No eval(), no code execution. Limits: 10,000 characters and 64 levels of nesting; and / or chains of any length.
theaios.core.env ${VAR} interpolation for config files, with an optional ${VAR:default} form.
theaios.core.audit Append-only JSONL logs, optionally hash-chained so that any edit or deletion is detectable.
from theaios.core.expressions import compile_expression, evaluate

rule = compile_expression('amount > 1000 and currency in ["EUR", "USD"]')
evaluate(rule, {"amount": 4800, "currency": "EUR"})  # True
python -m theaios.core.audit verify .guardrails_audit/audit.jsonl

Compatibility

The expression language is the one the four libraries already used; their existing test suites pass unchanged against this package. The only difference: input over the limits above now raises ExpressionError instead of failing with a Python RecursionError.

License

Apache 2.0. See LICENSE.

Metadata

Release files for theaios-core 0.1.0

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

Source distribution (sdist)

Source distribution for theaios-core 0.1.0
File Size Uploaded Provenance Actions
theaios_core-0.1.0.tar.gz 20.9 kB Without provenance Details for theaios_core-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for theaios-core 0.1.0
File Interpreter ABI Platform Actions
theaios_core-0.1.0-py3-none-any.whl Python 3 none any Details for theaios_core-0.1.0-py3-none-any.whl

Total release size: 35.6 kB

Release files / theaios_core-0.1.0.tar.gz

Download URL theaios_core-0.1.0.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
db25f7d6476071fb3eed84fc8863ce0f2bd50ce53d65336c1d9be2c2d628ef1b
BLAKE2b-256 checksum
How to use checksums
142ad1973994c50d801393f2f04703e368539c92c7d11aac19df6a2117df47a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / theaios_core-0.1.0-py3-none-any.whl

Download URL theaios_core-0.1.0-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
265fdafc250afaa2413d8c33ba6efdf4ca3113962d4ae775f5c7b02ce9150cba
BLAKE2b-256 checksum
How to use checksums
b7f490a2269a1db2dfb0689082eb2f00fdad0974e84dfba6b0b6ef33e3159c90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for theaios-core 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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