Skip to content

Commit c591326

Browse files
committed
undo shit f**k gitbook
1 parent 195812f commit c591326

File tree

2 files changed

+81
-5
lines changed

2 files changed

+81
-5
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,82 @@
1-
# Initial page
1+
# CodeRunner πŸƒ
22

3+
> [Judge0 API](https://api.judge0.com/) Interface written in Python
4+
5+
![PyPI](https://img.shields.io/pypi/v/coderunner?color=blue)
6+
[![Build Status](https://travis-ci.org/codeclassroom/CodeRunner.svg?branch=master)](https://travis-ci.org/codeclassroom/CodeRunner)
7+
[![GitHub license](https://img.shields.io/github/license/codeclassroom/CodeRunner)](https://github.com/codeclassroom/CodeRunner/blob/master/LICENSE)
8+
[![GitHub issues](https://img.shields.io/github/issues/codeclassroom/CodeRunner?color=blueviolet)](https://github.com/codeclassroom/CodeRunner/issues)
9+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-orange.svg)](http://makeapullrequest.com)
10+
11+
12+
### Prerequisites
13+
1. Python 3.6+
14+
2. virtualenv
15+
16+
### Installation
17+
1. Create virtual environment.
18+
```bash
19+
virtualenv -p python3 venv && cd venv && source bin/activate
20+
```
21+
2. Clone the repository.
22+
```bash
23+
git https://github.com/codeclassroom/CodeRunner.git
24+
```
25+
3. Install Dependencies.
26+
```bash
27+
pip install -r requirements.txt
28+
```
29+
4. Run tests.
30+
```bash
31+
python3 tests.py
32+
```
33+
34+
### Usage
35+
- Install the package.
36+
```bash
37+
pip install coderunner
38+
```
39+
40+
```python
41+
import coderunner
42+
import pprint
43+
program_name = "testfiles/" + "test_python.py"
44+
language = "Python"
45+
output = "testfiles/" + "output2.txt"
46+
Input = "testfiles/" + "input.txt"
47+
r = coderunner.Run(program_name, language, output, Input)
48+
print("Status : " + r.getStatus())
49+
if r.getError() != None:
50+
pprint.pprint("Error : " + r.getError())
51+
else:
52+
print("Standard Output : ")
53+
pprint.pprint(r.getStandardOutput())
54+
print("Execution Time : " + r.getTime())
55+
print("Memory : " + str(r.getMemory()))
56+
```
57+
58+
59+
### Pointers ✏
60+
- In a `Java` program the class name should always be ***`Main`***.
61+
- Currently supported languages :
62+
- C (gcc 7.2.0)
63+
- C++ (g++ 7.2.0)
64+
- Java (OpenJDK 8)
65+
- Python (3.6.0)
66+
67+
68+
69+
### Author
70+
71+
πŸ‘₯ **Bhupesh Varshney**
72+
73+
- Twitter: [@bhupeshimself](https://twitter.com/bhupeshimself)
74+
- DEV: [bhupesh](https://dev.to/bhupesh)
75+
76+
## πŸ“ License
77+
78+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
79+
80+
## πŸ‘‹ Contributing
81+
82+
Please read the [CONTRIBUTING](CONTRIBUTING.md) file for the process of submitting pull requests to us.

β€ŽSUMMARY.mdβ€Ž

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
Β (0)