Python support?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Python support?

Michael Lynch-5
Hi all,

Very excited to see this an open source package of this caliber supporting Python!

What's the status of python support for quantlib?
Do I need to install the C++ package?

There were no examples in the Windows install. But if found some in the CVS. I got an error running:

 /cvsroot/quantlib/QuantLib-Python/QuantLib/test/Attic/implied_volatility.py:

ImportError: cannot import name EuropeanAnalyticEngine

The 'Deprecated List' web page says we should use EuropeanAnalyticEngine.  Where is it?  I see EuropeanOption (depreciated class) in Quantlib.py.

Are there any work arounds?

Thanks,
Mike


____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


Reply | Threaded
Open this post in threaded view
|

Re: Python support?

Luigi Ballabio-2
On 2004.02.06 20:43, Michael Lynch wrote:
> What's the status of python support for quantlib?

Michael,
        sorry for the late reply. The Python module works, but lacks in  
documentation compared with C++. I'll try and translate the C++  
examples. In the meantime, your best bet might be to have a look at
the .i files in the SWIG folder. They declare the interface of the  
exported classes and functions. Feel free to write again if you get  
stuck somewhere.

> Do I need to install the C++ package?

That depends on your platform. If you're using Linux or another
Unix-like OS, you need to install the C++ package. If you're under  
Windows instead, the distributed Python module is self-contained.

Later,
        Luigi