IronPython 3.4.0

.NET 6.0 .NET Core 3.1 .NET Standard 2.0 .NET Framework 4.6.2
dotnet add package IronPython --version 3.4.0
NuGet\Install-Package IronPython -Version 3.4.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IronPython" Version="3.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IronPython --version 3.4.0
#r "nuget: IronPython, 3.4.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install IronPython as a Cake Addin
#addin nuget:?package=IronPython&version=3.4.0

// Install IronPython as a Cake Tool
#tool nuget:?package=IronPython&version=3.4.0

IronPython Engine

IronPython is an open-source implementation of the Python programming language that is tightly integrated with .NET. IronPython can use .NET and Python libraries, and other .NET languages can use Python code just as easily.

This package contains the IronPython engine that allows embedding an IronPython interpreter in a .NET application. The interpreted Python code can call the .NET code and can be called from the .NET code. This package does not contain the IronPython Standard Library, which is distributed separatery as package IronPython.StdLib.

Example

Execute Python code and call it from .NET code:

var eng = IronPython.Hosting.Python.CreateEngine();
var scope = eng.CreateScope();
eng.Execute(@"
def greetings(name):
    return 'Hello ' + name.title() + '!'
", scope);
dynamic greetings = scope.GetVariable("greetings");
System.Console.WriteLine(greetings("world"));

Differences with CPython

While compatibility with CPython is one of our main goals with IronPython 3, there are still some differences that may cause issues. See Differences from CPython for details.

Package compatibility

See the Package compatibility document for information on compatibility with popular Python packages. Note that to run most packages, IronPython Standard Library must be present.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (55)

Showing the top 5 NuGet packages that depend on IronPython:

Package Downloads
IronPython.StdLib

The Python Standard Library, for use with IronPython.

DaisyTech.PreTool.Data

DaisyTech PreTool Data

Kephas.Scripting.Python The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Provides the infrastructure for executing Python scripts. Typically used areas and classes/interfaces/services: - PythonLanguageService. Kephas Framework ("stone" in aramaic) aims to deliver a solid infrastructure for applications and application ecosystems.

CubeBuild.Application

CubeBuild Core is the dependency libraries for the public release CMS CubeBuild. It is incorporated into the default CubeBuild project, or can be integrated into any ASP.NET MVC application as an inbuild content manager.

Crosser.EdgeNode.Modules.IronPython

Package Description

GitHub repositories (24)

Showing the top 5 popular GitHub repositories that depend on IronPython:

Repository Stars
hanmin0822/MisakaTranslator
御坂翻译器—Galgame/文字游戏/漫画多语种实时机翻工具
antonpup/Aurora
Unified lighting effects across multiple brands and various games.
uxmal/reko
Reko is a binary decompiler.
ArduPilot/MissionPlanner
Mission Planner Ground Control Station for ArduPilot (c# .net)
DynamoDS/Dynamo
Open Source Graphical Programming for Design
Version Downloads Last updated
3.4.0 8,371 12/12/2022
3.4.0-beta1 21,807 4/30/2022
3.4.0-alpha1 45,799 4/20/2021
2.7.12 133,153 1/21/2022
2.7.11 1,740,206 11/17/2020
2.7.11-candidate1 1,416 9/15/2020
2.7.10 193,649 4/27/2020
2.7.10-candidate1 36,167 11/1/2019
2.7.10-alpha0 28,485 2/23/2019
2.7.9 542,167 10/9/2018
2.7.9-candidate1 3,635 8/20/2018
2.7.8.1 175,194 2/28/2018
2.7.8 32,853 2/16/2018
2.7.8-beta1 2,304 11/30/2017
2.7.7 229,521 12/11/2016
2.7.7-candidate2 1,582 11/7/2016
2.7.7-candidate1 1,529 10/22/2016
2.7.7-candidate0 1,516 10/16/2016
2.7.6-final3 3,009 8/21/2016
2.7.5 356,237 12/6/2014
2.7.5-candidate2 1,747 11/25/2014
2.7.5-candidate1 2,382 11/15/2014
2.7.5-beta3 1,627 10/20/2014
2.7.5-beta2 2,162 5/25/2014
2.7.5-beta1 13,813 3/19/2014
2.7.4 101,481 9/8/2013
2.7.4-candidate1 1,703 8/18/2013
2.7.4-beta2 1,690 8/3/2013
2.7.4-beta1 1,981 7/3/2013
2.7.4-alpha1 1,704 5/11/2013
2.7.3 29,154 7/7/2012
2.7.3-candidate1 1,776 6/30/2012
2.7.3-beta1 1,754 6/11/2012
2.7.3-alpha2 1,717 5/23/2012
2.7.3-alpha1 1,731 4/29/2012
2.7.2 33,869 3/12/2012
2.7.2-final1 3,089 3/13/2012
2.7.2-candidate1 1,758 3/4/2012
2.7.2-beta1 1,965 2/27/2012
2.6.1 27,846 1/7/2011