Skip to main content

Posts

Showing posts with the label IronPython

Running Python one liner

Running on liner Python is sometimes just fells awesome, practice with caution though. Below spits out uuid4 using Python one liner. c:\> ipy -c "import uuid; print(uuid.uuid4())" Reference(s): http://stackoverflow.com/questions/2043453/executing-python-multi-line-statements-in-the-one-line-command-line

Installing Pyro 4.30 in IronPython 2.7.4

This assumes that IronPython is installed in D:\ipy . Download Serpent archive file - used 1.7 ( link ). Serpent is needed by Pyro 4. Extract to a folder, say D:\Serpent . Change directory to where Serpent was extracted then do  D:\Serpent>D:\ipy\ipy.exe setup.py install . This will install Serpent. Download Pyro 4 tar archive ( link ). Extra to a folder, say D:\Pyro4 . Change directory to where Pyro4 was extracted then do D:\Pyro4>D:\ipy\ipy.exe setup.py install .

Read 64-bit registry key from 32-bit process in IronPython using WMI

References: http://msdn.microsoft.com/en-us/library/aa393297(v=vs.85).aspx http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_23080571.html Note(s): This is not reliable on Windows 10 or maybe related to the version of .Net? Anyway updated version is located here: http://8thstring.blogspot.com/2016/01/read-64-bit-remote-registry-from-32-bit.html

Setting up Eclipse 4.1 as IronPython IDE

There are various IDEs available out there that can be used for IronPython. One of them is Eclipse + PyDev + Subclipse for version control. The nice thing with this setup is that it provides intellesense and it does understand Python language well. Setting it up is fairly easy. First download Java Runtime, I have used v6 update 32 for this exercise. Second, download Eclipse 4.1 (4.1.2 as of this writing). The way I see it, version 4.x is not yet for the mainstream use but it does work fairly well. Third, install latest PyDev and finally install Subclipse for SVN integration. ~ts