{"id":47632356,"url":"https://github.com/mzuenni/pyctd","last_synced_at":"2026-04-01T23:49:26.881Z","repository":{"id":341399120,"uuid":"1166699728","full_name":"mzuenni/pyctd","owner":"mzuenni","description":"native python implementation of Checktestdata","archived":false,"fork":false,"pushed_at":"2026-03-25T17:41:53.000Z","size":1506,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-25T17:51:08.194Z","etag":null,"topics":["acm-icpc","domjudge","grammar","icpc","programming-contests","syntax-checker","testdata","validation","verify"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mzuenni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-25T14:08:26.000Z","updated_at":"2026-03-25T17:40:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mzuenni/pyctd","commit_stats":null,"previous_names":["mzuenni/pyctd"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/mzuenni/pyctd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzuenni%2Fpyctd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzuenni%2Fpyctd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzuenni%2Fpyctd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzuenni%2Fpyctd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mzuenni","download_url":"https://codeload.github.com/mzuenni/pyctd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzuenni%2Fpyctd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acm-icpc","domjudge","grammar","icpc","programming-contests","syntax-checker","testdata","validation","verify"],"created_at":"2026-04-01T23:49:26.204Z","updated_at":"2026-04-01T23:49:26.869Z","avatar_url":"https://github.com/mzuenni.png","language":"Python","readme":"# Python Checktestdata\n\n\u003e Checktestdata is a tool to verify the syntactical integrity of test cases in programming contests like the ACM ICPC.\n\u003e It allows you to specify a simple grammar for your testdata input files, according to which the testdata is checked.\n\u003e\n\u003e — [Checktestdata](https://github.com/DOMjudge/checktestdata)\n\nThis is a Python 3.10 compatible reimplementation of the checktestdata program.\n\n\u003e [!NOTE]\n\u003e As of now, the python implementation only supports strict file validation. The arguments `whitespace-ok` and `generate` are not supported.\n\n## Documentation\n\n* [Introduction to the Checktestdata Language](doc/introduction.md).\n* The [CTD language specification](https://github.com/DOMjudge/checktestdata/blob/main/doc/format-spec.md) at the\n[DOMjudge Checktestdata repository](https://github.com/DOMjudge/checktestdata).\n* [The Regex Syntax](doc/regex.md).\n\n## Installation\n\nRequirements:\n * PyPy \u003e= v7.3.15 (preferred)\n * CPython \u003e= 3.10 (alternative)\n\nThe package can be installed directly from [pypi](https://pypi.org/project/checktestdata/):\n```\npypy3 -m ensurepip\npypy3 -m pip install checktestdata\n```\n```\npip install checktestdata\n```\n\n## Use\n\nYou can use this program to run `.ctd` validators in the same way as the checktestdata binary:\n```\npyctd validator.ctd [-d | --debug] \u003c testcase\n```\n\nYou can also use the programm to convert `.ctd` files into standalone python applications:\n```\npyctd validator.ctd --convert [name] [-d | --debug]\n```\n\n\u003e [!TIP]\n\u003e The generated validator might not be easy to read, cosider adding `-d` to include the original code as comments.\n\n## Extensions\n\nThis checktesdata implementation supports the `--constraints_file` argument and can be used with [BAPCtools](https://github.com/RagnarGrootKoerkamp/BAPCtools) to check the constraints of a problem.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzuenni%2Fpyctd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmzuenni%2Fpyctd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzuenni%2Fpyctd/lists"}