-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (51 loc) · 2.12 KB
/
Copy pathpyproject.toml
File metadata and controls
57 lines (51 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "barber-llm"
version = "0.6.0"
description = "Query-aware context trimming for LLM requests. Your context could use a trim."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.10"
authors = [{ name = "Nadir" }]
keywords = ["llm", "context", "tokens", "prompt-compression", "rag", "cost"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"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 :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = []
[project.optional-dependencies]
semantic = ["sentence-transformers"]
eval = ["datasets", "openai", "tiktoken"]
tokens = ["tiktoken"]
# Framework adapters (barber/integrations/). Nothing in `barber` imports these;
# the floors are the oldest releases the adapters were tested against.
langchain = ["langchain-core>=0.3"]
llamaindex = ["llama-index-core>=0.13"]
[project.urls]
Homepage = "https://getnadir.com"
Source = "https://github.com/NadirRouter/barber"
[project.scripts]
barber-eval = "barber.eval.harness:main"
barber-mcp = "barber.mcp:main"
[tool.hatch.build.targets.wheel]
packages = ["barber"]
[tool.hatch.build.targets.sdist]
# Leading slashes are load-bearing: hatchling matches these gitignore-style, so
# an unanchored "README.md" / "LICENSE" also matched js/README.md and js/LICENSE
# and shipped two orphan files from a JS port the sdist otherwise excludes.
# `contrib` is here so tests/test_hook.py has the hook it tests, and
# `/hooks` + `/.claude-plugin` so tests/test_plugin.py has the manifests it
# pins -- the wheel is governed separately by packages = ["barber"], so none of
# them ever reaches an installed environment.
include = ["barber", "contrib", "tests", "docs", "/hooks", "/.claude-plugin",
"/README.md", "/LICENSE", "/pyproject.toml"]