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 and Polyglot Notebooks. 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 net481
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 (56)

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 (26)

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 24,867 12/12/2022
3.4.0-beta1 27,631 4/30/2022
3.4.0-alpha1 48,147 4/20/2021
2.7.12 157,566 1/21/2022
2.7.11 1,900,716 11/17/2020
2.7.11-candidate1 1,460 9/15/2020
2.7.10 201,820 4/27/2020
2.7.10-candidate1 38,528 11/1/2019
2.7.10-alpha0 28,852 2/23/2019
2.7.9 553,494 10/9/2018
2.7.9-candidate1 3,647 8/20/2018
2.7.8.1 179,114 2/28/2018
2.7.8 34,188 2/16/2018
2.7.8-beta1 2,321 11/30/2017
2.7.7 235,312 12/11/2016
2.7.7-candidate2 1,598 11/7/2016
2.7.7-candidate1 1,547 10/22/2016
2.7.7-candidate0 1,533 10/16/2016
2.7.6-final3 3,161 8/21/2016
2.7.5 359,930 12/6/2014
2.7.5-candidate2 1,764 11/25/2014
2.7.5-candidate1 2,400 11/15/2014
2.7.5-beta3 1,645 10/20/2014
2.7.5-beta2 2,182 5/25/2014
2.7.5-beta1 13,853 3/19/2014
2.7.4 103,628 9/8/2013
2.7.4-candidate1 1,723 8/18/2013
2.7.4-beta2 1,711 8/3/2013
2.7.4-beta1 1,999 7/3/2013
2.7.4-alpha1 1,723 5/11/2013
2.7.3 29,744 7/7/2012
2.7.3-candidate1 1,802 6/30/2012
2.7.3-beta1 1,780 6/11/2012
2.7.3-alpha2 1,743 5/23/2012
2.7.3-alpha1 1,760 4/29/2012
2.7.2 34,388 3/12/2012
2.7.2-final1 3,157 3/13/2012
2.7.2-candidate1 1,788 3/4/2012
2.7.2-beta1 1,999 2/27/2012
2.6.1 28,951 1/7/2011