Contents

From IronPython Cookbook

Contents

The IronPython Cookbook

This wiki contains useful example code for working with IronPython and the .NET framework.

The internet is already awash with quality examples of Python code, but .NET examples for IronPython are only just starting to arrive - so this will be the main focus of the recipes here.


Downloads

You can download binaries and sources of IronPython 1.1.1, 2.0 Beta releases, and FePy (IronPython Community Edition) from:

Adding Entries

If you want to add an entry, the easiest way is to add a link (in the relevant section) on this page, and then follow the link to create the new page. You will need to be logged in to edit pages, but setting up an account is easy.

If there isn't already an appropriate section, then add your link to Misc or create a new section.

If you need reminding about wiki markup format, there is a guide on the Help page. Or find an existing page on the wiki that looks like the one you want to make, click the Edit link and use that as a template.

Please note that for long examples and articles it is acceptable to link to external articles or blog entries. For shorter examples, please post them here on the Wiki.

Core Concepts


For the people involved, see People in IronPython.

IronPython in Action

IronPython in Action

IronPython in Action is a book on IronPython, being written by Michael Foord and Christian Muirhead for Manning Publications.

The first five chapters are an introduction to .NET, a Python tutorial, and then a walkthrough creating an example structured Python application.

The rest of the book covers working with various parts of the .NET framework (ASP, databases, web services, working with Windows and so on), getting deeper into Python (testing, protocols, metaclasses and so on) and also embedding and extending IronPython.

The first chapter is free to download and more chapters are available through the Manning Early Access Program:


For more information and resources, see the Useful Links page.

Contents

Getting Started

.NET

Windows Forms

Silverlight

For a good introduction to using IronPython with Silverlight (including code, live examples and downloads), visit The Voidspace Silverlight Pages.

  • Profiling - A quick and low-impact way to get some rudimentary performance data in a silverlight application.

Databases

SqlServer 2005 Management Objects

Network Protocols

Interop

System

Win32 & Windows Specific

System Administration and automation

.NET 3.0

Graphics & Multimedia

Embedding

XML

Misc

Compatibility

These sections document the compatibility of various Python application and libraries with IronPython.