Skip to content
This repository has been archived by the owner on Aug 15, 2017. It is now read-only.
/ seasnake Public archive

A tool to convert C++ code to Python code.

License

Notifications You must be signed in to change notification settings

pybee/seasnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SeaSnake

https://travis-ci.org/pybee/seasnake.svg?branch=master

A tool to manage conversion of C++ code to Python.

Sometimes you will find a great algorithm, but find that the only implementation of that algorithm is written in C or C++. In some cases it might be possible to wrap that C/C++ code in a Python C module. However, if a C module is not an option, you need to be able to convert the C/C++ implemention into a Pure Python implementation.

SeaSnake was written to automate the conversion of WebKit sources into a version that could be used by Colosseum.

Quickstart

In your virtualenv, install SeaSnake, and then run it, passing in the name of a C++ source file (or files, if you want to provide the header as well as the cpp file):

$ pip install seasnake
$ seasnake -s path/to/MyClass.cpp

This will output a MyClass.py Python module to the console.

If your code requires external include files or definitions, you can use the -D and -I options. See seasnake --help for details.

Community

SeaSnake is part of the BeeWare suite. You can talk to the community through:

Contributing

If you experience problems with SeaSnake, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.

About

A tool to convert C++ code to Python code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages