[portland] Protecting Intellectual Property In Python Applications

Aaron DeVore aaron.devore at gmail.com
Thu Jan 21 23:13:05 CET 2010

On Thu, Jan 21, 2010 at 10:47 AM, Matt McCredie <mccredie at gmail.com> wrote:

> You don't have to rewrite _everything_ in C. You could just rewrite
> the core algorithm as a .pyd that can be loaded by your python code.
> You can also write a plain dll/so that you can could call using
> ctypes. You coud even create a COM object if you are using Windows
> (load with comtypes or pywin32).

If you don't want to rewrite in C but still want the obfuscate via
compiling option then Cython could be a good option. It is a
Python-based language that compiles down to C and the Python C API.
The downside is that it requires a Cython and C compilers.


More information about the Portland mailing list