Python SDK for the Aethelgard AI Compliance & Fairness Verification Engine — formal proofs, not statistical guesses.
Project description
Aethelgard Python SDK
Enterprise AI Compliance & Fairness Verification — Formal Proofs, Not Statistical Guesses.
Aethelgard is the only AI governance engine that uses Z3 SMT formal verification to mathematically prove fairness compliance — not merely estimate it statistically. This SDK provides a Python client for the Aethelgard Engine API.
Why Aethelgard?
| Capability | Fairlearn / AIF360 | Aethelgard |
|---|---|---|
| Evidence Type | Statistical p-values | Z3 formal proofs (deterministic) |
| Intersectional Analysis | Manual specification | Exhaustive automatic discovery |
| Regulations | None built-in | 6 frameworks (LL144, EU AI Act, SR 11-7, Colorado, FDA, Texas TRAIGA) |
| Confidence Intervals | Wilson CI only | Wilson CI + Z3 uncertainty-aware verification |
| Remediation | None | Automated minimum-cost remediation plans |
| Monitoring | None | Real-time drift detection with breach forecasting |
| Legal Protection | None | Attorney-client privilege safe harbor |
| Throughput | ~100 rec/s (Python) | 1.23 billion rec/s (Rust engine) |
Installation
pip install aethelgard
For benchmarking utilities:
pip install aethelgard[benchmarks]
Quick Start
from aethelgard import AethelgardClient
client = AethelgardClient(
base_url="http://localhost:8080",
api_key="your-api-key",
)
# Run a bias audit (NYC LL144 / EEOC Four-Fifths Rule)
result = client.audit_ll144(
model_name="hiring-model-v2",
groups=[
{"category": {"category_type": "Race", "value": "White"}, "total_candidates": 1000, "selected_candidates": 600},
{"category": {"category_type": "Race", "value": "Black"}, "total_candidates": 800, "selected_candidates": 440},
{"category": {"category_type": "Race", "value": "Hispanic"}, "total_candidates": 600, "selected_candidates": 300},
],
)
for group in result["group_results"]:
print(f"{group['group']:20s} IR={group['impact_ratio']:.4f} Z3={group['z3_verified']}")
Supported Regulations
| Regulation | Method | Jurisdiction |
|---|---|---|
| NYC Local Law 144 | client.audit_ll144() |
New York City |
| EU AI Act (Art 9-15) | client.audit_eu_ai_act() |
European Union |
| Federal Reserve SR 11-7 | client.audit_sr117() |
US Banking |
| Colorado AI Act (SB 205) | client.audit_colorado() |
Colorado |
| FDA 21 CFR 820 | client.audit_fda() |
US Medical Devices |
| Texas TRAIGA (HB 149) | client.audit_texas_traiga() |
Texas |
Key Features
Formal Verification (Z3 SMT Proofs)
Every audit produces machine-checkable mathematical proofs — not statistical estimates.
Intersectional Analysis
Automatically discovers and tests all combinatorial demographic intersections.
Multi-Regulation Crosswalk
Map compliance findings across frameworks (e.g., LL144 → EU AI Act → NIST AI RMF).
Zero-Knowledge Proofs
Prove fairness compliance without revealing model weights or training data.
Continuous Monitoring
Real-time drift detection with confidence-weighted alerts and breach forecasting.
API Reference
See the full documentation.
Benchmarks
Reproducible benchmarks comparing Aethelgard to Fairlearn, AIF360, and manual auditing across 10 real-world datasets (40K+ to 2.5M+ records):
pip install aethelgard[benchmarks]
python -m aethelgard.benchmarks
Citation
@software{aethelgard2026,
author = {Ashuraliyev, Abduxoliq},
title = {Aethelgard: Formal Verification for AI Fairness Compliance},
year = {2026},
url = {https://github.com/ProgrmerJack/Aethelgard},
}
License
Apache License 2.0. See LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aethelgard_ai-1.0.0.tar.gz.
File metadata
- Download URL: aethelgard_ai-1.0.0.tar.gz
- Upload date:
- Size: 215.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f16d96ed97d6d5344353ce5d1b2f8ff1d33f3767ba52bfec87614e24413d37a8
|
|
| MD5 |
808784206584693ae4e75dc208758533
|
|
| BLAKE2b-256 |
111b3a99712ab00e9eaf7e74cae4343b7b9a75bb782324f8a169937bc0990d4c
|
File details
Details for the file aethelgard_ai-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aethelgard_ai-1.0.0-py3-none-any.whl
- Upload date:
- Size: 218.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d4289a53096f88b8cbfdd6ed51c6d2213e13bb5babff25aa8bcec1a9deb377d
|
|
| MD5 |
de20518f78f1977133053c484b29c3d2
|
|
| BLAKE2b-256 |
205c5c1958b4ee3ee7f7718e2646351720eb01120ab6e5401654eb2a1ce42d60
|