kuhl-haus-mdp 0.0.1__py3-none-any.whl

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.
@@ -0,0 +1,28 @@
1
+ from enum import Enum
2
+
3
+ from kuhl_haus.mdp.models.market_data_scanner_names import MarketDataScannerNames
4
+
5
+
6
+ class MarketDataCacheKeys(Enum):
7
+ """
8
+ Market Data Cache Keys are for Redis cache and Pub/Sub channels for internal use only.
9
+ """
10
+ # MARKET DATA FEEDS
11
+ AGGREGATE = 'stocks:agg'
12
+ TRADES = 'stocks:trades'
13
+ QUOTES = 'stocks:quotes'
14
+ HALTS = 'stocks:luld'
15
+ UNKNOWN = 'unknown'
16
+
17
+ # MARKET DATA CACHE
18
+ DAILY_AGGREGATES = 'aggregate:daily'
19
+
20
+ # MARKET DATA PROCESSOR CACHE
21
+ TOP_TRADES_SCANNER = f'cache:{MarketDataScannerNames.TOP_TRADES.value}'
22
+ TOP_GAINERS_SCANNER = f'cache:{MarketDataScannerNames.TOP_GAINERS.value}'
23
+ TOP_GAPPERS_SCANNER = f'cache:{MarketDataScannerNames.TOP_GAPPERS.value}'
24
+ TOP_STOCKS_SCANNER = f'cache:{MarketDataScannerNames.TOP_STOCKS.value}'
25
+ TOP_VOLUME_SCANNER = f'cache:{MarketDataScannerNames.TOP_VOLUME.value}'
26
+
27
+ # NOT IMPLEMENTED FEEDS
28
+ # NEWS = 'news'
@@ -0,0 +1,27 @@
1
+ from enum import Enum
2
+
3
+ from kuhl_haus.mdp.models.market_data_scanner_names import MarketDataScannerNames
4
+
5
+
6
+ class MarketDataPubSubKeys(Enum):
7
+ """
8
+ Market Data PubSub Keys are for Redis channels to be consumed via Widget Data Service
9
+ """
10
+ # Top Trades Scanner
11
+ TOP_10_LISTS_SCANNER = 'scanners:top_10_lists'
12
+ TOP_TRADES_SCANNER_ONE_HOUR = f'scanners:{MarketDataScannerNames.TOP_TRADES.value}:1h'
13
+ TOP_TRADES_SCANNER_FIVE_MINUTES = f'scanners:{MarketDataScannerNames.TOP_TRADES.value}:5m'
14
+ TOP_TRADES_SCANNER_ONE_MINUTE = f'scanners:{MarketDataScannerNames.TOP_TRADES.value}:1m'
15
+
16
+ # Single-feed scanners
17
+ TOP_GAINERS_SCANNER = f'scanners:{MarketDataScannerNames.TOP_GAINERS.value}'
18
+ TOP_GAPPERS_SCANNER = f'scanners:{MarketDataScannerNames.TOP_GAPPERS.value}'
19
+ TOP_VOLUME_SCANNER = f'scanners:{MarketDataScannerNames.TOP_VOLUME.value}'
20
+
21
+ # NOT IMPLEMENTED SCANNERS
22
+ SMALL_CAP_HOD_MOMO_SCANNER = f'scanners:{MarketDataScannerNames.SMALL_CAP_HOD_MOMO.value}'
23
+ # SMALL_CAP_RUNNING_UP_SCANNER = 'scanners:small_cap_running_up'
24
+ # SMALL_CAP_GAPPERS_SCANNER = 'scanners:small_cap_gappers'
25
+ # SMALL_CAP_TOP_GAINERS_SCANNER = 'scanners:small_cap_top_gainers'
26
+ # SMALL_CAP_5_PILLARS_SCANNER = 'scanners:small_cap_5_pillars'
27
+ # HALT_SCANNER = 'scanners:halts'
@@ -0,0 +1,10 @@
1
+ from enum import Enum
2
+
3
+
4
+ class MarketDataScannerNames(Enum):
5
+ TOP_TRADES = 'top_trades'
6
+ TOP_STOCKS = 'top_stocks'
7
+ TOP_GAINERS = 'top_gainers'
8
+ TOP_GAPPERS = 'top_gappers'
9
+ TOP_VOLUME = 'top_volume'
10
+ SMALL_CAP_HOD_MOMO = 'small_cap_hod_momo'
@@ -0,0 +1,10 @@
1
+ from enum import Enum
2
+
3
+
4
+ class MassiveDataQueue(Enum):
5
+ AGGREGATE = 'aggregate'
6
+ TRADES = 'trades'
7
+ QUOTES = 'quotes'
8
+ HALTS = 'halts'
9
+ NEWS = 'news'
10
+ UNKNOWN = 'unknown'
@@ -0,0 +1,79 @@
1
+ Metadata-Version: 2.1
2
+ Name: kuhl-haus-mdp
3
+ Version: 0.0.1
4
+ Summary: Market data processing pipeline for stock market scanner
5
+ Author-Email: Tom Pounders <git@oldschool.engineer>
6
+ License: The MIT License (MIT)
7
+
8
+ Copyright (c) 2025 Tom Pounders
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
+ Classifier: Development Status :: 4 - Beta
29
+ Classifier: Programming Language :: Python
30
+ Project-URL: Homepage, https://github.com/kuhl-haus/kuhl-haus-mdp
31
+ Project-URL: Documentation, https://github.com/kuhl-haus/kuhl-haus-mdp/wiki
32
+ Project-URL: Source, https://github.com/kuhl-haus/kuhl-haus-mdp.git
33
+ Project-URL: Changelog, https://github.com/kuhl-haus/kuhl-haus-mdp/commits
34
+ Project-URL: Tracker, https://github.com/kuhl-haus/kuhl-haus-mdp/issues
35
+ Requires-Python: <3.13,>=3.9.21
36
+ Requires-Dist: websockets
37
+ Requires-Dist: aio-pika
38
+ Requires-Dist: redis[asyncio]
39
+ Requires-Dist: tenacity
40
+ Requires-Dist: fastapi
41
+ Requires-Dist: uvicorn[standard]
42
+ Requires-Dist: pydantic-settings
43
+ Requires-Dist: python-dotenv
44
+ Requires-Dist: massive
45
+ Provides-Extra: testing
46
+ Requires-Dist: setuptools; extra == "testing"
47
+ Requires-Dist: pdm-backend; extra == "testing"
48
+ Requires-Dist: pytest; extra == "testing"
49
+ Requires-Dist: pytest-cov; extra == "testing"
50
+ Description-Content-Type: text/markdown
51
+
52
+ <!-- These are examples of badges you might want to add to your README:
53
+ please update the URLs accordingly
54
+
55
+ [![ReadTheDocs](https://readthedocs.org/projects/kuhl-haus-mdp/badge/?version=latest)](https://kuhl-haus-mdp.readthedocs.io/en/stable/)
56
+ [![Conda-Forge](https://img.shields.io/conda/vn/conda-forge/kuhl-haus-mdp.svg)](https://anaconda.org/conda-forge/kuhl-haus-mdp)
57
+ [![Monthly Downloads](https://pepy.tech/badge/kuhl-haus-mdp/month)](https://pepy.tech/project/kuhl-haus-mdp)
58
+ -->
59
+
60
+
61
+ [![License](https://img.shields.io/github/license/kuhl-haus/kuhl-haus-mdp)](https://github.com/kuhl-haus/kuhl-haus-mdp/blob/mainline/LICENSE.txt)
62
+ [![PyPI](https://img.shields.io/pypi/v/kuhl-haus-mdp.svg)](https://pypi.org/project/kuhl-haus-mdp/)
63
+ [![Downloads](https://static.pepy.tech/badge/kuhl-haus-mdp/month)](https://pepy.tech/project/kuhl-haus-mdp)
64
+ [![Build Status](https://github.com/kuhl-haus/kuhl-haus-mdp/actions/workflows/publish-to-pypi.yml/badge.svg)](https://github.com/kuhl-haus/kuhl-haus-mdp/actions/workflows/publish-to-pypi.yml)
65
+ [![CodeQL](https://github.com/kuhl-haus/kuhl-haus-mdp/workflows/CodeQL/badge.svg)](https://github.com/kuhl-haus/kuhl-haus-mdp/actions/workflows/github-code-scanning/codeql/)
66
+ [![codecov](https://codecov.io/gh/kuhl-haus/kuhl-haus-mdp/branch/mainline/graph/badge.svg)](https://codecov.io/gh/kuhl-haus/kuhl-haus-mdp)
67
+ [![GitHub issues](https://img.shields.io/github/issues/kuhl-haus/kuhl-haus-mdp)](https://github.com/kuhl-haus/kuhl-haus-mdp/issues)
68
+ [![GitHub pull requests](https://img.shields.io/github/issues-pr/kuhl-haus/kuhl-haus-mdp)](https://github.com/kuhl-haus/kuhl-haus-mdp/pulls)
69
+
70
+
71
+ # kuhl-haus-mdp
72
+
73
+ Market data processing pipeline for stock market scanner.
74
+
75
+
76
+ ## Note
77
+
78
+ This project has been set up using PyScaffold 4.6. For details and usage
79
+ information on PyScaffold see https://pyscaffold.org/.
@@ -0,0 +1,29 @@
1
+ kuhl_haus/mdp/__init__.py,sha256=5dEpAdB3kypH8tCRECoXwbly1WV9kFU5kh8ldGSa0VI,349
2
+ kuhl_haus/mdp/analyzers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ kuhl_haus/mdp/analyzers/analyzer.py,sha256=eluYM2Iib5kgbpNZUSk2qEUL-j83ZTb3zmEmRazrmiM,404
4
+ kuhl_haus/mdp/analyzers/massive_data_analyzer.py,sha256=4EEKDJjJmxCdL5nFa87AogabBHgGVld02UuWTgqfFjI,4536
5
+ kuhl_haus/mdp/analyzers/top_stocks.py,sha256=AbRnPHSVrJgUq3CDV8SaNstldqoimlI23gpG69lzYBM,18759
6
+ kuhl_haus/mdp/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ kuhl_haus/mdp/components/market_data_cache.py,sha256=r5sJHuSuLiw9BVckW--aWZHHIMqOTCf-pFURA7kef3Q,1070
8
+ kuhl_haus/mdp/components/market_data_scanner.py,sha256=vA0HPqVIvuZb93wzJhtER6fcH6bf85AgXCbu7yVFOFE,9152
9
+ kuhl_haus/mdp/components/widget_data_service.py,sha256=ikygD9NRpidcXBEqft5Q11rHy_eUOwKGyOLEezo-Dd4,7439
10
+ kuhl_haus/mdp/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ kuhl_haus/mdp/helpers/process_manager.py,sha256=Is3Jx8nlBWvywQ1acdsdaSJTAG0olKskpPvrRB4VMDE,9024
12
+ kuhl_haus/mdp/helpers/queue_name_resolver.py,sha256=l_zfRLxrjR9uwRCV2VDO4vPWLK_lj5KVG2p4Lh8xWiw,770
13
+ kuhl_haus/mdp/integ/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ kuhl_haus/mdp/integ/massive_data_listener.py,sha256=fPEYc6zZzHzFFjbP3zFInajKtEGInj8UQKKo3nKQEwQ,5098
15
+ kuhl_haus/mdp/integ/massive_data_processor.py,sha256=9I0tH9sZNs9Y0TyKIBKix_qlEksEZt5NRfP-Zf3FovE,8708
16
+ kuhl_haus/mdp/integ/massive_data_queues.py,sha256=zC_uV2vwZCMyVerDQ18RAQwIMMF75iK4qUSqwuWqgwc,5050
17
+ kuhl_haus/mdp/integ/utils.py,sha256=4YVJQjfiygM_yXWPuwmNMDuKBQ_ZynSFy5cIO09AKTM,905
18
+ kuhl_haus/mdp/integ/web_socket_message_serde.py,sha256=jPXMVO-4RaZ8yrnqfgckeHEv_96_9yXj_keMq42NqJY,5456
19
+ kuhl_haus/mdp/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ kuhl_haus/mdp/models/market_data_analyzer_result.py,sha256=iICb5GVCtuqARNbR1JNCAfbxMijM3uppDNdL8_FB3eI,422
21
+ kuhl_haus/mdp/models/market_data_cache_keys.py,sha256=5iScBMhVQaG3p9P45veE-uRT7c6JY7k6j4DcvSEXENA,942
22
+ kuhl_haus/mdp/models/market_data_pubsub_keys.py,sha256=PEIPXK9jBehJB7G4pqoSuQZcfMZgOQq8Yho1itqv-1A,1306
23
+ kuhl_haus/mdp/models/market_data_scanner_names.py,sha256=BYn1C0rYgGF1Sq583BkHADKUu-28ytNZQ-XgptuCH-Y,260
24
+ kuhl_haus/mdp/models/massive_data_queue.py,sha256=MfYBcjVc4Fi61DWIvvhhWLUOiLmRpE9egtW-2KH6FTE,188
25
+ kuhl_haus_mdp-0.0.1.dist-info/METADATA,sha256=lGEPOXMMCCEbQsffzCI92WbeQ4QwiPL6LkiZrL69TX0,4258
26
+ kuhl_haus_mdp-0.0.1.dist-info/WHEEL,sha256=tsUv_t7BDeJeRHaSrczbGeuK-TtDpGsWi_JfpzD255I,90
27
+ kuhl_haus_mdp-0.0.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
28
+ kuhl_haus_mdp-0.0.1.dist-info/licenses/LICENSE.txt,sha256=DRkJftAJcMqoTkQ_Y6-HtKj3nm4pZah_p8XBZiYnw-c,1079
29
+ kuhl_haus_mdp-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: pdm-backend (2.4.6)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+
3
+ [gui_scripts]
4
+
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Tom Pounders
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.