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

Showing the top 20 packages that depend on IronPython.

Packages Downloads
IronPython.StdLib
The Python Standard Library, for use with IronPython.
7
IronPython.StdLib
The Python Standard Library, for use with IronPython.
6

.NET Framework 4.6.2

.NET 6.0

.NET Core 3.1

.NET Standard 2.0

Version Downloads Last updated
3.4.2 8 19.03.2025
3.4.1 7 09.01.2025
3.4.0 7 19.03.2025
3.4.0-beta1 6 19.03.2025
3.4.0-alpha1 6 19.03.2025
2.7.12 4 19.03.2025
2.7.11 6 19.03.2025
2.7.11-candidate1 4 19.03.2025
2.7.10 6 19.03.2025
2.7.10-candidate1 4 19.03.2025
2.7.10-alpha0 6 19.03.2025
2.7.9 6 19.03.2025
2.7.9-candidate1 4 19.03.2025
2.7.8.1 6 19.03.2025
2.7.8 4 19.03.2025
2.7.8-beta1 6 19.03.2025
2.7.7 5 19.03.2025
2.7.7-candidate2 4 19.03.2025
2.7.7-candidate1 4 19.03.2025
2.7.7-candidate0 4 19.03.2025
2.7.6-final3 6 19.03.2025
2.7.5 6 19.03.2025
2.7.5-candidate2 4 19.03.2025
2.7.5-candidate1 4 19.03.2025
2.7.5-beta3 7 19.03.2025
2.7.5-beta2 6 19.03.2025
2.7.5-beta1 6 19.03.2025
2.7.4 6 19.03.2025
2.7.4-candidate1 4 19.03.2025
2.7.4-beta2 6 19.03.2025
2.7.4-beta1 6 19.03.2025
2.7.4-alpha1 6 19.03.2025
2.7.3 6 19.03.2025
2.7.3-candidate1 4 19.03.2025
2.7.3-beta1 6 19.03.2025
2.7.3-alpha2 7 19.03.2025
2.7.3-alpha1 6 19.03.2025
2.7.2 6 19.03.2025
2.7.2-final1 6 19.03.2025
2.7.2-candidate1 4 19.03.2025
2.7.2-beta1 6 19.03.2025
2.6.1 6 19.03.2025