ta-lib 0.5.3__tar.gz → 0.6.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. {ta_lib-0.5.3 → ta_lib-0.6.1}/PKG-INFO +12 -1
  2. {ta_lib-0.5.3 → ta_lib-0.6.1}/README.md +11 -0
  3. {ta_lib-0.5.3 → ta_lib-0.6.1}/pyproject.toml +1 -1
  4. {ta_lib-0.5.3 → ta_lib-0.6.1}/setup.py +14 -6
  5. {ta_lib-0.5.3 → ta_lib-0.6.1}/ta_lib.egg-info/PKG-INFO +12 -1
  6. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/__init__.py +1 -1
  7. {ta_lib-0.5.3 → ta_lib-0.6.1}/tests/test_func.py +2 -2
  8. {ta_lib-0.5.3 → ta_lib-0.6.1}/AUTHORS +0 -0
  9. {ta_lib-0.5.3 → ta_lib-0.6.1}/COPYRIGHT +0 -0
  10. {ta_lib-0.5.3 → ta_lib-0.6.1}/LICENSE +0 -0
  11. {ta_lib-0.5.3 → ta_lib-0.6.1}/MANIFEST.in +0 -0
  12. {ta_lib-0.5.3 → ta_lib-0.6.1}/setup.cfg +0 -0
  13. {ta_lib-0.5.3 → ta_lib-0.6.1}/ta_lib.egg-info/SOURCES.txt +0 -0
  14. {ta_lib-0.5.3 → ta_lib-0.6.1}/ta_lib.egg-info/dependency_links.txt +0 -0
  15. {ta_lib-0.5.3 → ta_lib-0.6.1}/ta_lib.egg-info/requires.txt +0 -0
  16. {ta_lib-0.5.3 → ta_lib-0.6.1}/ta_lib.egg-info/top_level.txt +0 -0
  17. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/_abstract.pxi +0 -0
  18. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/_common.pxi +0 -0
  19. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/_func.pxi +0 -0
  20. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/_stream.pxi +0 -0
  21. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/_ta_lib.c +0 -0
  22. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/_ta_lib.pyi +0 -0
  23. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/_ta_lib.pyx +0 -0
  24. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/abstract.py +0 -0
  25. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/deprecated.py +0 -0
  26. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/py.typed +0 -0
  27. {ta_lib-0.5.3 → ta_lib-0.6.1}/talib/stream.py +0 -0
  28. {ta_lib-0.5.3 → ta_lib-0.6.1}/tests/conftest.py +0 -0
  29. {ta_lib-0.5.3 → ta_lib-0.6.1}/tests/test_abstract.py +0 -0
  30. {ta_lib-0.5.3 → ta_lib-0.6.1}/tests/test_pandas.py +0 -0
  31. {ta_lib-0.5.3 → ta_lib-0.6.1}/tests/test_polars.py +0 -0
  32. {ta_lib-0.5.3 → ta_lib-0.6.1}/tests/test_stream.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ta-lib
3
- Version: 0.5.3
3
+ Version: 0.6.1
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
@@ -66,6 +66,17 @@ In addition, this project also supports the use of the
66
66
  [Polars](https://www.pola.rs) and [Pandas](https://pandas.pydata.org)
67
67
  libraries.
68
68
 
69
+ ## Versions
70
+
71
+ The upstream TA-Lib C library released version 0.6.1 and changed the library
72
+ name to ``-lta-lib`` from ``-lta_lib``. After trying to support both via
73
+ autodetect and having some issues, we have decided to currently support three
74
+ feature branches:
75
+
76
+ * ``ta-lib-python`` 0.4.x (supports ``ta-lib`` 0.4.x and ``numpy`` 1)
77
+ * ``ta-lib-python`` 0.5.x (supports ``ta-lib`` 0.4.x and ``numpy`` 2)
78
+ * ``ta-lib-python`` 0.6.x (supports ``ta-lib`` 0.6.x and ``numpy`` 2)
79
+
69
80
  ## Installation
70
81
 
71
82
  You can install from PyPI:
@@ -24,6 +24,17 @@ In addition, this project also supports the use of the
24
24
  [Polars](https://www.pola.rs) and [Pandas](https://pandas.pydata.org)
25
25
  libraries.
26
26
 
27
+ ## Versions
28
+
29
+ The upstream TA-Lib C library released version 0.6.1 and changed the library
30
+ name to ``-lta-lib`` from ``-lta_lib``. After trying to support both via
31
+ autodetect and having some issues, we have decided to currently support three
32
+ feature branches:
33
+
34
+ * ``ta-lib-python`` 0.4.x (supports ``ta-lib`` 0.4.x and ``numpy`` 1)
35
+ * ``ta-lib-python`` 0.5.x (supports ``ta-lib`` 0.4.x and ``numpy`` 2)
36
+ * ``ta-lib-python`` 0.6.x (supports ``ta-lib`` 0.6.x and ``numpy`` 2)
37
+
27
38
  ## Installation
28
39
 
29
40
  You can install from PyPI:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ta-lib"
3
- version = "0.5.3"
3
+ version = "0.6.1"
4
4
  dynamic = ["authors", "classifiers", "description", "license", "readme"]
5
5
  dependencies = [
6
6
  "setuptools",
@@ -20,6 +20,8 @@ except ImportError:
20
20
 
21
21
  platform_supported = False
22
22
 
23
+ lib_talib_name = 'ta-lib' # the name as of TA-Lib 0.6.1
24
+
23
25
  if any(s in sys.platform for s in ['darwin', 'linux', 'bsd', 'sunos']):
24
26
  platform_supported = True
25
27
  include_dirs = [
@@ -43,9 +45,17 @@ if any(s in sys.platform for s in ['darwin', 'linux', 'bsd', 'sunos']):
43
45
 
44
46
  elif sys.platform == "win32":
45
47
  platform_supported = True
46
- lib_talib_name = 'ta_libc_cdr'
47
- include_dirs = [r"c:\ta-lib\c\include"]
48
- library_dirs = [r"c:\ta-lib\c\lib"]
48
+ lib_talib_name = 'ta-lib-static'
49
+ include_dirs = [
50
+ r"c:\ta-lib\c\include",
51
+ r"c:\Program Files\TA-Lib\include",
52
+ r"c:\Program Files (x86)\TA-Lib\include",
53
+ ]
54
+ library_dirs = [
55
+ r"c:\ta-lib\c\lib",
56
+ r"c:\Program Files\TA-Lib\lib",
57
+ r"c:\Program Files (x86)\TA-Lib\lib",
58
+ ]
49
59
 
50
60
  if 'TA_INCLUDE_PATH' in os.environ:
51
61
  include_dirs = os.environ['TA_INCLUDE_PATH'].split(os.pathsep)
@@ -62,8 +72,6 @@ try:
62
72
  except ImportError:
63
73
  has_cython = False
64
74
 
65
- lib_talib_name = 'ta_lib' # the name as of TA-Lib 0.4.0
66
-
67
75
  for path in library_dirs:
68
76
  try:
69
77
  files = os.listdir(path)
@@ -143,7 +151,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
143
151
 
144
152
  setup(
145
153
  name='TA-Lib',
146
- version='0.5.3',
154
+ version='0.6.1',
147
155
  description='Python wrapper for TA-Lib',
148
156
  long_description=long_description,
149
157
  long_description_content_type='text/markdown',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ta-lib
3
- Version: 0.5.3
3
+ Version: 0.6.1
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
@@ -66,6 +66,17 @@ In addition, this project also supports the use of the
66
66
  [Polars](https://www.pola.rs) and [Pandas](https://pandas.pydata.org)
67
67
  libraries.
68
68
 
69
+ ## Versions
70
+
71
+ The upstream TA-Lib C library released version 0.6.1 and changed the library
72
+ name to ``-lta-lib`` from ``-lta_lib``. After trying to support both via
73
+ autodetect and having some issues, we have decided to currently support three
74
+ feature branches:
75
+
76
+ * ``ta-lib-python`` 0.4.x (supports ``ta-lib`` 0.4.x and ``numpy`` 1)
77
+ * ``ta-lib-python`` 0.5.x (supports ``ta-lib`` 0.4.x and ``numpy`` 2)
78
+ * ``ta-lib-python`` 0.6.x (supports ``ta-lib`` 0.6.x and ``numpy`` 2)
79
+
69
80
  ## Installation
70
81
 
71
82
  You can install from PyPI:
@@ -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.3'
135
+ __version__ = '0.6.1'
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
@@ -7,7 +7,7 @@ from talib import func
7
7
 
8
8
 
9
9
  def test_talib_version():
10
- assert talib.__ta_version__[:5] == b'0.4.0'
10
+ assert talib.__ta_version__[:5] == b'0.6.2'
11
11
 
12
12
 
13
13
  def test_num_functions():
@@ -164,7 +164,7 @@ def test_RSI():
164
164
  0.00000024, 0.00000024, 0.00000023,
165
165
  0.00000023, 0.00000023], dtype='float64')
166
166
  result = func.RSI(a, 10)
167
- assert_array_equal(result, [np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,0,0,0,0,0,0,0,0,0,0])
167
+ assert_array_almost_equal(result, [np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,33.333333333333329,51.351351351351347,39.491916859122398,51.84807024709005,42.25953803191981,52.101824405061215,52.101824405061215,43.043664867691085,43.043664867691085,43.043664867691085])
168
168
  result = func.RSI(a * 100000, 10)
169
169
  assert_array_almost_equal(result, [np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,np.nan,33.333333333333329,51.351351351351347,39.491916859122398,51.84807024709005,42.25953803191981,52.101824405061215,52.101824405061215,43.043664867691085,43.043664867691085,43.043664867691085])
170
170
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes