IronPython 3.4.2

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 Standard 2.0

.NET 6.0

.NET 8.0

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