Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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 path/to/MyClass.h path/to/MyClass.cpp -o MyClass

This will generate a MyClass Python module.

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.

Metadata

Release history Release notifications | RSS feed

This release

0.0.0 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page