Skip to content
Toolchain · v0.9.0 · UTF-8 source · six-tier governance stack

Install Thirsty-Lang

The official toolchain for the Thirsty-Lang governance language. Install with pip and evaluate programs from the thirsty CLI.

Quick start

One command gets you the interpreter, the checker, the Shadow → Canonical compiler, the thirsty CLI, and the tarl policy engine.

$ pip install thirsty-lang==0.9.0
$ thirsty run hello.thirsty

Live now: package thirsty-lang on PyPI (Thirsty-Lang v0.9.0), with the thirsty and tarl CLIs. Requires Python 3.11+. License Apache-2.0 · Thirsty's Projects LLC. Source on GitHub.

Installation methods

pip (PyPI)

The reference toolchain ships as a Python package. Installs the `thirsty` CLI, the T.A.R.L. policy engine (`tarl`), and the higher-tier tools.

$ pip install thirsty-lang

Live on PyPI. Requires Python 3.11+.

$ pip install thirsty-lang==0.9.0

Pin the verified PyPI release.

$ thirsty run hello.thirsty

Evaluate a program.

pipx (isolated)

Install the CLIs in an isolated environment so they never collide with project dependencies.

$ pipx install thirsty-lang

Isolated, globally-available `thirsty` + `tarl`.

$ thirsty --help

List commands.

From source

Build from the official repository — pinned interpreter, full test suite, and the formal-tools (TLA+, Alloy) used for verification.

$ git clone https://github.com/IAmSoThirsty/Thirsty-lang.git

Clone the source.

$ cd Thirsty-lang

Enter the checkout.

$ git checkout b09bbfc3dda4654cca2e9872423460667eed9498

Use the reviewed Python release; the default branch may be older.

$ pip install -e .

Editable install.

$ python -m pytest tests/ -q

Run the validation suite.

hello.thirsty
module hello: core

glass greet(name) {
  return "hello, " + name + "!"
}

pour greet("governed world")

Your first program

Save the program as hello.thirsty and evaluate it. This core-mode example prints a greeting. Governed effects additionally require policy and authority; durable audit recording must be explicitly configured.

$ thirsty run hello.thirsty
hello, governed world!

CLI reference

The thirsty command is the entry point for the whole toolchain.

CommandDescription
thirsty run <file.thirsty>Run a core or governed program according to its declared mode.
thirsty fmt <file.thirsty>Format source to the canonical style.
thirsty build <file> --target jsBuild to a JS target (or wasm-pyodide).
thirsty prove <file> --policy p.tarl --emit-manifestStatic proof-obligation report — no side effects executed.
thirsty explain-denial <file> --policy p.tarlMachine-readable explanation of missing policy, context, authority, or proof.
thirsty govern <file>Run under the governed execution path.
tarl eval <policy.tarl> --context '{"role":"admin"}'Evaluate a T.A.R.L. policy against a context.
tarl verify <proof.json> --ed25519-onlyVerify a proof certificate (rejects unsigned by default).
tarl audit verify-chain <audit.db>Verify the hash-linked audit chain.

The 6-tier governance model

The Universal Thirsty Family has six language and tooling layers: Thirsty-Lang, Thirst of Gods, T.A.R.L., Shadow Thirst, TSCG, and TSCG-B. These are distinct from Project-AI authority classes.

💧Thirsty-Lang

Lexer, parser, checker, interpreter, formatter, CLI, module system, JS build target, contracts, core syntax.

Thirst of Gods

Object-oriented, async (cascade), and structured-error validation over the real AST.

🛡️T.A.R.L.

Policy-as-code, proof-carrying dispositions, temporal rules, composition, audit hooks.

🌑Shadow Thirst

Mutation analysis, determinism checks, plane isolation, purity, promotion blocking.

🧬TSCG

Symbolic constraint grammar with canonicalized constraint expressions.

📡TSCG-B

Binary frame protocol with CRC32 and SHA-256 integrity checks.

Status & requirements
  • Python 3.11+ for the pip/pipx toolchain. Package metadata classifies it as Alpha.
  • The browser playground runs a teaching subset with no install required; it does not execute the Python package.
  • LIVE The packaged toolchain is published on PyPI at v0.9.0. Container availability must be checked separately; no matching container release is claimed here.