FactLang is a small language for facts about data: joins, nulls, counts, allowed values, freshness. Each line compiles to read-only SQL for your warehouse and comes back as a verdict, with the measured numbers and the exact query as evidence.
pip install factlang no dependencies in the core
JOIN orders.customer_id -> customers.id CARD N:1 MATCH >=99%
NULLS customers.email RATE <=5%
VALUES orders.status IN ['paid', 'open', 'shipped']
COUNT orders VALUE ==1400 WHERE status = 'paid'
SUM orders.amount VALUE ==209000 TOLERANCE 1%
AVG orders.amount VALUE ==100 WHERE status = 'lost'