Python Checktestdata
Checktestdata is a tool to verify the syntactical integrity of test cases in programming contests like the ACM ICPC. It allows you to specify a simple grammar for your testdata input files, according to which the testdata is checked.
This is a Python 3.10 compatible reimplementation of the checktestdata program.
Documentation
- Introduction to the Checktestdata Language.
- The CTD language specification at the DOMjudge Checktestdata repository.
- The Regex Syntax.
Installation
Requirements:
- PyPy >= v7.3.15 (preferred)
- CPython >= 3.10 (alternative)
The package can be installed directly from pypi:
pypy3 -m ensurepip
pypy3 -m pip install checktestdata
pip install checktestdata
Use
You can use this program to run .ctd validators in the same way as the checktestdata binary:
pyctd validator.ctd [-d | --debug] < testcase
You can also use the programm to convert .ctd files into standalone python applications:
pyctd validator.ctd --convert [name] [-d | --debug]
Extensions
This checktesdata implementation supports the --constraints_file argument and can be used with BAPCtools to check the constraints of a problem.
Metadata
Release files for checktestdata 2026.9.2
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 |
|---|---|---|---|---|
| checktestdata-2026.9.2.tar.gz | 21.9 kB | With provenance | Details for checktestdata-2026.9.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| checktestdata-2026.9.2-py3-none-any.whl | Python 3 | none | any | Details for checktestdata-2026.9.2-py3-none-any.whl |
Total release size: 40.6 kB
Release files / checktestdata-2026.9.2.tar.gz
| Download URL | checktestdata-2026.9.2.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f7f59f5ea4d675ff2520f930a506ac6b5063e6a74d7356e9b8e61960bd4cab3
|
|
BLAKE2b-256 checksum How to use checksums |
76c4380b42783761cc5e78710f3c698883ffbb99619d161ec69d41d2428aac0f
|
| 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 11, 2026.
Transparency logRelease files / checktestdata-2026.9.2-py3-none-any.whl
| Download URL | checktestdata-2026.9.2-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c79484a3efe0503a2e1d2b6cc11a083211376d01764db64a3e6e5e2054300ae
|
|
BLAKE2b-256 checksum How to use checksums |
48a00a3a7d9cf3ca284210c9316a132ab51a14c8d71d65486984e739972e849c
|
| 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 11, 2026.
Transparency logSecurity for checktestdata 2026.9.2
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 checktestdata-2026.9.2.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 11, 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.