async-semantic-llm-cache/pyproject.toml

114 lines
2.7 KiB
TOML
Raw Permalink Normal View History

2026-03-06 15:54:47 +01:00
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "semantic-llm-cache"
version = "0.2.0"
description = "Async semantic caching for LLM API calls - reduce costs with one decorator"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "Karthick Raja M", email = "karthickrajam18@gmail.com"}
]
keywords = [
"llm",
"cache",
"semantic",
"async",
"openai",
"anthropic",
"ollama",
2026-03-06 16:00:19 +01:00
"llama.cpp",
2026-03-06 15:54:47 +01:00
"prompt",
"optimization",
"cost-reduction",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Framework :: AsyncIO",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"numpy>=1.24.0",
"aiosqlite>=0.19.0",
]
[project.optional-dependencies]
semantic = [
"sentence-transformers>=2.2.0",
]
redis = [
"redis>=4.2.0",
]
openai = [
"openai>=1.0.0",
]
all = [
"sentence-transformers>=2.2.0",
"redis>=4.2.0",
"openai>=1.0.0",
]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.0.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"build>=1.0.0",
"twine>=4.0.0",
"bump2version>=1.0.1",
]
[project.urls]
Homepage = "https://github.com/karthyick/prompt-cache"
Documentation = "https://github.com/karthyick/prompt-cache#readme"
Repository = "https://github.com/karthyick/prompt-cache.git"
"Bug Tracker" = "https://github.com/karthyick/prompt-cache/issues"
[tool.setuptools.packages.find]
include = ["semantic_llm_cache*"]
exclude = ["tests*", "examples*", "docs*"]
[tool.setuptools.package-data]
semantic_llm_cache = ["py.typed"]
[tool.black]
line-length = 100
target-version = ['py310', 'py311', 'py312', 'py313']
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "C4"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disable_error_code = ["annotation-unchecked"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
addopts = "-v --cov=semantic_llm_cache --cov-report=html --cov-report=term-missing --cov-fail-under=90"