peregrine/requirements.txt
pyr0ball 96715bdeb6 feat(peregrine): add cloud_session middleware + SQLCipher get_connection()
cloud_session.py: no-op in local mode; in cloud mode resolves Directus JWT
from X-CF-Session header to per-user db_path in st.session_state.

get_connection() in scripts/db.py: transparent SQLCipher/sqlite3 switch —
uses encrypted driver when CLOUD_MODE=true and key provided, vanilla sqlite3
otherwise. libsqlcipher-dev added to Dockerfile for Docker builds.

6 new cloud_session tests + 1 new get_connection test — 34/34 db tests pass.
2026-03-09 19:43:42 -07:00

75 lines
2.9 KiB
Text

# requirements.txt — Peregrine by Circuit Forge LLC
# Extracted from environment.yml for Docker pip installs
# Keep in sync with environment.yml
# ── Web UI ────────────────────────────────────────────────────────────────
streamlit>=1.35
watchdog
reportlab>=4.0
pandas>=2.0
pyarrow
streamlit-paste-button>=0.1.0
# ── Job scraping ──────────────────────────────────────────────────────────
python-jobspy>=1.1
playwright>=1.40
selenium
undetected-chromedriver
webdriver-manager
beautifulsoup4
requests
curl_cffi
fake-useragent
# ── LLM / AI backends ─────────────────────────────────────────────────────
openai>=1.55.0,<2.0.0 # >=1.55 required for httpx 0.28 compat; <2.0 for langchain-openai
anthropic>=0.80
ollama
langchain>=0.2
langchain-openai
langchain-anthropic
langchain-ollama
langchain-community
langchain-google-genai
google-generativeai
tiktoken
# ── Resume matching ───────────────────────────────────────────────────────
scikit-learn>=1.3
rapidfuzz
# lib-resume-builder-aihawk intentionally excluded — pulls torch+CUDA (~7GB).
# AIHawk runs in its own conda env (aihawk-env) outside the Docker container.
# ── Notion integration ────────────────────────────────────────────────────
notion-client>=3.0
# ── Document handling ─────────────────────────────────────────────────────
pypdf
pdfminer-six
pdfplumber
python-docx
json-repair
pyyaml>=6.0
python-dotenv
# ── Auth / licensing ──────────────────────────────────────────────────────
PyJWT>=2.8
pysqlcipher3
# ── Utilities ─────────────────────────────────────────────────────────────
sqlalchemy
tqdm
loguru
rich
tenacity
httpx
# ── Testing ───────────────────────────────────────────────────────────────
pytest>=9.0
pytest-cov
pytest-mock
lxml
# ── Documentation ────────────────────────────────────────────────────────
mkdocs>=1.5
mkdocs-material>=9.5