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
Apache-2.0 — specification, schema and both reference implementations alike.
Release files for ai-evidence 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ai_evidence-0.2.0.tar.gz | 31.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_evidence-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.3 kB
Release files / ai_evidence-0.2.0.tar.gz
| Download URL | ai_evidence-0.2.0.tar.gz |
|---|---|
| Size | 31.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac7be36e6f52845bca7ef154ba968033159dc5d6b2019494f658bd05bb0f5350
|
|
BLAKE2b-256 checksum How to use checksums |
9b75e055e79f0d2e12322b0d3ffd90e6a259dbd3e608802a5d6f841596e91c7d
|
| 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.2.0-py3-none-any.whl
| Download URL | ai_evidence-0.2.0-py3-none-any.whl |
|---|---|
| Size | 40.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
033ec716fdb6fdadbe00b99752d53227fd86140ca9a40adf3af4b5b933279cee
|
|
BLAKE2b-256 checksum How to use checksums |
3ce8a16ae9ee13cb21d792956fe434e897f52bfeea9dd86a118d6bf35318d947
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.14
|