Metadata-Version: 2.4
Name: cpp-simple-interface
Version: 0.0.2
Summary: compile c++ program with local g++/mingw compiler.
License: MIT
License-File: LICENSE
Author: GGN_2015
Author-email: neko@jlulug.org
Requires-Python: >=3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Description-Content-Type: text/markdown

# cpp_simple_interface
compile and run C++ executable in python with local compiler.

## Install

```bash
pip install cpp-simple-interface
```

## Usage

```python
import cpp_simple_interface

# create test file
with open("a.cpp", "w") as fp:
    fp.write(
"""
#include <cstdio>
int main() {
    printf("hello world!");
    return 0;
}
""")

# compile test file
suc, msg = cpp_simple_interface.compile_cpp_files(["./a.cpp"], "./a.exe")
if not suc:
    print(msg)
```

