# CodeRunner **Repository Path**: wython/CodeRunner ## Basic Information - **Project Name**: CodeRunner - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-22 - **Last Updated**: 2021-08-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CodeRunner 🏃 > A judge 👨🏽‍⚖️ for your programs, run and test your programs through Python ![PyPI](https://img.shields.io/pypi/v/coderunner?color=blue) [![Build Status](https://travis-ci.org/codeclassroom/CodeRunner.svg?branch=master)](https://travis-ci.org/codeclassroom/CodeRunner) [![codecov](https://codecov.io/gh/codeclassroom/CodeRunner/branch/master/graph/badge.svg)](https://codecov.io/gh/codeclassroom/CodeRunner) ![PyPI - Format](https://img.shields.io/pypi/format/coderunner?color=orange) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/coderunner) [![Documentation Status](https://readthedocs.org/projects/coderunner/badge/?version=latest)](https://coderunner.readthedocs.io/en/latest/?badge=latest) ![PyPI - Downloads](https://img.shields.io/pypi/dm/coderunner?color=blue) ## Installation Install using `pip` from PyPI ```bash pip install coderunner ``` or directly from GitHub if you cannot wait to test new features ```bash pip install git+https://github.com/codeclassroom/CodeRunner.git ``` ## Usage ```python import coderunner source_code = "path-to/test_python.py" language = "Python" expected_output = "path-to/output.txt" standard_input = "path-to/input.txt" # use this if you have a standard input to Program r = coderunner.code(source_code, language, expected_output, standard_input) # otherwise r = coderunner.code(source_code, language, expected_output) # you can also ignore both fields r = coderunner.code(source_code, language) # Use path=False if not using file paths r = coderunner.code("Hello, World", language, "Hello, World", path=False) r.run() print(r.getOutput()) print(r.getError()) # See Documentation for more methods. ``` ## Documentation > [CodeRunner Documentation](https://coderunner.readthedocs.io/en/latest/) ## Development ##### Prerequisites - Python 3.6+ - virtualenv 1. Create virtual environment. ```bash virtualenv -p python3 venv && cd venv && source bin/activate ``` 2. Clone the repository. ```bash git https://github.com/codeclassroom/CodeRunner.git ``` 3. Install Dependencies. ```bash pip install -r requirements.txt ``` 4. Run tests. ```bash python tests.py ``` 5. Lint the project with ```bash flake8 coderunner --max-line-length=88 --ignore=F401 black --check --diff coderunner ``` ## 📝 Changelog See the [CHANGELOG.md](CHANGELOG.md) file for details. ## :fire: Powered By **[Judge0 API](https://github.com/judge0/api) - Free, robust and scalable open-source online code execution system** ## Author 👥 **Bhupesh Varshney** - Twitter: [@bhupeshimself](https://twitter.com/bhupeshimself) - DEV: [bhupesh](https://dev.to/bhupesh) [![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com) ## 📜 License This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. ## 👋 Contributing Please read the [CONTRIBUTING](CONTRIBUTING.md) guidelines for the process of submitting pull requests to us.