Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

lokeshnb/cpp2python

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
4 Commits
 
 
 
 

Repository files navigation

cpp2python

Script helps to convert C/C++ sources to C/C++ -like Python sources.

It does few simple edit operations, like removing semicolons and type declarations. After it you must edit code manually, but you'll spend less time to do it.

Utility will make mistaces and will not generate ready for use code, so, it won't help you, unless if you know either C/C++ and Python

For better result, it is recomented to format your code to ANSI style before doing conversion.

NO ANY BACKUPS ARE CREATED. YOU MAY PERMANENTLY CORRUPT YOR SOURCES

Usage:

cpp2python.py DIR|FILE
cpp2python.py -v|--version|-h|--help

When directory name is given - tries to find source files by C/C++ suffixes, when file name is given - processes given file

Author: Andrei Kopats hlamer@tut.by License: GPL

About

C++ to Python converter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.