ta-lib-takt
TA-Lib 0.8.2 for Python with a faster core. The Python package is the official TA-Lib 0.8.2 wrapper,
unchanged (import talib); only the C library inside it is replaced by a TAKT build of TA-Lib C 0.8.1,
the same C library version that the official 0.8.2 package bundles. Every output is identical to the
official package, bit for bit.
Install
pip uninstall -y TA-Lib # both packages provide `import talib`
pip install ta-lib-takt
Linux x86-64 with glibc 2.29 or newer, CPython 3.11 to 3.15, including the free-threaded builds 3.14t and 3.15t. On Python 3.9 and 3.10 pip installs ta-lib-takt 0.8.1 (the official 0.8.2 package has no builds for them). The faster paths need AVX2 and FMA (Intel Haswell, AMD Zen or newer); on other CPUs the original code runs. Gains need long series: for short ones (a few thousand bars) the original code runs at the original speed.
How much faster
A parameter sweep (99 periods over one million bars) through the unchanged Python wrapper, the whole process timed, against the official TA-Lib 0.8.1 wheel from PyPI. AMD Zen 3 (Threadripper PRO 5975WX), 7 interleaved rounds with takt-harness; the output was identical in every run. Measured with ta-lib-takt 0.8.1, which carries the same C library as 0.8.2:
| Indicator | Wall-time factor | Indicator | Wall-time factor |
|---|---|---|---|
| CCI | 6.35× | EMA | 2.17× |
| DX | 2.81× | RSI | 2.03× |
| ADX | 2.80× | BBANDS | 1.23× |
| SAR | 2.58× | MACD | 1.20× |
| STOCH | 2.18× | ATR | 1.14× |
Called from C the same library is 2.3–7.4× faster on these seven indicators, on AMD Zen 3 and Zen 4. All other TA-Lib functions run the original code. Full measurements, readings and the reproduction steps: https://taktcycles.com/showcase/talib/README.html?src=pypi
The same output, bit for bit
Every output array and both output indices match the official TA-Lib library: 4.59 million C API
calls and 40,824 calls through the Python wrapper were compared with zero differences, over random
walks, constant, alternating and volatile series, NaN and infinity inserts, magnitudes from 1e-300
to 1e300, lengths from 1 to one million and 20 periods. For 0.8.2 the 40,824 wrapper calls were
repeated against the official TA-Lib 0.8.2 package on CPython 3.11, 3.12, 3.13, 3.14, 3.14t, 3.15
and 3.15t, together with inputs carrying NaN of both signs and inputs moved by one ulp up and down,
with zero differences. To check on your own data, compute the same indicators in two virtual
environments (one with TA-Lib, one with ta-lib-takt) and compare the array shapes, dtypes and
bytes (array.tobytes()), as well as the output indices. numpy.array_equal(..., equal_nan=True)
checks values, but cannot establish bitwise equality of signed zeros or NaN encodings.
Your own code, this fast?
TAKT offers a free initial assessment of one repeated CPU workload, starting from its description. For suitable Rust and C/C++ projects, Level 1 shows a measured speedup before payment. Python and custom-library engineering use a separately scoped and priced Level 2 order, with agreed output requirements, payment and acceptance conditions. Describe one slow run: https://taktcycles.com/?src=pypi#start · Measurements and updates: https://t.me/taktcycles
Licence
The Python wrapper is TA-Lib's (BSD 2-clause, John Benediktsson). The C library is a modified build of TA-Lib C 0.8.1 (BSD 3-clause, Mario Fortier); the source of the modified functions is not published. Both licences are included. This package is not affiliated with the TA-Lib project.
Questions, bugs, a function you want faster: https://github.com/abx-takt/ta-lib-takt/issues
Metadata
Release files for ta-lib-takt 0.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 28.4 MB
Release files / ta_lib_takt-0.8.2-cp315-cp315t-manylinux_2_29_x86_64.whl
| Download URL | ta_lib_takt-0.8.2-cp315-cp315t-manylinux_2_29_x86_64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.29+ x86-64 |
|
SHA-256 checksum How to use checksums |
c1e44c3ca4b9cc55078a83f6173337cafe613d63f5537aebd7282b7f71ef66bf
|
|
BLAKE2b-256 checksum How to use checksums |
692f21694cd37ea291aef415ec8b9e2186715e8efb1b5d8ea6c3a16332487a15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / ta_lib_takt-0.8.2-cp315-cp315-manylinux_2_29_x86_64.whl
| Download URL | ta_lib_takt-0.8.2-cp315-cp315-manylinux_2_29_x86_64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.15 Linux glibc 2.29+ x86-64 |
|
SHA-256 checksum How to use checksums |
b3bc4422ca0123a4746a2908fda1dad5634e4563cc833c1dcefb72742c3a3803
|
|
BLAKE2b-256 checksum How to use checksums |
25d656b0f6972797d8082466f2604b3523f95a937ec7d8b7dba52de68a66028e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / ta_lib_takt-0.8.2-cp314-cp314t-manylinux_2_29_x86_64.whl
| Download URL | ta_lib_takt-0.8.2-cp314-cp314t-manylinux_2_29_x86_64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.29+ x86-64 |
|
SHA-256 checksum How to use checksums |
567b9d7bb34b113baf1e0752a499d6b2bb476c15308d8a7d51033df34565526f
|
|
BLAKE2b-256 checksum How to use checksums |
c43249b30dbbc94ed99d453b113b7c6dada0a6f504ded6120ac23dbe4c614744
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / ta_lib_takt-0.8.2-cp314-cp314-manylinux_2_29_x86_64.whl
| Download URL | ta_lib_takt-0.8.2-cp314-cp314-manylinux_2_29_x86_64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.14 Linux glibc 2.29+ x86-64 |
|
SHA-256 checksum How to use checksums |
78c4bf6b59fd79dac9a0e00a77df21ae666e6c79b694008021f6500ee0ac1684
|
|
BLAKE2b-256 checksum How to use checksums |
452e051db4a3d9e8c19df3aabe1930c511d0c2333c492c3db2104b5ba05e59b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / ta_lib_takt-0.8.2-cp313-cp313-manylinux_2_29_x86_64.whl
| Download URL | ta_lib_takt-0.8.2-cp313-cp313-manylinux_2_29_x86_64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.13 Linux glibc 2.29+ x86-64 |
|
SHA-256 checksum How to use checksums |
4cb027611116453ec4a92f2a81b219c97ac4a01bc8aa1c00680776ed84a545ed
|
|
BLAKE2b-256 checksum How to use checksums |
4352487baa1a2917c82702a5568c4896a586ff507fb2702b0af829642d210b1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / ta_lib_takt-0.8.2-cp312-cp312-manylinux_2_29_x86_64.whl
| Download URL | ta_lib_takt-0.8.2-cp312-cp312-manylinux_2_29_x86_64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | CPython 3.12 Linux glibc 2.29+ x86-64 |
|
SHA-256 checksum How to use checksums |
734875684ca8a584cafe0e614b35640184f9631da1a38915df32347ae8b51eb8
|
|
BLAKE2b-256 checksum How to use checksums |
700693479121fc8786b1b27c183a5783b58d0a8efb3efe7fb70125208fd99c54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / ta_lib_takt-0.8.2-cp311-cp311-manylinux_2_29_x86_64.whl
| Download URL | ta_lib_takt-0.8.2-cp311-cp311-manylinux_2_29_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.11 Linux glibc 2.29+ x86-64 |
|
SHA-256 checksum How to use checksums |
1c389ca2d447eaf609191f9a07285ea252d6f515cb2ae01fc33a27700cfd261c
|
|
BLAKE2b-256 checksum How to use checksums |
96dc311611a2367bae587cf9d8c3ed42c58a1b0305fc192412aa71f67359d89e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for ta-lib-takt 0.8.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.