Anybody has ported talib to Python via SWIG

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Jan 26 19:33:50 CET 2008


En Thu, 24 Jan 2008 20:49:33 -0200, Aldo Ceccarelli  
<ceccarelli.aldo at gmail.com> escribi�:

> Hi Everybody,
> TaLib (technical analysis package with function indicators coded in C/C
> ++, http://www.ta-lib.org ) has a complete library with source in C/C+
> +.
>
> I am new to SWIG (wrapper interface generator) and would really
> appreciate any Python (.py) port of TaLib to be able to call and test
> TaLib's functions (f.i. MACD, Parabolic SAR and so on) in some Python
> (2.5) script.
>
> Do you have idea whether TaLib Python package has already been
> generated and can be eventually downloaded anywhere?

If Talib has a C API (not C++), the ctypes module can be used to call  
those C functions, so there is no need to write a special SWIG wrapper. In  
fact it may be much easier to do that way.

ctypes is a standard module on Python 2.5, and is documented here:
http://docs.python.org/lib/module-ctypes.html

-- 
Gabriel Genellina




More information about the Python-list mailing list