Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.python
Anybody has ported talib to Python via SWIG
Aldo Ceccarelli
1/24/2008 10:50:00 PM
Hi Everybody,
TaLib (technical analysis package with function indicators coded in C/C
++,
http://www....
) 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?
Many thanks, kind regards.
Aldo
2 Answers
Gabriel Genellina
1/26/2008 6:34:00 PM
0
En Thu, 24 Jan 2008 20:49:33 -0200, Aldo Ceccarelli
<ceccarelli.aldo@gmail.com> escribi�:
> Hi Everybody,
> TaLib (technical analysis package with function indicators coded in C/C
> ++,
http://www....
) 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-c...
--
Gabriel Genellina
Aldo Ceccarelli
1/28/2008 1:23:00 PM
0
On 26 Gen, 19:33, "Gabriel Genellina" <gagsl-...@yahoo.com.ar> wrote:
> En Thu, 24 Jan 2008 20:49:33 -0200, Aldo Ceccarelli
> <ceccarelli.a...@gmail.com> escribi?:
>
> > Hi Everybody,
> > TaLib (technical analysis package with function indicators coded in C/C
> > ++,
http://www....
) 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-c...
>
> --
> Gabriel Genellina
Many thanks a lot, Gabriel.
I will study ctypes and its applicability to ta-lib in particular; in
negative case I will go through ta-lib forum available (for registered
users) at
http://www...
here I have just found several posts of
people describing their path to ta-lib port via SWIG too. Again thanks
and kindest regards:-) Aldo
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Anybody has ported talib to Python via SWIG
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password