Geeks With Blogs
Paul Lee Sharepoint bumps and bruises

For those of us who want to start programming sharepoint but get intimidated by the extensive setup needed to begin with C# and visual studio, IronPython is for you.  Frankly, I have been too lazy to take on the task of installing and configuring visual studio on a VM with MOSS.

My background(many moons ago) is java development. I'm not a python expert. Nor am I a sharepoint programming expert. I may not even be considered a java expert anymore. And I'm definitely not a C# or .NET guy. I'm writing about iron python because it has been so easy for me to bang out useful scripts without having to get into the complexities(at least for me) of Visual Studio and .NET.

For the C# or python developers, you will probably laugh at the code I will be posting. My intention here is to show how easy it is write a script to do something useful.  Hopefully my code will get better as I learn more. 

Also, just to be clear, you will not be creating huge sharepoint programs or features with iron python. To do that, you will still need visual studio and C#.

So what is IronPython good for? I have been able to create scripts that do basic administrative tasks that sharepoint doesn't provide out-of-the-box.  I know there are many other vendor tools out there that fill in these administrative gaps of sharepoint but my company is not spending any money these days. 

Here's how to get started:

- download IronPython on your MOSS (dev or uat) server- The zipped version will do.  I think if you use 2.0 and up, you will need the latest version of .NET which is not required for MOSS.  I am using 1.1.2 because of this.  Yes, I'm lazy...

- Just unzip the folder somewhere and you're done.  You can test it by double clicking ipy.exe. 


    print "Hello World"

That's it!  You've just installed and written the defacto Hello world program.  Easy right?  It gets better.  I'll begin posting all the scripts I've written using the sharepoint API and explaining how easy it was to write it.  Stay tuned...

For those of you that want to get more technical with IronPython or just Python, here are some links: - Official Python site. - Official IronPython site. - Good free Python book. 

Be sure to have the API's handy.




Posted on Wednesday, April 29, 2009 10:35 PM Iron Python and Sharepoint | Back to top

Related Posts on Geeks With Blogs Matching Categories

Comments on this post: IronPython - Sharepoint programming for the rest of us

# re: IronPython - Sharepoint programming for the rest of us
Requesting Gravatar...
How far did you get with this effort? We're actually considering using IronPython for scripting SharePoint where I am. Seems like a great idea if it works.

How did you run the scripts?
Left by A Nunez on Dec 10, 2014 2:37 PM

Your comment:
 (will show your gravatar)

Copyright © Paul Lee | Powered by: