Metadata-Version: 2.2
Name: trading-crab-lib
Version: 0.1.2
Summary: Market regime classification library — transforms, clustering, prediction, reporting
Author: Strycker
License: MIT
Project-URL: Homepage, https://github.com/strycker/trading-crab
Project-URL: Repository, https://github.com/strycker/trading-crab
Project-URL: Issues, https://github.com/strycker/trading-crab/issues
Keywords: finance,clustering,macroeconomics,machine-learning,time-series
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas>=2.0
Requires-Dist: numpy>=1.25
Requires-Dist: pyarrow>=14.0
Requires-Dist: scikit-learn>=1.4
Requires-Dist: scipy>=1.11
Requires-Dist: pyyaml>=6.0
Requires-Dist: joblib>=1.3
Requires-Dist: python-dotenv>=1.0
Provides-Extra: ingestion
Requires-Dist: fredapi>=0.5; extra == "ingestion"
Requires-Dist: requests>=2.31; extra == "ingestion"
Requires-Dist: lxml>=4.9; extra == "ingestion"
Requires-Dist: beautifulsoup4>=4.12; extra == "ingestion"
Requires-Dist: yfinance>=0.2; extra == "ingestion"
Requires-Dist: certifi>=2024.0; extra == "ingestion"
Provides-Extra: plotting
Requires-Dist: matplotlib>=3.8; extra == "plotting"
Requires-Dist: seaborn>=0.13; extra == "plotting"
Provides-Extra: hmm
Requires-Dist: hmmlearn>=0.3; extra == "hmm"
Requires-Dist: statsmodels>=0.14; extra == "hmm"
Provides-Extra: clustering-extras
Requires-Dist: hdbscan>=0.8; extra == "clustering-extras"
Requires-Dist: kneed>=0.8; extra == "clustering-extras"
Provides-Extra: boosting
Requires-Dist: lightgbm>=4.0; extra == "boosting"
Provides-Extra: all
Requires-Dist: trading-crab-lib[boosting,clustering-extras,hmm,ingestion,plotting]; extra == "all"
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: flake8; extra == "dev"

# trading-crab-lib

![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue)
![License](https://img.shields.io/badge/license-MIT-green)

Library for market regime classification and prediction pipeline.

<br>

Predict market conditions, best portfolios, and stock picks.

<br>

Classifies each calendar quarter with a macro regime (e.g. Stagflation, Growth Boom), then predicts today's regime and forward transition probabilities to generate weekly portfolio recommendations.

<br>

![Glenn with crab 2025](https://github.com/strycker/trading-crab/blob/main/images/glenn_with_crab_2025_300x400.png)

<br>
