Distribution & Auto-Updater

Josiah Carlson wrote:

There is decompyle which from what I understand works quite well at
recovering source from .pyc files. Running it through pyobfuscate may
or may not help.

Alternatively, one could distribute source in an encrypted format. It
will need to be decrypted and loaded, at which would leave one open for
theft, but it would prevent casual source code theft.
  

Or another alternative...
With pyrex you can compile your modules into .pyd (which is the python equivalent to dll):
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/

Stani

···

--

Stani's Python Editor wrote:

Or another alternative... With pyrex you can compile your modules into .pyd (which is the python equivalent to dll): http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/

[ we are a bit OT, but... :slight_smile: ]

So, are you saying that I can put my .py code into a .pyx file
directly *without* modifications, compile and call with a simple

"""
from pyrex_compiled_module import my_py_class
myc = my_py_class()
"""

?

Thanks,
Michele

There are a few examples where Pyrex doesn't implement some Python
syntax, but most of it is convertable to Pyrex.

- Josiah

···

Michele Petrazzo - Unipex srl <michele.petrazzo@unipex.it> wrote:

Stani's Python Editor wrote:
> Or another alternative... With pyrex you can compile your modules
> into .pyd (which is the python equivalent to dll):
> http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
>

[ we are a bit OT, but... :slight_smile: ]

So, are you saying that I can put my .py code into a .pyx file
directly *without* modifications, compile and call with a simple

"""
from pyrex_compiled_module import my_py_class
myc = my_py_class()
"""