Skip to content

Installation

Requirements

  • Python 3.9+
  • PyTorch 2.0+ (for StrataNet only — optional for classic API)

Install from PyPI

pip install strata-market

Install with optional dependencies

# StrataNet (PyTorch neural network)
pip install "strata-market[dev]"

# Hugging Face Hub integration
pip install "strata-market[hf]"

# Full installation (all extras)
pip install "strata-market[full]"

Verify installation

import strata
print(strata.__version__)   # 2.6.0

PyTorch (for StrataNet)

# CPU only
pip install torch --index-url https://download.pytorch.org/whl/cpu

# CUDA 12.x
pip install torch --index-url https://download.pytorch.org/whl/cu124

Hugging Face Hub (for pretrained models)

pip install huggingface_hub

# Download pretrained StrataNet
from huggingface_hub import hf_hub_download
from strata import StrataNet

path  = hf_hub_download(repo_id="emylton/strata-net", filename="aapl_net.pt")
model = StrataNet.load(path)