pulkin / micropython

MicroPython implementation on Ai-Thinker GPRS module A9 (RDA8955)
https://micropython.org
MIT License
103 stars 30 forks source link

Code Protection #110

Closed garudaonekh closed 2 years ago

garudaonekh commented 2 years ago

Hi, I want to protect the code. I see many people suggest to compile the Python code into the library and use the main.py to call the code.

But I don't know how to do this low level compilation,.

Thanks for your suggestion.

Regards;

pulkin commented 2 years ago

https://docs.micropython.org/en/latest/reference/mpyfiles.html

garudaonekh commented 2 years ago

Thanks, it worked. But main.mpy not executed so I need to use a main.py and call my main file as module