Skip to main content

AI Fairness & Compliance SDK — CI/CD pipeline gate for EU AI Act compliance, bias auditing, and Equalized Odds evaluation.

Project description

Equalyze SDK

AI Fairness & Compliance SDK for CI/CD Pipelines

Equalyze is a Python SDK that integrates AI bias auditing directly into your CI/CD pipeline. It evaluates datasets against multiple fairness metrics — including Disparate Impact Ratio, Equalized Odds, and FPR Parity — and blocks deployments that fail compliance thresholds with a standard sys.exit(1).

Built for EU AI Act compliance.

Installation

pip install equalyze

Quick Start

from equalyze import EqualyzeSDK

sdk = EqualyzeSDK(api_key="your_api_key", base_url="https://your-equalyze-instance.com")

# Upload a dataset
dataset_id = sdk.upload_dataset("hiring_data.csv")

# Run a fairness audit with a compliance threshold
# This will sys.exit(1) if the model fails — blocking your pipeline automatically.
sdk.run_audit(
    dataset_id=dataset_id,
    protected_attributes=["gender", "race", "age"],
    threshold=0.85
)

CI/CD Integration

GitHub Actions

- name: Equalyze Fairness Gate
  env:
    EQUALYZE_API_KEY: ${{ secrets.EQUALYZE_API_KEY }}
    DATASET_PATH: ./data/model_output.csv
  run: equalyze-audit-gate

GitLab CI

fairness-gate:
  script:
    - pip install equalyze
    - equalyze-audit-gate
  variables:
    EQUALYZE_API_KEY: $EQUALYZE_API_KEY
    DATASET_PATH: ./data/model_output.csv

Metrics Evaluated

Metric Description
Disparate Impact Ratio Outcome ratio between protected groups (4/5ths rule)
Equalized Odds True Positive Rate parity across groups
FPR Parity False Positive Rate parity across groups
Statistical Parity Outcome distribution equality

License

MIT

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

equalyze-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

equalyze-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file equalyze-0.1.0.tar.gz.

File metadata

  • Download URL: equalyze-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for equalyze-0.1.0.tar.gz
Algorithm Hash digest
SHA256 249365233d0bd8de30f8615fd29bf73d901d485fe7871177641e5f748b7eaa51
MD5 cf09c6c4d38b7ffbefecdd797e13a046
BLAKE2b-256 dfe27d585d41faf25ebca5bdb48f9629c2bf18c455b9ca3068b4c973a235aa58

See more details on using hashes here.

File details

Details for the file equalyze-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: equalyze-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for equalyze-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1208770a8d091608f06e3aa553f977194562197717149cd5de5a563424d5079
MD5 64b44f83eee07a29878b14fb4fc82791
BLAKE2b-256 d307cae9c6e203262ed16ffecfc9ce6ba6d1f25eace42fd02660ca7edc2e3eaa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page