{"id":15042449,"url":"https://github.com/prdpx7/cmdjudge","last_synced_at":"2025-04-14T20:33:27.378Z","repository":{"id":62563031,"uuid":"69388785","full_name":"prdpx7/cmdjudge","owner":"prdpx7","description":"A simple command line code judge","archived":false,"fork":false,"pushed_at":"2020-07-31T09:45:50.000Z","size":68,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-27T22:05:42.989Z","etag":null,"topics":["bash-script","competitive-programming","pypi","test-automation"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prdpx7.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}},"created_at":"2016-09-27T18:55:34.000Z","updated_at":"2023-03-04T08:52:20.000Z","dependencies_parsed_at":"2022-11-03T15:45:21.037Z","dependency_job_id":null,"html_url":"https://github.com/prdpx7/cmdjudge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prdpx7%2Fcmdjudge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prdpx7%2Fcmdjudge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prdpx7%2Fcmdjudge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prdpx7%2Fcmdjudge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prdpx7","download_url":"https://codeload.github.com/prdpx7/cmdjudge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248956258,"owners_count":21189321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bash-script","competitive-programming","pypi","test-automation"],"created_at":"2024-09-24T20:47:19.917Z","updated_at":"2025-04-14T20:33:27.330Z","avatar_url":"https://github.com/prdpx7.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmdjudge\nA Command Line Code Judge to evaluate programs for a given input \u0026 output text files with time constraint\n\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/prdpx7/cmdjudge/master/LICENSE)\n[![PyPI version](https://badge.fury.io/py/cmdjudge.svg)](https://badge.fury.io/py/cmdjudge)\n[![Code Health](https://landscape.io/github/prdpx7/cmdjudge/master/landscape.svg?style=flat)](https://landscape.io/github/prdpx7/cmdjudge/master)\n\n## Installation\n* from PyPI\n```\npip install cmdjudge\n```\n* with curl\n```\nbash -c \"$(curl -fsSL https://raw.githubusercontent.com/prdpx7/cmdjudge/master/install.sh)\"\n```\n\n## Usage\n```\n$ cmdjudge --help\nUsage: [-h] [-t TIME-LIMIT ] [-s SOURCE-CODE ] [-i INPUT-FILE] [-c CORRECT-OUTPUT-FILE ]\n\nOptional Arguments:\n\n-h , --help : show this help message and exit\n-t TIME-LIMIT , --time-limit TIME-LIMIT : max time-limit required for source code to execute[Default time-limit(if didn't specified in arg) is 1-sec]\n-s SOURCE-CODE, --source-code SOURCE-CODE : valid path for c/cpp/py/java source code\n-i INPUT-FILE, --input-file INPUT-FILE : input testcase file required\n-c CORRECT-OUTPUT-FILE, --correct-output-file CORRECT-OUTPUT-FILE : correct output file, which will be judged with user output file\n```\n* Here's a sample [script](https://gist.github.com/prdpx7/48e4b5c795da34e29351e58029076223) to generate results by using `cmdjudge`.\n\n## Demo\n```\n$ cmdjudge -s A.cpp -i inp.txt -c correctout.txt\nAccepted\n$ cmdjudge --source-code A.java --input-file inp.txt --correct-output-file correctout.txt --time-limit 0.34\nTime Limit Execced\n```\n![demo](https://i.imgur.com/inUpV2O.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprdpx7%2Fcmdjudge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprdpx7%2Fcmdjudge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprdpx7%2Fcmdjudge/lists"}