tapebasis 1.0.0__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 (152) hide show
  1. tapebasis-1.0.0/LICENSE +21 -0
  2. tapebasis-1.0.0/NOTICE +90 -0
  3. tapebasis-1.0.0/PKG-INFO +777 -0
  4. tapebasis-1.0.0/README.md +741 -0
  5. tapebasis-1.0.0/pyproject.toml +96 -0
  6. tapebasis-1.0.0/setup.cfg +4 -0
  7. tapebasis-1.0.0/src/tapebasis/__init__.py +32 -0
  8. tapebasis-1.0.0/src/tapebasis/bb_access.py +597 -0
  9. tapebasis-1.0.0/src/tapebasis/blocking_pool.py +101 -0
  10. tapebasis-1.0.0/src/tapebasis/catalog.py +418 -0
  11. tapebasis-1.0.0/src/tapebasis/freshness.py +248 -0
  12. tapebasis-1.0.0/src/tapebasis/fv_access.py +190 -0
  13. tapebasis-1.0.0/src/tapebasis/health.py +806 -0
  14. tapebasis-1.0.0/src/tapebasis/http_pool.py +157 -0
  15. tapebasis-1.0.0/src/tapebasis/merge_helpers.py +466 -0
  16. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/__init__.py +1 -0
  17. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/errors.py +136 -0
  18. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/services/__init__.py +1 -0
  19. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/services/chart_service.py +314 -0
  20. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/services/filings_service.py +125 -0
  21. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/services/finviz_client.py +393 -0
  22. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/services/html_utils.py +426 -0
  23. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/services/insider_service.py +202 -0
  24. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/services/market_service.py +176 -0
  25. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/services/news_service.py +95 -0
  26. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/services/quote_service.py +527 -0
  27. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/services/screener_service.py +242 -0
  28. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/utils/__init__.py +1 -0
  29. tapebasis-1.0.0/src/tapebasis/providers/finviz/core/utils/validators.py +202 -0
  30. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/ace.txt +98 -0
  31. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/all.txt +1948 -0
  32. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/ams.txt +108 -0
  33. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/asx.txt +200 -0
  34. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/binance.txt +365 -0
  35. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/bist.txt +478 -0
  36. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/bitfinex.txt +176 -0
  37. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/bitget.txt +266 -0
  38. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/bme.txt +307 -0
  39. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/bru.txt +110 -0
  40. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/bse.txt +4770 -0
  41. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/bursa.txt +101 -0
  42. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/bybit.txt +257 -0
  43. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/chn.txt +194 -0
  44. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/coinbase.txt +241 -0
  45. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/egx.txt +292 -0
  46. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/epa.txt +612 -0
  47. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/fwb.txt +2441 -0
  48. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/gateio.txt +809 -0
  49. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/hk.txt +107 -0
  50. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/hkex.txt +107 -0
  51. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/hsi.txt +107 -0
  52. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/huobi.txt +1091 -0
  53. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/idx.txt +844 -0
  54. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/klse.txt +101 -0
  55. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/kucoin.txt +1006 -0
  56. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/leap.txt +95 -0
  57. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/lis.txt +36 -0
  58. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/lse.txt +2841 -0
  59. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/mexc.txt +420 -0
  60. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/mil.txt +1392 -0
  61. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/myx.txt +101 -0
  62. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/nasdaq.txt +4997 -0
  63. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/nse.txt +3191 -0
  64. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/nyse.txt +2744 -0
  65. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/okx.txt +330 -0
  66. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/six.txt +381 -0
  67. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/sse.txt +103 -0
  68. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/szse.txt +91 -0
  69. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/tpex.txt +1339 -0
  70. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/tsx.txt +1087 -0
  71. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/tsxv.txt +1332 -0
  72. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/twse.txt +1340 -0
  73. tapebasis-1.0.0/src/tapebasis/providers/tradingview/coinlist/xetra.txt +1412 -0
  74. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/data/__init__.py +0 -0
  75. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/data/egx_indices.py +309 -0
  76. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/data/egx_sectors.py +491 -0
  77. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/errors.py +211 -0
  78. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/backtest_service.py +1024 -0
  79. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/bitcoin_market_service.py +129 -0
  80. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/coinlist.py +102 -0
  81. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/egx_service.py +1199 -0
  82. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/extended_hours_service.py +256 -0
  83. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/futures_service.py +219 -0
  84. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/indicators.py +1696 -0
  85. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/indicators_calc.py +316 -0
  86. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/marketaux_service.py +340 -0
  87. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/multi_agent_service.py +238 -0
  88. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/options_service.py +390 -0
  89. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/scanner_service.py +430 -0
  90. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/screener_provider.py +794 -0
  91. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/screener_service.py +1251 -0
  92. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/services/stock_screener_service.py +227 -0
  93. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/types.py +86 -0
  94. tapebasis-1.0.0/src/tapebasis/providers/tradingview/core/utils/validators.py +376 -0
  95. tapebasis-1.0.0/src/tapebasis/providers/tradingview/native.py +514 -0
  96. tapebasis-1.0.0/src/tapebasis/providers/tradingview/quote_socket.py +231 -0
  97. tapebasis-1.0.0/src/tapebasis/providers_state.py +353 -0
  98. tapebasis-1.0.0/src/tapebasis/ratelimit.py +285 -0
  99. tapebasis-1.0.0/src/tapebasis/reconcile.py +1287 -0
  100. tapebasis-1.0.0/src/tapebasis/sa_access.py +269 -0
  101. tapebasis-1.0.0/src/tapebasis/sentiment.py +272 -0
  102. tapebasis-1.0.0/src/tapebasis/server.py +226 -0
  103. tapebasis-1.0.0/src/tapebasis/sessions.py +477 -0
  104. tapebasis-1.0.0/src/tapebasis/singleflight.py +93 -0
  105. tapebasis-1.0.0/src/tapebasis/symbols.py +1338 -0
  106. tapebasis-1.0.0/src/tapebasis/tools_bloomberg.py +176 -0
  107. tapebasis-1.0.0/src/tapebasis/tools_finviz.py +307 -0
  108. tapebasis-1.0.0/src/tapebasis/tools_health.py +158 -0
  109. tapebasis-1.0.0/src/tapebasis/tools_market.py +3044 -0
  110. tapebasis-1.0.0/src/tapebasis/tools_tradingview.py +865 -0
  111. tapebasis-1.0.0/src/tapebasis/tv_access.py +298 -0
  112. tapebasis-1.0.0/src/tapebasis/utils.py +85 -0
  113. tapebasis-1.0.0/src/tapebasis/yh_access.py +734 -0
  114. tapebasis-1.0.0/src/tapebasis.egg-info/PKG-INFO +777 -0
  115. tapebasis-1.0.0/src/tapebasis.egg-info/SOURCES.txt +150 -0
  116. tapebasis-1.0.0/src/tapebasis.egg-info/dependency_links.txt +1 -0
  117. tapebasis-1.0.0/src/tapebasis.egg-info/entry_points.txt +2 -0
  118. tapebasis-1.0.0/src/tapebasis.egg-info/requires.txt +20 -0
  119. tapebasis-1.0.0/src/tapebasis.egg-info/top_level.txt +1 -0
  120. tapebasis-1.0.0/tests/test_backtest_service.py +206 -0
  121. tapebasis-1.0.0/tests/test_bloomberg.py +367 -0
  122. tapebasis-1.0.0/tests/test_dockerfile.py +234 -0
  123. tapebasis-1.0.0/tests/test_extended_hours.py +1113 -0
  124. tapebasis-1.0.0/tests/test_finviz_breakdown.py +410 -0
  125. tapebasis-1.0.0/tests/test_finviz_chart.py +184 -0
  126. tapebasis-1.0.0/tests/test_freshness.py +297 -0
  127. tapebasis-1.0.0/tests/test_git_context.py +112 -0
  128. tapebasis-1.0.0/tests/test_health.py +447 -0
  129. tapebasis-1.0.0/tests/test_http_pool.py +269 -0
  130. tapebasis-1.0.0/tests/test_indicators_calc.py +172 -0
  131. tapebasis-1.0.0/tests/test_market_indices.py +137 -0
  132. tapebasis-1.0.0/tests/test_oci_image.py +93 -0
  133. tapebasis-1.0.0/tests/test_options_service.py +55 -0
  134. tapebasis-1.0.0/tests/test_packaging.py +205 -0
  135. tapebasis-1.0.0/tests/test_provider_constants.py +100 -0
  136. tapebasis-1.0.0/tests/test_quality_gate.py +240 -0
  137. tapebasis-1.0.0/tests/test_quote_socket.py +186 -0
  138. tapebasis-1.0.0/tests/test_ratelimit_loops.py +120 -0
  139. tapebasis-1.0.0/tests/test_reconcile.py +661 -0
  140. tapebasis-1.0.0/tests/test_release_metadata.py +303 -0
  141. tapebasis-1.0.0/tests/test_sentiment.py +121 -0
  142. tapebasis-1.0.0/tests/test_sentiment_tool.py +193 -0
  143. tapebasis-1.0.0/tests/test_server.py +153 -0
  144. tapebasis-1.0.0/tests/test_sessions.py +352 -0
  145. tapebasis-1.0.0/tests/test_shapers.py +215 -0
  146. tapebasis-1.0.0/tests/test_singleflight.py +194 -0
  147. tapebasis-1.0.0/tests/test_stockanalysis.py +339 -0
  148. tapebasis-1.0.0/tests/test_symbols.py +286 -0
  149. tapebasis-1.0.0/tests/test_tools_merge.py +1683 -0
  150. tapebasis-1.0.0/tests/test_upstream_contract.py +495 -0
  151. tapebasis-1.0.0/tests/test_workflows.py +210 -0
  152. tapebasis-1.0.0/tests/test_yahoo_shaping.py +90 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Giray Gokirmak
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tapebasis-1.0.0/NOTICE ADDED
@@ -0,0 +1,90 @@
1
+ tapebasis
2
+ ==============
3
+ Copyright (c) 2026 Giray Gokirmak
4
+
5
+ This project is MIT-licensed (see LICENSE). It vendors code from upstream
6
+ open-source projects, whose licenses and attributions are reproduced below.
7
+
8
+ --------------------------------------------------------------------------------
9
+ 1. src/tapebasis/providers/tradingview/
10
+ --------------------------------------------------------------------------------
11
+ Vendored from: https://github.com/atilaahmettaner/tradingview-mcp
12
+ (via the fork https://github.com/giraygokirmak/tradingview-mcp,
13
+ commit 418f0c7c7d72d17ef10b021f97ccdd7f9e18264a)
14
+
15
+ Modifications: package namespace rewritten to
16
+ tapebasis.providers.tradingview.*; the optional proxy
17
+ layer (proxy_manager and all PROXY_* environment handling) was
18
+ removed; the upstream server entrypoint (MCP tool
19
+ registrations, server.py) was NOT vendored: this repository
20
+ provides its own tool layer. The upstream core/ services and
21
+ bundled coinlists are used as-is.
22
+
23
+ Upstream license:
24
+
25
+ MIT License
26
+
27
+ Copyright (c) 2025 Ahmet Taner Atila
28
+
29
+ Permission is hereby granted, free of charge, to any person obtaining a copy
30
+ of this software and associated documentation files (the "Software"), to deal
31
+ in the Software without restriction, including without limitation the rights
32
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
33
+ copies of the Software, and to permit persons to whom the Software is
34
+ furnished to do so, subject to the following conditions:
35
+
36
+ The above copyright notice and this permission notice shall be included in
37
+ all copies or substantial portions of the Software.
38
+
39
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
42
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
44
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
45
+ IN THE SOFTWARE.
46
+
47
+ The bundled exchange symbol lists in
48
+ src/tapebasis/providers/tradingview/coinlist/ are part of that upstream
49
+ project and carry the same license.
50
+
51
+ --------------------------------------------------------------------------------
52
+ 2. src/tapebasis/providers/finviz/
53
+ --------------------------------------------------------------------------------
54
+ Vendored from: https://github.com/giraygokirmak/finviz-mcp
55
+ (commit 0f9e5defd44f88c7ece254c0c2e07372b75fb06c)
56
+
57
+ Modifications: package namespace rewritten to
58
+ tapebasis.providers.finviz.*; the optional proxy layer
59
+ (proxy_manager and all PROXY_* environment handling) was
60
+ removed; the upstream server entrypoint (MCP tool
61
+ registrations, server.py) was NOT vendored: this repository
62
+ provides its own tool layer. The upstream core/ services are
63
+ used as-is.
64
+
65
+ Upstream license:
66
+
67
+ MIT License
68
+
69
+ Copyright (c) 2026 Giray Gokirmak
70
+
71
+ (full text as in LICENSE above)
72
+
73
+ --------------------------------------------------------------------------------
74
+ 3. Third-party runtime dependencies
75
+ --------------------------------------------------------------------------------
76
+ Runtime dependencies (mcp, httpx, curl_cffi, pandas, tradingview-screener,
77
+ tradingview-ta, feedparser, requests, python-dateutil, vaderSentiment) are not
78
+ vendored; they are installed from PyPI under their own licenses. See each
79
+ project for details.
80
+
81
+ vaderSentiment (MIT, https://github.com/cjhutto/vaderSentiment) ships the
82
+ VADER sentiment lexicon used by tapebasis/sentiment.py for local,
83
+ token-free headline scoring. That module adds its own financial vocabulary on
84
+ top; the base lexicon and scoring algorithm are VADER's.
85
+
86
+ TradingView, Finviz, Yahoo Finance, StockAnalysis, Bloomberg and Marketaux are
87
+ trademarks of their respective owners. This project is not affiliated with or
88
+ endorsed by any of them. It reads publicly accessible endpoints that they
89
+ operate; you are responsible for complying with their terms of service and
90
+ rate limits.