A python package to directly embeed C/C++ code in python script/program/code.
- Wrapper around
ctypes
Python package. - Tests in python 3.7 on Windows OS(by developer).
- main.py contains simple metric for comparison.
git clone https://github.com/Kartikei-12/Pyrunc
cd Pyrunc-master
python -m venv venv
./venv/Scripts/activate
pip install -r requirements.txt
git clone https://github.com/Kartikei-12/Pyrunc
cd Pyrunc-master
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
For simple example,
Run main.py as python main.py
on windows with virtual environment(./venv/Scripts/activate
).
Run main.py as python3 main.py
on Ubuntu/Linux with virtual environment(source /venv/Scripts/activate
).
- Python 3
- Pip usually pre-installed with python, check with
pip3 --version
. GNU-GCC
is required to compile C code(working on packaging in project itself).
Currently only runs C code not C++ code as ctypes python module only supports C and not C++.