How to achieve pyc only deployment for module in python3.6
Kirill Balunov
kirillbalunov at gmail.com
Tue Oct 2 05:11:37 EDT 2018
On Tue, Oct 2, 2018, 08:42 Chris Angelico <rosuav at gmail.com> wrote:
> On Tue, Oct 2, 2018 at 12:01 PM Chandana Pattanayak
> <chandana.pattanayak at patterneffectslabs.com> wrote:
> >
> > Hi,
> >
> > I have a requirement to provide basic code protection for a module in our
> > product suite. With python 3.6 the .pyc files are created under pycache ,
> > so if i remove the py file the module is not found anymore.
>
> If you want code protection, the ONLY reliable way to do it is to not
> provide the code *at all*, in any form.
>
I think Cython is a rather reliable way to do it. There is a nice post to
start with “Protecting Python Sources With Cython” @2parrots
https://medium.com/@xpl/protecting-python-sources-using-cython-dcd940bb188e
With kind regards,
-gdg
>
More information about the Python-list
mailing list