Skip to content

Converts python code into c++ by using OpenAI CODEX.

License

Notifications You must be signed in to change notification settings

realasking/codex_py2cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codex_py2cpp 🤖

Your Python Code is too slow? 🐌 You wanna speed it up but don't wanna learn C++ Convert your Python script to C++ Code using this simple script and OpenAI Codex 🤖

Installation

git clone xxx
cd codex_py2cpp
pip3 install -r requirements.txt

Run example

python3 main.py

Example Code Generation:

Python Snippet

def print_something():
    print("Hello Cpp file")


if __name__ == "__main__":
    print_something()

Converted by Codex to:

// C++ Code generated from Python Code: 
#include <iostream>
#include <string>

using namespace std;

void print_something() {
    cout << "Hello Cpp file" << endl;
}

int main() {
    print_something();
    return 0;
}

About

Converts python code into c++ by using OpenAI CODEX.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%