MpyCrossSharp 1.0.0
dotnet add package MpyCrossSharp --version 1.0.0
NuGet\Install-Package MpyCrossSharp -Version 1.0.0
<PackageReference Include="MpyCrossSharp" Version="1.0.0" />
<PackageVersion Include="MpyCrossSharp" Version="1.0.0" />
<PackageReference Include="MpyCrossSharp" />
paket add MpyCrossSharp --version 1.0.0
#r "nuget: MpyCrossSharp, 1.0.0"
#:package MpyCrossSharp@1.0.0
#addin nuget:?package=MpyCrossSharp&version=1.0.0
#tool nuget:?package=MpyCrossSharp&version=1.0.0
MpyCrossSharp
MpyCrossSharp is a pure-C# (.NET 10) port of MicroPython's mpy-cross — it
compiles MicroPython source (.py) into .mpy bytecode containers, entirely in
managed code, with no native dependency. It is AOT-compatible (no dynamic
codegen / reflection emit), so it runs on iOS, Android, macOS, Windows and Linux.
Usage
using MpyCrossSharp;
var compiler = new MpyCompiler();
byte[] mpy = compiler.Compile("print('hello')", target: MpyTarget.Default);
File.WriteAllBytes("hello.mpy", mpy);
Licensing
MIT. Portions are ported from MicroPython's mpy-cross (the bytecode emitter and
.mpy container format), © Damien P. George and contributors — that MIT notice
is retained in LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 190 | 7/14/2026 |