tvkit 0.1.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.
- tvkit-0.1.0/LICENSE +21 -0
- tvkit-0.1.0/PKG-INFO +52 -0
- tvkit-0.1.0/README.md +2 -0
- tvkit-0.1.0/pyproject.toml +43 -0
- tvkit-0.1.0/setup.cfg +4 -0
- tvkit-0.1.0/tvkit/__init__.py +25 -0
- tvkit-0.1.0/tvkit/api/__init__.py +11 -0
- tvkit-0.1.0/tvkit/api/scanner/__init__.py +9 -0
- tvkit-0.1.0/tvkit/api/scanner/model.py +737 -0
- tvkit-0.1.0/tvkit/api/websocket/__init__.py +7 -0
- tvkit-0.1.0/tvkit/api/websocket/stream/realtime_data.py +389 -0
- tvkit-0.1.0/tvkit/api/websocket/stream/streamer.py +350 -0
- tvkit-0.1.0/tvkit/api/websocket/stream/utils.py +363 -0
- tvkit-0.1.0/tvkit/api/websocket/utils.py +201 -0
- tvkit-0.1.0/tvkit/core.py +14 -0
- tvkit-0.1.0/tvkit/py.typed +0 -0
- tvkit-0.1.0/tvkit.egg-info/PKG-INFO +52 -0
- tvkit-0.1.0/tvkit.egg-info/SOURCES.txt +19 -0
- tvkit-0.1.0/tvkit.egg-info/dependency_links.txt +1 -0
- tvkit-0.1.0/tvkit.egg-info/requires.txt +6 -0
- tvkit-0.1.0/tvkit.egg-info/top_level.txt +1 -0
tvkit-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 candythink
|
|
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.
|
tvkit-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tvkit
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: tvkit is a Python library that fetches real-time stock data from TradingView, including price, market cap, P/E ratio, ROE, and more for stocks from multiple countries. Easily access and analyze financial metrics for global markets.
|
|
5
|
+
Author-email: lumduan <b@candythink.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2025 candythink
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/lumduan/tvkit
|
|
29
|
+
Project-URL: Repository, https://github.com/lumduan/tvkit
|
|
30
|
+
Project-URL: Documentation, https://github.com/lumduan/tvkit#readme
|
|
31
|
+
Project-URL: Bug Reports, https://github.com/lumduan/tvkit/issues
|
|
32
|
+
Keywords: tradingview,stock,trading,finance,api,market-data
|
|
33
|
+
Classifier: Development Status :: 3 - Alpha
|
|
34
|
+
Classifier: Intended Audience :: Developers
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Programming Language :: Python :: 3
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
38
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
39
|
+
Classifier: Topic :: Office/Business :: Financial
|
|
40
|
+
Requires-Python: >=3.13
|
|
41
|
+
Description-Content-Type: text/markdown
|
|
42
|
+
License-File: LICENSE
|
|
43
|
+
Requires-Dist: pydantic>=2.11.7
|
|
44
|
+
Requires-Dist: ruff>=0.12.4
|
|
45
|
+
Requires-Dist: pytest>=8.0.0
|
|
46
|
+
Requires-Dist: pytest-asyncio>=0.23.0
|
|
47
|
+
Requires-Dist: websockets>=13.0
|
|
48
|
+
Requires-Dist: httpx>=0.28.0
|
|
49
|
+
Dynamic: license-file
|
|
50
|
+
|
|
51
|
+
# tvkit
|
|
52
|
+
tvkit is a Python library that fetches real-time stock data from TradingView, including price, market cap, P/E ratio, ROE, and more for stocks from multiple countries. Easily access and analyze financial metrics for global markets.
|
tvkit-0.1.0/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "tvkit"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "tvkit is a Python library that fetches real-time stock data from TradingView, including price, market cap, P/E ratio, ROE, and more for stocks from multiple countries. Easily access and analyze financial metrics for global markets."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.13"
|
|
7
|
+
dependencies = [
|
|
8
|
+
"pydantic>=2.11.7",
|
|
9
|
+
"ruff>=0.12.4",
|
|
10
|
+
"pytest>=8.0.0",
|
|
11
|
+
"pytest-asyncio>=0.23.0",
|
|
12
|
+
"websockets>=13.0",
|
|
13
|
+
"httpx>=0.28.0",
|
|
14
|
+
]
|
|
15
|
+
authors = [{ name = "lumduan", email = "b@candythink.com" }]
|
|
16
|
+
license = { file = "LICENSE" }
|
|
17
|
+
keywords = ["tradingview", "stock", "trading", "finance", "api", "market-data"]
|
|
18
|
+
classifiers = [
|
|
19
|
+
"Development Status :: 3 - Alpha",
|
|
20
|
+
"Intended Audience :: Developers",
|
|
21
|
+
"License :: OSI Approved :: MIT License",
|
|
22
|
+
"Programming Language :: Python :: 3",
|
|
23
|
+
"Programming Language :: Python :: 3.13",
|
|
24
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
25
|
+
"Topic :: Office/Business :: Financial",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[project.urls]
|
|
29
|
+
Homepage = "https://github.com/lumduan/tvkit"
|
|
30
|
+
Repository = "https://github.com/lumduan/tvkit"
|
|
31
|
+
Documentation = "https://github.com/lumduan/tvkit#readme"
|
|
32
|
+
"Bug Reports" = "https://github.com/lumduan/tvkit/issues"
|
|
33
|
+
|
|
34
|
+
[build-system]
|
|
35
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
36
|
+
build-backend = "setuptools.build_meta"
|
|
37
|
+
|
|
38
|
+
[tool.setuptools.packages.find]
|
|
39
|
+
include = ["tvkit*"]
|
|
40
|
+
exclude = ["debug*", "tests*", "scripts*", "docs*"]
|
|
41
|
+
|
|
42
|
+
[tool.setuptools.package-data]
|
|
43
|
+
tvkit = ["py.typed"]
|
tvkit-0.1.0/setup.cfg
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""
|
|
2
|
+
TVKit - TradingView API Integration Library
|
|
3
|
+
|
|
4
|
+
A Python library for interacting with TradingView's financial data APIs,
|
|
5
|
+
specifically focused on the scanner API for retrieving stock market data and analysis.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
__version__ = "0.1.0"
|
|
9
|
+
__author__ = "lumduan"
|
|
10
|
+
__license__ = "MIT"
|
|
11
|
+
|
|
12
|
+
# Core functionality
|
|
13
|
+
from .core import get_version, hello_tvkit
|
|
14
|
+
|
|
15
|
+
# Main API exports - add these as you develop the library
|
|
16
|
+
# from .api.scanner import ScannerRequest, ScannerResponse
|
|
17
|
+
# from .api.stock import StockData
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
"__version__",
|
|
21
|
+
"__author__",
|
|
22
|
+
"__license__",
|
|
23
|
+
"get_version",
|
|
24
|
+
"hello_tvkit",
|
|
25
|
+
]
|