IronPython 3.4.1

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 separately 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.

No packages depend on IronPython.

.NET Framework 4.6.2

.NET 6.0

.NET Core 3.1

.NET Standard 2.0

Version Downloads Last updated
3.4.2 21 01/02/2025
3.4.1 35 02/14/2024
3.4.0 46 02/14/2024
3.4.0-beta1 26 02/14/2024
3.4.0-alpha1 31 02/14/2024
2.7.12 23 02/14/2024
2.7.11 30 02/14/2024
2.7.11-candidate1 32 02/14/2024
2.7.10 28 02/14/2024
2.7.10-candidate1 33 02/14/2024
2.7.10-alpha0 31 02/14/2024
2.7.9 32 02/14/2024
2.7.9-candidate1 28 02/14/2024
2.7.8.1 31 02/14/2024
2.7.8 29 02/14/2024
2.7.8-beta1 34 02/14/2024
2.7.7 37 02/14/2024
2.7.7-candidate2 37 02/14/2024
2.7.7-candidate1 26 02/14/2024
2.7.7-candidate0 28 02/14/2024
2.7.6-final3 30 02/14/2024
2.7.5 31 02/10/2020
2.7.5-candidate2 28 02/14/2024
2.7.5-candidate1 34 02/14/2024
2.7.5-beta3 29 02/14/2024
2.7.5-beta2 32 02/14/2024
2.7.5-beta1 33 02/14/2024
2.7.4 30 04/10/2024
2.7.4-candidate1 29 02/14/2024
2.7.4-beta2 32 02/14/2024
2.7.4-beta1 33 02/14/2024
2.7.4-alpha1 34 02/14/2024
2.7.3 24 02/14/2024
2.7.3-candidate1 26 02/14/2024
2.7.3-beta1 38 02/14/2024
2.7.3-alpha2 32 02/14/2024
2.7.3-alpha1 35 02/14/2024
2.7.2 25 04/17/2024
2.7.2-final1 32 02/14/2024
2.7.2-candidate1 27 04/17/2024
2.7.2-beta1 30 02/14/2024
2.6.1 27 02/14/2024