FileInfo

Sprachen

Überblick

What is an MPY file? An MPY file is a MicroPython module. It contains binary data, which is usually generated by compiling Python source code ( .PY ) files. MPY files may also contain machine code compiled from source code files written in other languages, such as C.

More Information MicroPython is a Python implementation that is optimized to run programs on a microcontroller . It contains a cross-compiler, known as mpy-cross, which is used to pre-compile Python scripts to MPY files. These bytecode files are meant to be included in a microcontroller's firmware , so they are available to MicroPython programs run on that microcontroller. Some MPY files may contain machine code compiled from programs written in a language other than Python. These files are used to import non-Python libraries and functions into MicroPython programs. Non-Python MPY files are created using MicroPython's mpy_ld.py tool, which links together and compiles a set of .O files.

Popularity1.3/5

3 votes

Quick AppOpen with
VerifiedVerified by FileInfo.com The FileInfo.com team has independently researched the MicroPython Module file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified. If you would like to suggest any additions or updates to this page, please let us know .

Document Icon

Brotkrümel

DeveloperDamien George
Popularity1.3 | 3 Votes

Previous / Next

In-Depth

.MPY File Extension

MicroPython Module

DeveloperDamien George
Popularity
1.3  |  3 Votes
 

What is an MPY file?

An MPY file is a MicroPython module. It contains binary data, which is usually generated by compiling Python source code ( .PY ) files. MPY files may also contain machine code compiled from source code files written in other languages, such as C.

More Information

MicroPython is a Python implementation that is optimized to run programs on a microcontroller . It contains a cross-compiler, known as mpy-cross, which is used to pre-compile Python scripts to MPY files. These bytecode files are meant to be included in a microcontroller's firmware , so they are available to MicroPython programs run on that microcontroller.

Some MPY files may contain machine code compiled from programs written in a language other than Python. These files are used to import non-Python libraries and functions into MicroPython programs. Non-Python MPY files are created using MicroPython's mpy_ld.py tool, which links together and compiles a set of .O files.

How to open an MPY file

MPY files are not meant to be opened. Instead, they are meant to be run using MicroPython and referenced within MicroPython programs.

Open over 400 file formats with File Viewer Plus . Free Download

Programs that open MPY files

Sort

Pricing

Program Name

Platform

Reset

X

Windows

MicroPython

Free

Mac

MicroPython

Free

Linux

MicroPython

Free

Category: Developer Files

Updated: April 13, 2022

FAQ

What is an MPY file?
An MPY file is a MicroPython module. It contains binary data, which is usually generated by compiling Python source code (.PY) files. MPY files may also contain machine code compiled from source code files written in other languages, such as C.
How do I open an .mpy file?
MPY files are not meant to be opened. Instead, they are meant to be run using MicroPython and referenced within MicroPython programs.