Files
kjvstudy.org/pyproject.toml
T
kennethreitz 7522b27e7c Implement Phase 2 performance optimizations
1. Replace regex markdown with mistune library
   - Add mistune>=3.0.2 dependency
   - Replace custom regex patterns with proper markdown parser
   - Better performance and more robust parsing
   - Supports full markdown syntax (bold, italic, strikethrough, etc.)

2. Cache story counts
   - Cache get_story_count() and get_category_count()
   - Expected: 10-20x faster story index page loads
   - Added cache invalidation to refresh_stories()

3. Fix O(n) pattern in helpers.py
   - Replace manual chapter filtering with bible.get_chapters_for_book()
   - Uses existing @lru_cache for instant lookups

Combined expected improvement: 10-20% on story pages, faster markdown

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 12:06:13 -05:00

46 lines
895 B
TOML

[project]
name = "kjvstudy-org"
version = "0.1.0"
description = "Study the King James Bible with AI-powered commentary and insights"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"biblepy>=0.1.3",
"fastapi[standard]>=0.115.12",
"ged4py>=0.5.2",
"mistune>=3.0.2",
"parse>=1.20.2",
"python-gedcom>=1.0.0",
"requests>=2.32.3",
"weasyprint>=66.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3.5",
"pytest-cov>=6.0.0",
"pytest-xdist>=3.5.0",
]
[project.scripts]
kjvstudy-org = "kjvstudy_org.main:main"
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["."]
include = ["kjvstudy_org*"]
[tool.setuptools.package-data]
kjvstudy_org = ["static/*", "templates/*"]
[tool.uv]
package = true
[dependency-groups]
dev = [
"pytest>=8.3.5",
]