GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • View on GitHub
  • Download this project as a .zip file
  • Download this project as a tar.gz file

This view

  • Original page
  • New address

GeezerVison is showing codeclassroom.github.io — CodeRunner 🏃

CodeRunner 🏃

A judge 👨🏽‍⚖️ for your programs, run and test your programs using Python

PyPI Build Status codecov PyPI - Format PyPI - Python Version Documentation Status PyPI - Downloads

Installation

Install using pip from PyPI

pip install coderunner

or directly from GitHub if you cannot wait to test new features

pip install git+https://github.com/codeclassroom/CodeRunner.git

Usage


from coderunner import coderunner
import os

from dotenv import load_dotenv
load_dotenv()

source_code = "testfiles/" + "test_python_input.py"
language = "Python3"
output = "testfiles/output/" + "output2.txt"
Input = "testfiles/input/" + "input.txt"


API_KEY = os.environ["API_KEY"]

r = coderunner.code(source_code, language, output, Input)

# Necessary step to initialize API keys & URL
r.api(key=API_KEY)

# run the code
r.run()

print("Running r :")
print("Status : " + r.getStatus())
print("Output : " + r.getOutput())

# See Documentation for more methods.

Documentation

CodeRunner Documentation

Development

Prerequisites
  • Python 3.6+
  • virtualenv
  1. Create virtual environment.
    virtualenv -p python3 venv && cd venv && source bin/activate
    
  2. Clone the repository.
    git https://github.com/codeclassroom/CodeRunner.git
    
  3. Install Dependencies.
    pip install -r requirements.txt
    
  4. Run tests.
    python tests.py
    
  5. Lint the project with
    flake8 coderunner --max-line-length=88 --ignore=F401
    black --check --diff coderunner
    

📝 Changelog

See the CHANGELOG.md file for details.

:fire: Powered By

Judge0 API - Free, robust and scalable open-source online code execution system

Author

👥 Bhupesh Varshney

  • Twitter: @bhupeshimself
  • DEV: bhupesh

forthebadge

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

👋 Contributing

Please read the CONTRIBUTING guidelines for the process of submitting pull requests to us.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.