An open API service indexing awesome lists of open source software.

https://github.com/itsjwala/ccr

Command line tool for executing programs with input test file and 40+ languages support
https://github.com/itsjwala/ccr

cli code command-line-tool compiler online-judge run

Last synced: 8 months ago
JSON representation

Command line tool for executing programs with input test file and 40+ languages support

Awesome Lists containing this project

README

          

# CCR

![](https://img.shields.io/badge/python-3-blue.svg?style=for-the-badge&logo=python) [![HitCount](http://hits.dwyl.io/jigarWala/ccr.svg)](http://hits.dwyl.io/jigarWala/ccr)

*Command line tool for executing programs with input test file and 40+ languages support.*

### Installing

To install the tool from pip

```sh
pip install ccr

```

To install from source
first clone the repo

```
git clone https://github.com/jigarWala/ccr.git
cd ccr
```
Than install the `requirements`

```sh

pip install -r requirements.txt

```
Now install the package by running the following commands

```

python setup.py build
python setup.py install

```

# Usage
Without using input file
``` sh
ccr test/test.cpp

```

With using input file

``` sh
ccr test/test.py -i test/hello.txt
```
> Note above methods uses extension to detect language

Specifying language explicitly
``` sh
ccr test/test.py -i test/hello.txt -l python3
```
# Demo
[![asciicast](https://asciinema.org/a/nkDvjjAQ6d0eMhEUMxPNJj2qU.svg)](https://asciinema.org/a/nkDvjjAQ6d0eMhEUMxPNJj2qU)

# Note

> For running code on python, preferably use `-l` parameter as python has different version.

> Default is python3, if not specifying by `-l`

## Contributing

Please reach out to me if you wish to contribute to this project

## Authors

* **Jigar Wala** - [jigarWala](https://github.com/jigarWala)

See also the list of [contributors](https://github.com/jigarWala/ccr/contributors) who participated in this project.

## License

This project is licensed under the MIT - see the [LICENSE](./LICENSE) file for details