Skip to main content

atlas-eval (Python)

Is your model ready for India? Evaluate any model on the Bharat AI Index.

Requires a running Atlas instance (default http://localhost:3000). Start one with npm run dev in the repo, or docker run -p 3000:3000 ... bharat-ai-index.

Install

pip install atlas-eval           # live on PyPI

Use

from atlas_eval import evaluate_model

# point at ANY model — OpenAI-compatible endpoint or local Ollama:
report = evaluate_model("gpt-4o-mini", api_key="sk-...")
# report = evaluate_model("my-finetune", base_url="http://localhost:8000/v1")
# report = evaluate_model("gemma2:2b", kind="ollama")

r = report["readiness"]
print(r["verdict"], "| grade", r["sovereigntyGrade"])
print("Indic", r["indicScore"], "vs Global", r["globalScore"], "| gap", r["indicGap"])
print("weakest axes:", r["weakest"])   # what to fix before deploying for India

CLI

atlas-eval --version
atlas-eval check --base-url http://localhost:3000   # verify a reachable Atlas instance

What you get back

evaluate_model returns the full report:

  • run — overall ± stderr, per-axis categories, and the Indic-vs-Global locales split.
  • sovereignty — overall score, AAA→C grade, and the four sovereignty dimensions.
  • readiness — a plain-English verdict, indicScore / globalScore / indicGap, and the weakest / strongest axes.
  • certificateId — a deterministic, recomputable id for the rating.

Zero runtime dependencies (Python stdlib only). Ships type hints (PEP 561 py.typed). Docs: https://github.com/info-gallary/BharatAIndex/tree/main/sdk

MIT © Atlas AI Labs

Metadata

Release files for atlas-eval 0.4.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 atlas-eval 0.4.0
File Size Uploaded Provenance
atlas_eval-0.4.0.tar.gz 4.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for atlas-eval 0.4.0
File Interpreter ABI Platform
atlas_eval-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / atlas_eval-0.4.0.tar.gz

Download URL atlas_eval-0.4.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e5e26c572b37e5a1dbd02cd7633ceeeff4e6efc094761c4ee2779020bc1017d0
BLAKE2b-256 checksum
How to use checksums
21f960ed52e557d95d9f992c3f4478be1d004465b293f12bfaf9d83e71403955
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / atlas_eval-0.4.0-py3-none-any.whl

Download URL atlas_eval-0.4.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3b96c5436e292c56fa3ac54917f034301188c43515cd724c1324349a441db3b
BLAKE2b-256 checksum
How to use checksums
13138bfafb96d35f88a80bf15e6d62a4bd7ea3176576e1bc02d2468525c59331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for atlas-eval 0.4.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.

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