digi xbee ¿How to convert .mpy file to .py?

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
JotaPE
Posts: 1
Joined: Thu Sep 09, 2021 2:50 pm

digi xbee ¿How to convert .mpy file to .py?

Post by JotaPE » Thu Sep 09, 2021 3:42 pm

hi a friend of my on his work need's to take a .mpy file to transform it to a "readable" file. I know that it was a .py file and it was transform to an .mpy file and the process i thinks is convert to binary for the xbee, how ever, the original file i no where to be found i try to find a way to reverse the file but i can't i have no experience whit it. Does enbody know what to do in this case? How to reverse a .mpy file to an .py or .txt file? because if we try to open it on Visual Studio Code it's not readable, there are just strange simbols.

P.D: Sorry if my English is a bit bad. And the fact that i don't know to upload a picture of what the code show.

Post Reply