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 28 01/02/2025
3.4.1 41 02/14/2024
3.4.0 52 02/14/2024
3.4.0-beta1 40 02/14/2024
3.4.0-alpha1 40 02/14/2024
2.7.12 31 02/14/2024
2.7.11 34 02/14/2024
2.7.11-candidate1 41 02/14/2024
2.7.10 33 02/14/2024
2.7.10-candidate1 43 02/14/2024
2.7.10-alpha0 39 02/14/2024
2.7.9 37 02/14/2024
2.7.9-candidate1 32 02/14/2024
2.7.8.1 38 02/14/2024
2.7.8 35 02/14/2024
2.7.8-beta1 39 02/14/2024
2.7.7 43 02/14/2024
2.7.7-candidate2 43 02/14/2024
2.7.7-candidate1 32 02/14/2024
2.7.7-candidate0 35 02/14/2024
2.7.6-final3 37 02/14/2024
2.7.5 38 02/10/2020
2.7.5-candidate2 34 02/14/2024
2.7.5-candidate1 40 02/14/2024
2.7.5-beta3 34 02/14/2024
2.7.5-beta2 37 02/14/2024
2.7.5-beta1 37 02/14/2024
2.7.4 36 04/10/2024
2.7.4-candidate1 35 02/14/2024
2.7.4-beta2 37 02/14/2024
2.7.4-beta1 38 02/14/2024
2.7.4-alpha1 39 02/14/2024
2.7.3 28 02/14/2024
2.7.3-candidate1 31 02/14/2024
2.7.3-beta1 42 02/14/2024
2.7.3-alpha2 37 02/14/2024
2.7.3-alpha1 41 02/14/2024
2.7.2 31 04/17/2024
2.7.2-final1 37 02/14/2024
2.7.2-candidate1 32 04/17/2024
2.7.2-beta1 34 02/14/2024
2.6.1 33 02/14/2024