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.

Showing the top 20 packages that depend on IronPython.

Packages Downloads
IronPython.StdLib
The Python Standard Library, for use with IronPython.
15
IronPython.StdLib
The Python Standard Library, for use with IronPython.
14
IronPython.StdLib
The Python Standard Library, for use with IronPython.
13
IronPython.StdLib
The Python Standard Library, for use with IronPython.
12

.NET Framework 4.6.2

.NET Standard 2.0

.NET 6.0

.NET 8.0

Version Downloads Last updated
3.4.2 15 19.03.2025
3.4.1 15 09.01.2025
3.4.0 15 19.03.2025
3.4.0-beta1 13 19.03.2025
3.4.0-alpha1 12 19.03.2025
2.7.12 10 19.03.2025
2.7.11 13 19.03.2025
2.7.11-candidate1 10 19.03.2025
2.7.10 13 19.03.2025
2.7.10-candidate1 10 19.03.2025
2.7.10-alpha0 14 19.03.2025
2.7.9 14 19.03.2025
2.7.9-candidate1 10 19.03.2025
2.7.8.1 11 19.03.2025
2.7.8 11 19.03.2025
2.7.8-beta1 13 19.03.2025
2.7.7 13 19.03.2025
2.7.7-candidate2 10 19.03.2025
2.7.7-candidate1 10 19.03.2025
2.7.7-candidate0 10 19.03.2025
2.7.6-final3 13 19.03.2025
2.7.5 14 19.03.2025
2.7.5-candidate2 10 19.03.2025
2.7.5-candidate1 10 19.03.2025
2.7.5-beta3 13 19.03.2025
2.7.5-beta2 13 19.03.2025
2.7.5-beta1 14 19.03.2025
2.7.4 14 19.03.2025
2.7.4-candidate1 10 19.03.2025
2.7.4-beta2 13 19.03.2025
2.7.4-beta1 13 19.03.2025
2.7.4-alpha1 13 19.03.2025
2.7.3 14 19.03.2025
2.7.3-candidate1 10 19.03.2025
2.7.3-beta1 13 19.03.2025
2.7.3-alpha2 14 19.03.2025
2.7.3-alpha1 12 19.03.2025
2.7.2 14 19.03.2025
2.7.2-final1 12 19.03.2025
2.7.2-candidate1 10 19.03.2025
2.7.2-beta1 13 19.03.2025
2.6.1 14 19.03.2025