OriginBlame
Record- and token-level data provenance for AI training datasets.
When a data contributor requests removal, model trainers face a practical gap: unlearning algorithms require a forget set, yet no tool can locate which training records belong to a given author. OriginBlame propagates author identity through data processing pipelines and resolves revocation requests into precise forget sets via deterministic queries.
Install
pip install originblame
Python >= 3.12 required. An optional native backend (compiled via maturin) accelerates performance-critical operations; without it, a pure-Python fallback is used.
Quick Start
# 1. Initialize tracking in your dataset directory
ob init
# 2. Register an author
ob author.add "Wikimedia" "wikimedia@example.com"
# 3. Register a section (file + author + license)
ob register.add \
--path raw/wiki.xml \
--authors wikimedia@example.com \
--license CC-BY-SA-4.0 \
--year 2024
from ob import init, author_add, register_section, source, track
init()
author_add("Wikimedia", "wikimedia@example.com")
register_section("raw/wiki.xml", ["wikimedia@example.com"], "CC-BY-SA-4.0", "2024")
# Track data lines with provenance
source.append("raw/wiki.xml")
for record in read_jsonl("data.jsonl"):
track(record, file="data.jsonl")
source.pop()
# Or use the context manager
from ob.source import sources
with sources("raw/wiki.xml"):
track(record, file="data.jsonl")
Python API
init(force=False, ob_dir=None)
Initialize a .ob/ tracking directory. Raises OBInitError if .ob/ exists but is invalid.
author_add(name, email, ob_dir=None) -> str
Register an author. Returns the 64-char SHA-256 author_id.
register_section(path, authors, license, year, contributors=None, ob_dir=None) -> str
Register a section linking a file path to authors and license. Returns the section_hash.
track(data, file, embedding=None, model=None, *, source=None, ob_dir=None) -> TrackResult
Record a provenance entry for data (dict or str) in file.
source: file path, list of section hashes, orNone(uses source stack).- Returns
TrackResultwith.line_hash,.file,.sources,.written.
Source stack: source.append() / source.pop()
Thread-local stack for implicit source assignment:
source.append("raw/wiki.xml")
track(data, "data.jsonl")
source.pop()
CLI Reference
ob init [PATH] Initialize .ob/ tracking directory
ob author.add NAME EMAIL Register an author
ob register.add --path P --authors A Register a section
--license LICENSE --year YEAR
ob blame FILE LINE Show which section(s) a line belongs to
ob show [--author NAME] [--email EMAIL] Show provenance metadata
[--section HASH] [--license LICENSE]
[--revoked] [--index] [--tokenizer T]
ob revoke --author NAME Revoke at author level
ob revoke --section HASH Revoke at section level
ob revoke --line-hash HASH --file FILE Revoke at line level
ob purge FILE [--author NAME] [--dry-run] Physically delete revoked data
ob status [--tokenizer TOKENIZER] Show summary statistics
ob clean Merge PID files, archive revoked records
ob merge --absorb PATH Absorb provenance from another repository
ob generate-set --tokenizer T -o FILE Generate binary forget set (bitmask)
ob log [--op OP] [--since TIMESTAMP] Query operation audit log
ob reconcile FILE [-m MODEL] Reconcile provenance after data edits
[-t THRESHOLD] [-e EMBEDDING_API]
ob export-copyright [-o FILE] Export DEP-5 copyright file
ob parse --parser FORMAT --file FILE Parse structured data (MediaWiki XML)
ob version Show version
Token-Level Provenance
Add --tokenizer NAME to show, revoke, status to query token-index entries:
ob show --author InternetArchiveBot --tokenizer gpt2
ob revoke --author InternetArchiveBot --tokenizer gpt2
ob generate-set --tokenizer gpt2 -o forget.bin
Architecture
.ob/
authors/ who: name, email, id = sha256(name+email)
sections/ what: file path + authors + license
document-index/ which line came from where
token-index.gpt2/ per-document token counts (per tokenizer)
index/ binary index for fast lookups
log operation audit trail
Three layers: authors <- sections <- document-index, extended with an independent token-index for streaming pipelines.
License
MIT
Metadata
Release files for originblame 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| originblame-0.2.1.tar.gz | 880.0 kB | Without provenance | Details for originblame-0.2.1.tar.gz |
Built distributions (wheels)
Total release size: 18.3 MB
Release files / originblame-0.2.1.tar.gz
| Download URL | originblame-0.2.1.tar.gz |
|---|---|
| Size | 880.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b3b247f54d9148a68ec5f29f8499849256a388d735d5aa62070f8e53ce216bc
|
|
BLAKE2b-256 checksum How to use checksums |
46d4c02da1f780feddbb313836cef84b8bdeeebdce1235809fe81bb638169fc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp314-cp314t-musllinux_1_2_x86_64.whl
| Download URL | originblame-0.2.1-cp314-cp314t-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 952.4 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
ff4a6f512cdbda128d8a1a607de9105ee2126197db79f8b26a5796b10eca95e1
|
|
BLAKE2b-256 checksum How to use checksums |
2d0776c659bafcb179ccf4606d86b9fe12eca4c575cdfaece92d1e1f704dc020
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp314-cp314t-musllinux_1_2_aarch64.whl
| Download URL | originblame-0.2.1-cp314-cp314t-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 899.3 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
051068bc130b063f5165e8c577730b49ce9f61594a2ec284824158907c1304e1
|
|
BLAKE2b-256 checksum How to use checksums |
29b514911b8db3f59afff91d899ab5f57ec876a4026cdd9b9ae370ca8deaf10a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | originblame-0.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 736.5 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e7344618d881eda8ecac23eadcee37e3a5dc76eeed8e9f2937a9154d2d5cf5f6
|
|
BLAKE2b-256 checksum How to use checksums |
0a98dbc3c996cb1e460174dc3464a90d2c7a57d2a470e51fd6608045f465f872
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | originblame-0.2.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 721.2 kB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
caa8834497b329959257fd8509e5deaa938488c04952580ea9ee232f4d997579
|
|
BLAKE2b-256 checksum How to use checksums |
433de1dd340666756385348a0871b11599b5bfe9be7429c336628899a790c145
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp314-cp314-win_amd64.whl
| Download URL | originblame-0.2.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 555.4 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1493b775d31e7b6f5db4fb2e41a96215264a0215d1e01184a6bfe962fdf38f52
|
|
BLAKE2b-256 checksum How to use checksums |
f4bc080448a5e224089217f78441978e29c356f2fdf2fe7f2bba2a1128500781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp314-cp314-musllinux_1_2_x86_64.whl
| Download URL | originblame-0.2.1-cp314-cp314-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 951.7 kB |
| Tags | CPython 3.14 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
0cea77d1db5cef2b07390e916ecfcdd60ff51223f48e3ae7f8f399a5aaeacd73
|
|
BLAKE2b-256 checksum How to use checksums |
bee37d28182fb9ba7198c5bccbc48284c038e49088945075115bcd1793dd3a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp314-cp314-musllinux_1_2_aarch64.whl
| Download URL | originblame-0.2.1-cp314-cp314-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 897.7 kB |
| Tags | CPython 3.14 Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
128711912055d5e916c093f0267c5784760f95a1ca85e46cfc5c38c50d0c1fdd
|
|
BLAKE2b-256 checksum How to use checksums |
df6f1b9113c16c30dc92ea6d920eb916394591b485cc846bc2881d87e07b7ce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | originblame-0.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 735.6 kB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
27119fc968da67b94280d0bae3e8a7e7e8b86a971e2e7fbe3536052689108136
|
|
BLAKE2b-256 checksum How to use checksums |
5a39a9ac0ff0190e2ead1b9bef96208a82325ed6ff57b246c5b2048c31cf20d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | originblame-0.2.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 721.6 kB |
| Tags | CPython 3.14 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
50a1a7382a1a032bf4ce121e9e00e7a07cdebf577edc014f5a6f39f13aa80758
|
|
BLAKE2b-256 checksum How to use checksums |
68d5e8edbb2acee1daad1334b33e13d31b84bf04fd85708e22e4ddcbd1634267
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | originblame-0.2.1-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 651.9 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
81142482eed51f38f17023a49450973f3ca259ad0bb64233313a52748a27d58e
|
|
BLAKE2b-256 checksum How to use checksums |
3bf2f56eb1dd04c0053a9343bb18e28cdf0cad584b5843a4c299a887920739f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp313-cp313-win_amd64.whl
| Download URL | originblame-0.2.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 556.4 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
dfd9eaecf03e150c85e125a3b1b9c5689a123195fa3c2e0894ac4f6c8653b3ad
|
|
BLAKE2b-256 checksum How to use checksums |
91f273326eb119a3d0178a0c42637a4a949735a1b910678c43d9777ef396ac75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp313-cp313-win32.whl
| Download URL | originblame-0.2.1-cp313-cp313-win32.whl |
|---|---|
| Size | 520.6 kB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
3e221b26c1a70a6250387caa86e616a9e298a824a3ef97d6ffed54058452e63c
|
|
BLAKE2b-256 checksum How to use checksums |
3cfb936807c835121952a135ebccb82049c0c2f1be4d854d08a5d75a909dbe26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp313-cp313-musllinux_1_2_x86_64.whl
| Download URL | originblame-0.2.1-cp313-cp313-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 952.7 kB |
| Tags | CPython 3.13 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
48b8d50a63f638ac8cf41e6c5a2d94944f5650803df6bc8c69793dbae65bf2db
|
|
BLAKE2b-256 checksum How to use checksums |
33683937580115c79a91cfd775e8edb9fa35887c729f8522ae78e6d0633c3560
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp313-cp313-musllinux_1_2_aarch64.whl
| Download URL | originblame-0.2.1-cp313-cp313-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 899.0 kB |
| Tags | CPython 3.13 Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
17f3575138ef72addf04469ae727aff41fdc6108327ceab5a80713dffea85a27
|
|
BLAKE2b-256 checksum How to use checksums |
259db3bf7cfa0a96b421c891f2da34f0c4c0cc839aa55f1d3b009fdab7c3df80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | originblame-0.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 737.1 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
ba3eb592821df294eed68f0130702571084ad83e08f604c6d9f516ee0038f7c9
|
|
BLAKE2b-256 checksum How to use checksums |
504ba27520c86f8534212a380438c2a5cd61974bd250cebb1cd2433a6d0b25e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | originblame-0.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 722.2 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
9e67059b7295003e061e990f8b98beed12767c9b1c1cbbba0c441ad785eb7562
|
|
BLAKE2b-256 checksum How to use checksums |
3ee0f8a97e3f1a00ed45d96db5d67370358fb87d38f99c01807932671d3b23d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | originblame-0.2.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 651.5 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
428a932bff0926c58a0677043632c91c4ff7dee0483b9368dac973a652ab57f3
|
|
BLAKE2b-256 checksum How to use checksums |
4fa5463c6197fecb694032c5d09e641a5ff9f3ff69154788faff8e4ed1ee8b1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp312-cp312-win_amd64.whl
| Download URL | originblame-0.2.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 557.0 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d29d8dc8feb224d3ba724b31383028ee0878aeb271d669fae30934e0c8d080ee
|
|
BLAKE2b-256 checksum How to use checksums |
f10d15b6410bdcef52672d752c3f123eee968e796a42fb7c5f5df7b4e872f069
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | originblame-0.2.1-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 952.2 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
7d8cea87ee36380a805f10f84cba12274ffcfde8b4a292ddc6c52b1d63432847
|
|
BLAKE2b-256 checksum How to use checksums |
2c00a84b719357e072889e2078a492dfc8bf338c6638fac9e229a49103b88a76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp312-cp312-musllinux_1_2_aarch64.whl
| Download URL | originblame-0.2.1-cp312-cp312-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 898.9 kB |
| Tags | CPython 3.12 Linux musl 1.2+ ARM64 |
|
SHA-256 checksum How to use checksums |
d85e715a8bd05208dc9c7e943aec686931795a9b591711bd733b3842085c5eff
|
|
BLAKE2b-256 checksum How to use checksums |
802b8b8c7787df77f7f2c94eac7cdb40bac8ad0298c6a17dbf1be1233eb30a5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | originblame-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 737.0 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
d292620bbcb81ff84c8e9cb5e8ea2ed2741f2a923ece99dc701cecd1a2130c44
|
|
BLAKE2b-256 checksum How to use checksums |
029a2b34c801e32e5f773bc4bb25f8d6c41d84217044f0e26a6fb4fa828e2af5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | originblame-0.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 722.2 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
b5d5afa58db8efef2d2adf3a4d85797cfde26ef4b14bf4a845b295e40648cfcc
|
|
BLAKE2b-256 checksum How to use checksums |
5eca43fe10a768427d17c5d082da77d019e75bef200e33d84a6ece1786edd058
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / originblame-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | originblame-0.2.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 651.6 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ec884dcae4a1f49b84ac3618659a599fae5540c87aa770318deed0a7d85cb719
|
|
BLAKE2b-256 checksum How to use checksums |
a7f47b04d83d762619198a399fe28b3e1896b0eaa7050c1bf90eb2cca2de371f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for originblame 0.2.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.