Skip to content

Commit 195812f

Browse files
Bhupesh-Vgitbook-bot
authored andcommitted
GitBook: [master] 2 pages modified
1 parent f6c1aca commit 195812f

File tree

2 files changed

+5
-82
lines changed

2 files changed

+5
-82
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,2 @@
1-
# CodeRunner πŸƒ
2-
> [Judge0 API](https://api.judge0.com/) Interface written in Python
1+
# Initial page
32

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

β€ŽSUMMARY.mdβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Table of contents
2+
3+
* [Initial page](README.md)
4+

0 commit comments

Comments
Β (0)