ta-lib 0.5.0__tar.gz → 0.5.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. {ta_lib-0.5.0 → ta_lib-0.5.2}/MANIFEST.in +1 -0
  2. {ta_lib-0.5.0 → ta_lib-0.5.2}/PKG-INFO +20 -3
  3. {ta_lib-0.5.0 → ta_lib-0.5.2}/README.md +18 -2
  4. ta_lib-0.5.2/pyproject.toml +8 -0
  5. {ta_lib-0.5.0 → ta_lib-0.5.2}/setup.py +15 -4
  6. {ta_lib-0.5.0 → ta_lib-0.5.2}/ta_lib.egg-info/PKG-INFO +20 -3
  7. {ta_lib-0.5.0 → ta_lib-0.5.2}/ta_lib.egg-info/SOURCES.txt +6 -0
  8. ta_lib-0.5.2/ta_lib.egg-info/requires.txt +2 -0
  9. {ta_lib-0.5.0 → ta_lib-0.5.2}/talib/__init__.py +1 -1
  10. ta_lib-0.5.2/talib/_abstract.pxi +820 -0
  11. ta_lib-0.5.2/talib/_common.pxi +132 -0
  12. ta_lib-0.5.2/talib/_func.pxi +5222 -0
  13. ta_lib-0.5.2/talib/_stream.pxi +5248 -0
  14. ta_lib-0.5.2/talib/_ta_lib.pyi +981 -0
  15. ta_lib-0.5.2/talib/py.typed +0 -0
  16. ta_lib-0.5.0/pyproject.toml +0 -8
  17. ta_lib-0.5.0/ta_lib.egg-info/requires.txt +0 -1
  18. {ta_lib-0.5.0 → ta_lib-0.5.2}/AUTHORS +0 -0
  19. {ta_lib-0.5.0 → ta_lib-0.5.2}/COPYRIGHT +0 -0
  20. {ta_lib-0.5.0 → ta_lib-0.5.2}/LICENSE +0 -0
  21. {ta_lib-0.5.0 → ta_lib-0.5.2}/setup.cfg +0 -0
  22. {ta_lib-0.5.0 → ta_lib-0.5.2}/ta_lib.egg-info/dependency_links.txt +0 -0
  23. {ta_lib-0.5.0 → ta_lib-0.5.2}/ta_lib.egg-info/top_level.txt +0 -0
  24. {ta_lib-0.5.0 → ta_lib-0.5.2}/talib/_ta_lib.c +0 -0
  25. {ta_lib-0.5.0 → ta_lib-0.5.2}/talib/_ta_lib.pyx +0 -0
  26. {ta_lib-0.5.0 → ta_lib-0.5.2}/talib/abstract.py +0 -0
  27. {ta_lib-0.5.0 → ta_lib-0.5.2}/talib/deprecated.py +0 -0
  28. {ta_lib-0.5.0 → ta_lib-0.5.2}/talib/stream.py +0 -0
  29. {ta_lib-0.5.0 → ta_lib-0.5.2}/tests/conftest.py +0 -0
  30. {ta_lib-0.5.0 → ta_lib-0.5.2}/tests/test_abstract.py +0 -0
  31. {ta_lib-0.5.0 → ta_lib-0.5.2}/tests/test_func.py +0 -0
  32. {ta_lib-0.5.0 → ta_lib-0.5.2}/tests/test_pandas.py +0 -0
  33. {ta_lib-0.5.0 → ta_lib-0.5.2}/tests/test_polars.py +0 -0
  34. {ta_lib-0.5.0 → ta_lib-0.5.2}/tests/test_stream.py +0 -0
@@ -3,4 +3,5 @@ include COPYRIGHT
3
3
  include README.md
4
4
  include talib/*.c
5
5
  include talib/*.pyx
6
+ include talib/*.pxi
6
7
  include tests/*.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ta-lib
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: Python wrapper for TA-Lib
5
5
  Home-page: http://github.com/ta-lib/ta-lib-python
6
6
  Download-URL: https://github.com/ta-lib/ta-lib-python/releases
@@ -37,6 +37,7 @@ Classifier: Intended Audience :: Financial and Insurance Industry
37
37
  Description-Content-Type: text/markdown
38
38
  License-File: LICENSE
39
39
  License-File: AUTHORS
40
+ Requires-Dist: setuptools
40
41
  Requires-Dist: numpy
41
42
 
42
43
  # TA-Lib
@@ -142,8 +143,7 @@ and unzip to ``C:\ta-lib``.
142
143
  > 3. Download and Install Visual Studio Community (2015 or later)
143
144
  > * Remember to Select ``[Visual C++]`` Feature
144
145
  > 4. Build TA-Lib Library
145
- > * From Windows Start Menu, Start ``[VS2015 x64 Native Tools Command
146
- > Prompt]``
146
+ > * From Windows Start Menu, Start ``[x64 Native Tools Command Prompt]``
147
147
  > * Move to ``C:\ta-lib\c\make\cdr\win32\msvc``
148
148
  > * Build the Library ``nmake``
149
149
 
@@ -370,6 +370,23 @@ Then, perhaps you can use the ``--hidden-import`` argument to fix this:
370
370
  $ pyinstaller --hidden-import talib.stream "replaceToYourFileName.py"
371
371
  ```
372
372
 
373
+ ---
374
+
375
+ If you want to use ``numpy<2``, then you should use ``ta-lib<0.5``.
376
+
377
+ If you want to use ``numpy>=2``, then you should use ``ta-lib>=0.5``.
378
+
379
+ ---
380
+
381
+ If you have trouble getting the code autocompletions to work in Visual
382
+ Studio Code, a suggestion was made to look for the ``Python`` extension
383
+ settings, and an option for ``Language Server``, and change it from
384
+ ``Default`` (which means ``Pylance if it is installed, Jedi otherwise``, to
385
+ manually set ``Jedi`` and the completions should work. It is possible that
386
+ you might need to [install it
387
+ manually](https://github.com/pappasam/jedi-language-server) for this to
388
+ work.
389
+
373
390
  ## Function API
374
391
 
375
392
  Similar to TA-Lib, the Function API provides a lightweight wrapper of the
@@ -101,8 +101,7 @@ and unzip to ``C:\ta-lib``.
101
101
  > 3. Download and Install Visual Studio Community (2015 or later)
102
102
  > * Remember to Select ``[Visual C++]`` Feature
103
103
  > 4. Build TA-Lib Library
104
- > * From Windows Start Menu, Start ``[VS2015 x64 Native Tools Command
105
- > Prompt]``
104
+ > * From Windows Start Menu, Start ``[x64 Native Tools Command Prompt]``
106
105
  > * Move to ``C:\ta-lib\c\make\cdr\win32\msvc``
107
106
  > * Build the Library ``nmake``
108
107
 
@@ -329,6 +328,23 @@ Then, perhaps you can use the ``--hidden-import`` argument to fix this:
329
328
  $ pyinstaller --hidden-import talib.stream "replaceToYourFileName.py"
330
329
  ```
331
330
 
331
+ ---
332
+
333
+ If you want to use ``numpy<2``, then you should use ``ta-lib<0.5``.
334
+
335
+ If you want to use ``numpy>=2``, then you should use ``ta-lib>=0.5``.
336
+
337
+ ---
338
+
339
+ If you have trouble getting the code autocompletions to work in Visual
340
+ Studio Code, a suggestion was made to look for the ``Python`` extension
341
+ settings, and an option for ``Language Server``, and change it from
342
+ ``Default`` (which means ``Pylance if it is installed, Jedi otherwise``, to
343
+ manually set ``Jedi`` and the completions should work. It is possible that
344
+ you might need to [install it
345
+ manually](https://github.com/pappasam/jedi-language-server) for this to
346
+ work.
347
+
332
348
  ## Function API
333
349
 
334
350
  Similar to TA-Lib, the Function API provides a lightweight wrapper of the
@@ -0,0 +1,8 @@
1
+ [project]
2
+ name = "ta-lib"
3
+ version = "0.5.2"
4
+ dynamic = ["authors", "classifiers", "description", "license", "readme"]
5
+ dependencies = [
6
+ "setuptools",
7
+ "numpy",
8
+ ]
@@ -18,8 +18,6 @@ except ImportError:
18
18
  from distutils.extension import Extension
19
19
  requires = {"requires": ["numpy"]}
20
20
 
21
- lib_talib_name = 'ta_lib' # the underlying C library's name
22
-
23
21
  platform_supported = False
24
22
 
25
23
  if any(s in sys.platform for s in ['darwin', 'linux', 'bsd', 'sunos']):
@@ -64,11 +62,23 @@ try:
64
62
  except ImportError:
65
63
  has_cython = False
66
64
 
65
+ lib_talib_names = ['ta-lib', 'ta_lib'] # the underlying C library's name
66
+ lib_talib_name = 'ta-lib' # the name as of TA-Lib 0.6.1
67
+
67
68
  for path in library_dirs:
68
69
  try:
69
70
  files = os.listdir(path)
70
- if any(lib_talib_name in f for f in files):
71
+ for f in files:
72
+ for name in lib_talib_names:
73
+ if name in f:
74
+ lib_talib_name = name
75
+ break
76
+ else:
77
+ continue
71
78
  break
79
+ else:
80
+ continue
81
+ break
72
82
  except OSError:
73
83
  pass
74
84
  else:
@@ -143,7 +153,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
143
153
 
144
154
  setup(
145
155
  name='TA-Lib',
146
- version='0.5.0',
156
+ version='0.5.2',
147
157
  description='Python wrapper for TA-Lib',
148
158
  long_description=long_description,
149
159
  long_description_content_type='text/markdown',
@@ -183,5 +193,6 @@ setup(
183
193
  ],
184
194
  packages=['talib'],
185
195
  ext_modules=ext_modules,
196
+ package_data={ 'talib': ['_ta_lib.pyi', 'py.typed'], },
186
197
  cmdclass=cmdclass,
187
198
  **requires)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ta-lib
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: Python wrapper for TA-Lib
5
5
  Home-page: http://github.com/ta-lib/ta-lib-python
6
6
  Download-URL: https://github.com/ta-lib/ta-lib-python/releases
@@ -37,6 +37,7 @@ Classifier: Intended Audience :: Financial and Insurance Industry
37
37
  Description-Content-Type: text/markdown
38
38
  License-File: LICENSE
39
39
  License-File: AUTHORS
40
+ Requires-Dist: setuptools
40
41
  Requires-Dist: numpy
41
42
 
42
43
  # TA-Lib
@@ -142,8 +143,7 @@ and unzip to ``C:\ta-lib``.
142
143
  > 3. Download and Install Visual Studio Community (2015 or later)
143
144
  > * Remember to Select ``[Visual C++]`` Feature
144
145
  > 4. Build TA-Lib Library
145
- > * From Windows Start Menu, Start ``[VS2015 x64 Native Tools Command
146
- > Prompt]``
146
+ > * From Windows Start Menu, Start ``[x64 Native Tools Command Prompt]``
147
147
  > * Move to ``C:\ta-lib\c\make\cdr\win32\msvc``
148
148
  > * Build the Library ``nmake``
149
149
 
@@ -370,6 +370,23 @@ Then, perhaps you can use the ``--hidden-import`` argument to fix this:
370
370
  $ pyinstaller --hidden-import talib.stream "replaceToYourFileName.py"
371
371
  ```
372
372
 
373
+ ---
374
+
375
+ If you want to use ``numpy<2``, then you should use ``ta-lib<0.5``.
376
+
377
+ If you want to use ``numpy>=2``, then you should use ``ta-lib>=0.5``.
378
+
379
+ ---
380
+
381
+ If you have trouble getting the code autocompletions to work in Visual
382
+ Studio Code, a suggestion was made to look for the ``Python`` extension
383
+ settings, and an option for ``Language Server``, and change it from
384
+ ``Default`` (which means ``Pylance if it is installed, Jedi otherwise``, to
385
+ manually set ``Jedi`` and the completions should work. It is possible that
386
+ you might need to [install it
387
+ manually](https://github.com/pappasam/jedi-language-server) for this to
388
+ work.
389
+
373
390
  ## Function API
374
391
 
375
392
  Similar to TA-Lib, the Function API provides a lightweight wrapper of the
@@ -11,10 +11,16 @@ ta_lib.egg-info/dependency_links.txt
11
11
  ta_lib.egg-info/requires.txt
12
12
  ta_lib.egg-info/top_level.txt
13
13
  talib/__init__.py
14
+ talib/_abstract.pxi
15
+ talib/_common.pxi
16
+ talib/_func.pxi
17
+ talib/_stream.pxi
14
18
  talib/_ta_lib.c
19
+ talib/_ta_lib.pyi
15
20
  talib/_ta_lib.pyx
16
21
  talib/abstract.py
17
22
  talib/deprecated.py
23
+ talib/py.typed
18
24
  talib/stream.py
19
25
  tests/conftest.py
20
26
  tests/test_abstract.py
@@ -0,0 +1,2 @@
1
+ setuptools
2
+ numpy
@@ -132,7 +132,7 @@ for func_name, stream_func_name in zip(__TA_FUNCTION_NAMES__, stream_func_names)
132
132
  setattr(stream, func_name, wrapped_func)
133
133
  globals()[stream_func_name] = wrapped_func
134
134
 
135
- __version__ = '0.5.0'
135
+ __version__ = '0.5.2'
136
136
 
137
137
  # In order to use this python library, talib (i.e. this __file__) will be
138
138
  # imported at some point, either explicitly or indirectly via talib.func