Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > How to interface with C# without IronPython

Reply
Thread Tools

How to interface with C# without IronPython

 
 
Mudcat
Guest
Posts: n/a
 
      03-13-2009
All the topics I seem to find on this topic lead me in the direction
of IronPython, but I'm not interested right now in a reimplementation
of Python in .Net environment. There are wrappers and methods
available for integrating with Java, C, and a bevy of other
languages.

I don't know much about .Net. I have it installed and can run the
applications that I need to interface with, but I'd like to get direct
access to the libraries without having to create .exe file
workarounds. Is there a way to do that with CPython?

Thanks
 
Reply With Quote
 
 
 
 
Chris Rebert
Guest
Posts: n/a
 
      03-14-2009
On Fri, Mar 13, 2009 at 3:51 PM, Mudcat <> wrote:
> All the topics I seem to find on this topic lead me in the direction
> of IronPython, but I'm not interested right now in a reimplementation
> of Python in .Net environment. There are wrappers and methods
> available for integrating with Java, C, and a bevy of other
> languages.
>
> I don't know much about .Net. I have it installed and can run the
> applications that I need to interface with, but I'd like to get direct
> access to the libraries without having to create .exe file
> workarounds. Is there a way to do that with CPython?


Haven't used it, but Python for .NET sounds like it might be what you
want: http://pythonnet.sourceforge.net/

Cheers,
Chris

--
I have a blog:
http://blog.rebertia.com
 
Reply With Quote
 
 
 
 
Mudcat
Guest
Posts: n/a
 
      03-16-2009
On Mar 13, 8:37*pm, Christian Heimes <li...@cheimes.de> wrote:
> Chris Rebert wrote:
> > Haven't used it, butPythonfor .NET sounds like it might be what you
> > want:http://pythonnet.sourceforge.net/

>
> I've done some development for and with PythonDotNET. It's definitely
> the right thing. It works with .NET, Mono andPython2.4 to 2.6.
>
> Christian


That looks exactly like what I'm searching for. I'll give it a shot.

One question, the last update for that is back in '07. Do you know if
it's still in active development?

Thanks
 
Reply With Quote
 
Kay Schluehr
Guest
Posts: n/a
 
      03-17-2009
On 16 Mrz., 23:06, Mudcat <mnati...@gmail.com> wrote:
> On Mar 13, 8:37 pm, Christian Heimes <li...@cheimes.de> wrote:
>
> > Chris Rebert wrote:
> > > Haven't used it, butPythonfor .NET sounds like it might be what you
> > > want:http://pythonnet.sourceforge.net/

>
> > I've done some development for and with PythonDotNET. It's definitely
> > the right thing. It works with .NET, Mono andPython2.4 to 2.6.

>
> > Christian

>
> That looks exactly like what I'm searching for. I'll give it a shot.
>
> One question, the last update for that is back in '07. Do you know if
> it's still in active development?
>
> Thanks


Don't think it's maintained right now. But be aware that it runs well
for the current CLR 2.0.

For using .NET 3.5 features you just have to add

c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\

to your Python path and add assemblies with clr.AddReference as
convenient.
 
Reply With Quote
 
Mudcat
Guest
Posts: n/a
 
      03-17-2009
On Mar 17, 6:39*am, Kay Schluehr <kay.schlu...@gmx.net> wrote:
> On 16 Mrz., 23:06, Mudcat <mnati...@gmail.com> wrote:
>
>
>
> > On Mar 13, 8:37 pm, Christian Heimes <li...@cheimes.de> wrote:

>
> > > Chris Rebert wrote:
> > > > Haven't used it, butPythonfor .NET sounds like it might be what you
> > > > want:http://pythonnet.sourceforge.net/

>
> > > I've done some development for and with PythonDotNET. It's definitely
> > > the right thing. It works with .NET, Mono andPython2.4 to 2.6.

>
> > > Christian

>
> > That looks exactly like what I'm searching for. I'll give it a shot.

>
> > One question, the last update for that is back in '07. Do you know if
> > it's still in active development?

>
> > Thanks

>
> Don't think it's maintained right now. But be aware that it runs well
> for the current CLR 2.0.
>
> For using .NET 3.5 features you just have to add
>
> c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\
>
> to your Python path and add assemblies with clr.AddReference as
> convenient.


Based on the archived emails I know that it can work on Python 2.6,
but it's not clear what modifications are necessary. I downloaded the
source files to run independently, and that was capable of running
with installs of Python 2.4 and 2.5. If I download the installer will
it automatically recognize 2.6, or will I need to change paths and
possibly re-compile?

Thanks
 
Reply With Quote
 
Kay Schluehr
Guest
Posts: n/a
 
      03-17-2009
On 17 Mrz., 16:22, Mudcat <mnati...@gmail.com> wrote:
> On Mar 17, 6:39 am, Kay Schluehr <kay.schlu...@gmx.net> wrote:
>
>
>
> > On 16 Mrz., 23:06, Mudcat <mnati...@gmail.com> wrote:

>
> > > On Mar 13, 8:37 pm, Christian Heimes <li...@cheimes.de> wrote:

>
> > > > Chris Rebert wrote:
> > > > > Haven't used it, butPythonfor .NET sounds like it might be what you
> > > > > want:http://pythonnet.sourceforge.net/

>
> > > > I've done some development for and with PythonDotNET. It's definitely
> > > > the right thing. It works with .NET, Mono andPython2.4 to 2.6.

>
> > > > Christian

>
> > > That looks exactly like what I'm searching for. I'll give it a shot.

>
> > > One question, the last update for that is back in '07. Do you know if
> > > it's still in active development?

>
> > > Thanks

>
> > Don't think it's maintained right now. But be aware that it runs well
> > for the current CLR 2.0.

>
> > For using .NET 3.5 features you just have to add

>
> > c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\

>
> > to your Python path and add assemblies with clr.AddReference as
> > convenient.

>
> Based on the archived emails I know that it can work on Python 2.6,
> but it's not clear what modifications are necessary. I downloaded the
> source files to run independently, and that was capable of running
> with installs of Python 2.4 and 2.5.


> If I download the installer will
> it automatically recognize 2.6, or will I need to change paths and
> possibly re-compile?
>
> Thanks


You'll have to change the BUILD option in the project settings of the
Python.Runtime assembly. There is already a conditional compilation
switch for Python 2.6 available in the source. So after this has been
done it will build pythonnet for Python 2.6.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
IronPython and COM Interface Divya Python 1 03-14-2007 01:49 PM
Interface in IronPython edfialk Python 2 03-13-2007 03:05 AM
IronPython-0.6 is now available! Neuruss Python 85 08-15-2004 05:26 AM
Is IronPython open source or not ? CHEN Benfeng Python 3 05-06-2004 11:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57