Giter Site home page Giter Site logo

disouzam / ironpython3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ironlanguages/ironpython3

0.0 0.0 0.0 62.05 MB

[Fork] Implementation of Python 3.x for .NET Framework that is built on top of the Dynamic Language Runtime.

License: Apache License 2.0

Shell 0.01% Python 53.20% C 0.03% C# 22.80% PowerShell 0.15% CSS 0.01% Makefile 0.01% HTML 23.72% PLSQL 0.04% Batchfile 0.01% Roff 0.04% VBScript 0.01%

ironpython3's Introduction

IronPython 3

There is still much that needs to be done to support Python 3.x. We are working on it, albeit slowly. We welcome all those who would like to help!

Official Website

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.

IronPython 3 targets Python 3, including the re-organized standard library, Unicode strings, and all of the other new features.

What? Where?
Windows/Linux/macOS Builds Build status Github build status
Downloads NuGet Release
Help Gitter chat StackExchange

Examples

The following C# program:

using System.Windows.Forms;

MessageBox.Show("Hello World!", "Greetings", MessageBoxButtons.OKCancel);

can be written in IronPython as follows:

import clr
clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import MessageBox, MessageBoxButtons

MessageBox.Show("Hello World!", "Greetings", MessageBoxButtons.OKCancel)

Here is an example how to call Python code from a C# program.

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"));

This example assumes that IronPython has been added to the C# project as a NuGet package.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

State of the Project

The current target is Python 3.4, although features and behaviors from later versions may be included.

See the following lists for features from each version of CPython that have been implemented:

Contributing

For details on contributing see the Contributing article.

Upgrading from IronPython 2

For details on upgrading from IronPython 2 to 3 see the Upgrading from IronPython 2 to 3 article.

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

Installation

Binaries of IronPython 3 can be downloaded from the release page, available in various formats: .msi, .zip, .deb, .pkg. The IronPython package is also available on NuGet. See the installation document for detailed instructions on how to install a standalone IronPython interpreter on various operating systems and .NET frameworks.

Build

See the building document. Since the main development is on Windows, bugs on other platforms may inadvertently be introduced - please report them!

Supported Platforms

IronPython 3 targets .NET Framework 4.6.2, .NET Standard 2.0 and .NET 6.0. The support for .NET and .NET Core follow the lifecycle defined on .NET and .NET Core Support Policy.

ironpython3's People

Contributors

slozier avatar bcsharp avatar slide avatar gpetrou avatar jdhardy avatar paweljasinski avatar gfmcknight avatar jameslan avatar moto-timo avatar in-code-i-trust avatar rtzoeller avatar simplicbe avatar hackf5 avatar dc366 avatar scott-xu avatar lostbenjamin avatar isaiah avatar alexkubiesa avatar alanmbarr avatar aisk avatar kuinox avatar lemon73-computing avatar komodo472 avatar michaelblyons avatar shahnerodgers avatar syn2083 avatar timgates42 avatar arontsang avatar frawst avatar ivanbakel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.