This release is a pre-release and may not be stable for production use.
metacheck (Python)
Check research outputs for best practices — in Python.
Try it: a preview app that runs on your own computer, installed with one command. See docs/TRY.md.
metacheck (Python) is a fast, Python-native port of ScienceVerse's
metacheck R package, designed to work
hand in hand with bibr. It follows metacheck's dev branch (for now
dev plus pull request #423, which
adds bibr export schema 12.0), and every function and module is checked against the
original R implementation by a parity test suite that runs the real R package. The
goal is results at least as accurate as metacheck's, with metacheck's bugs fixed
rather than copied, and nothing invented (the accuracy contract).
Status: alpha. The port is in progress; see the porting status. A difference from metacheck that is not documented as a fix or a deliberate change in docs/UPSTREAM_ISSUES.md is a bug: please open an issue.
Install
pip install "metacheck>=0.4.0a1" # core: bibr JSON / Grobid XML input
pip install "metacheck[bibr]>=0.4.0a1" # + extract PDF/DOCX/HTML with bibr, in-process
pip install "metacheck[all]>=0.4.0a1" # + bibr, data-file readers, REST API, charset detection
The package is on PyPI as metacheck and is a pre-release for now, so the
requirement names the pre-release (>=0.4.0a1); this lets pip and uv pick it
for metacheck only, not for its dependencies. If you installed pytacheck from GitHub
before, run pip uninstall pytacheck first: the old and the new package share files.
The Python module is still called pytacheck (import pytacheck) and so is one of the
commands; metacheck is the same command.
To try the app in your browser, with uv:
uv tool install "metacheck[app]>=0.4.0a1"
metacheck-app
If you do not use Python, one line installs the app; see docs/TRY.md. On a Mac or Linux:
curl -LsSf https://raw.githubusercontent.com/scienceverse/pytacheck/main/install.sh | sh
Or with Docker: docker run --rm -v "$PWD:/work" ghcr.io/scienceverse/pytacheck run paper.json -m all_p_values.
Use
import pytacheck as pc
paper = pc.read("paper.json") # bibr JSON, Grobid XML — or a PDF with metacheck[bibr]
pc.paper_write(paper, "checked") # a bibr 12.0 paper is saved as a bibr 12.0 file
pc.module_list() # available checks
out = pc.module_run(paper, "marginal")
out.traffic_light, out.summary_text
out.table # pandas DataFrame
papers = pc.read("corpus/") # a PaperList; modules run on whole corpora
pc.module_run(papers, "marginal").summary_table
Command line:
pytacheck modules
pytacheck run paper.pdf -m marginal -m all_p_values
pytacheck report paper.json -o report.html
The paper schema: bibr export schema 12.0
bibr export schema 12.0 is pytacheck's paper schema. metacheck reads it natively once pull request #423 is merged, and pytacheck already does:
pc.read()reads a bibr 12.x export (a JSON file with a rootschema_version). Files without one (bibr v10.x and older, metacheck's demo and fixture papers) are read as metacheck reads them. Other versions, bibr 11.x included, are refused with metacheck's error.- Grobid TEI is converted to 12.x:
pc.read("paper.tei.xml"),pc.grobid_to_bibr(...),convert()and the CLI all do this. Passschema_version=Nonefor metacheck's older conversion. pc.paper_write(paper)saves a paper read from a 12.0 export as a bibr 12.0 file. The bytes are the ones metacheck writes, except that pytacheck is named as the converter. An older paper is saved as before, a paper read from a later 12.x (12.1) is refused, andschema_version=Nonealways saves the paper object.
A 12.x paper has these tables and fields:
| table | in a 12.x paper |
|---|---|
info |
the export's metadata and source: title, abstract, DOI, journal, licence, statements, file_name, sha256, input_format, schema_version |
text |
body sentences, then the reference list, then one row for each caption and footnote. Caption and footnote rows have no section_id |
section |
only the paper's real sections. There are no figure, table or footnote pseudo-sections |
figure, table, footnote |
point at their caption or footnote row with text_id, and carry label, caption and page_number (tables also have html and contents) |
xref |
xref_id is the row's own key and target_id is the row it cites. A citation of reference 3 has xref_type "bib" and target_id 3 |
bib_match, info_match, affiliation_match, funding_match |
match scores are on a 0-1 scale (older papers store Crossref relevance scores such as 61.8). info_match is 12.x's metadata_match |
author, affiliation, funding, url, bib, eq |
12.x columns. eq keeps degrees of freedom in parentheses ("(28)"), as metacheck's statistics code expects |
paper.extraction |
the export's extraction block: producer (bibr or Grobid, with its version), converter, completed_at, diagnostics and warnings |
The built-in modules handle both 12.x and older papers, and so does a mixed paper list. docs/MODULES.md shows how to write modules that do the same. docs/BIBR.md covers reading bibr's output.
Presets, packs and community modules
Choose the checks that matter for your field with presets, and add community checks from packs (folders of modules, shared through the pytacheck-modules store):
pytacheck init # pick field presets; installs their packs
pytacheck run paper.json --preset fields::psychology --record run.json
pytacheck pack search trial # browse the store
pytacheck pack install clinical_trials # shows what it installs and asks first
pytacheck pack new my-checks # write your own
Installed packs are pinned to a commit and a file hash, every result records
which code produced it, and pytacheck rerun run.json paper.json replays a run.
See docs/MODULES.md for the user and author guides and
docs/API.md for the REST API and its API key.
How it relates to metacheck
- Results as accurate as metacheck's, or better. Modules check and report what metacheck's do: traffic lights, summary tables, report texts and numbers agree with metacheck on real papers, repositories and data. Where metacheck is clearly wrong (a crash on valid input, a wrong count, a false positive), pytacheck does the right thing and records the bug in docs/UPSTREAM_ISSUES.md so it can be reported upstream. The parity harness (docs/PARITY.md) runs metacheck in R on the same inputs and compares every value, every difference is marked with its reason, and the committed goldens are regenerated from R in CI, so they cannot drift.
- Same paper model. Papers use bibr export schema 12.0, which metacheck reads natively from pull request #423 on, so bibr output is read directly (and in process, when bibr is installed). Older papers are read as metacheck reads them.
- Auto-updated. A scheduled workflow watches metacheck's
devbranch (and, until it is merged, pull request #423). When the tracked head moves, the goldens are regenerated in R and an AI agent ports the change. The change is only merged once parity is green again (docs/PORTING.md). - Faster. pytacheck prefers mature compiled libraries (pandas, orjson, lxml, the
regexengine) to re-implementing R's internals, builds paper tables lazily, and assembles corpus-wide tables without per-paper overhead.
Development continues in metacheck; pytacheck tracks it. Please report issues with the checks themselves (validity, false positives) upstream.
Development
uv sync --all-extras
uv run pytest # includes parity vs committed R goldens
uv run python -m parity check -v # parity report
uv run python -m parity generate --area text # regenerate goldens (needs R + metacheck)
License and credit
AGPL-3.0-or-later, like metacheck and bibr. pytacheck is a translation of metacheck by Lisa DeBruine, Cristian Mesquida, Jakub Werner, Daniel Lakens and contributors; please cite metacheck when you use it.
Metadata
Release files for metacheck 0.4.0a1
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 |
|---|---|---|---|---|
| metacheck-0.4.0a1.tar.gz | 2.5 MB | With provenance | Details for metacheck-0.4.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metacheck-0.4.0a1-py3-none-any.whl | Python 3 | none | any | Details for metacheck-0.4.0a1-py3-none-any.whl |
Total release size: 5.2 MB
Release files / metacheck-0.4.0a1.tar.gz
| Download URL | metacheck-0.4.0a1.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35b4863e8498cf02ca88d7c6dc60b692af298f09c9fdda19e6c90648fa357da7
|
|
BLAKE2b-256 checksum How to use checksums |
a2d625980e61fef0b80c5ffd26ccf1968ac349dd51c219c38ff3b832df835b20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logRelease files / metacheck-0.4.0a1-py3-none-any.whl
| Download URL | metacheck-0.4.0a1-py3-none-any.whl |
|---|---|
| Size | 2.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adb1f3be3d98cc070b2907443eb9afa9e3b2e1cdfea5c80d09bc57587c56f7e7
|
|
BLAKE2b-256 checksum How to use checksums |
5414a56ec4dbff528aca911a8f04b875a77f035e057d058a8eadfd68198032a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logSecurity for metacheck 0.4.0a1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for metacheck-0.4.0a1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.
Transparency logA 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.