Skip to main content

ai-evidence (Python)

Python implementation of the AI Evidence Manifest — a static /ai.json file that links the claims a site makes to the first-party evidence supporting them.

pip install ai-evidence
ai-evidence init https://example.com   # write ai-evidence.config.json
ai-evidence generate                   # read the site, write ai.json
ai-evidence check ai.json --update     # re-verify, record freshness
ai-evidence repair ai.json             # relocate quotes that have drifted

As a library:

from ai_evidence import validate_manifest, parse_manifest

manifest, size = parse_manifest(open("ai.json").read())
result = validate_manifest(manifest, offline=False)

print(result["valid"], result["stats"])

Parity with the JavaScript implementation

Both implementations load the same shared/patterns.json and validate against the same JSON Schema, and a conformance corpus checks that they produce identical output for identical input. Where the two regex engines differ — the spelling of Unicode character classes — the shared file uses placeholders that each language substitutes.

Licence

The tooling is Elastic License 2.0; the specification and schema are Apache-2.0. See NOTICE in the repository root.

Release files for ai-evidence 0.1.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 ai-evidence 0.1.0
File Size Uploaded
ai_evidence-0.1.0.tar.gz 30.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-evidence 0.1.0
File Interpreter ABI Platform
ai_evidence-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 67.9 kB

Release files / ai_evidence-0.1.0.tar.gz

Download URL ai_evidence-0.1.0.tar.gz
Size 30.4 kB
Tags Source
SHA-256 checksum
How to use checksums
22aa54b01359d0b001151f8f98f0d39407a5b4d1703ba5d054caaff9e14f2078
BLAKE2b-256 checksum
How to use checksums
da9f735248564022116f73349d9c7a9ba8e589d1cfe508dc7c468fbac301f3a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Release files / ai_evidence-0.1.0-py3-none-any.whl

Download URL ai_evidence-0.1.0-py3-none-any.whl
Size 37.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c318cba101e4b23f989246027d790c050e98b0981b94f836f5b8c0729e9937e
BLAKE2b-256 checksum
How to use checksums
f23138c523ef958acf1426b9ac43179d1fc31a9ab8b177c4761fb179d3f0fcb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Release history Release notifications | RSS feed

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.0 This release

2 release files

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