File size: 1,400 Bytes
6f5156a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
58
59
60
61
62
63
[build-system]
requires = ["setuptools>=68.0", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"

[project]
name = "legex"
version = "0.1.0"
description = "Extract structured data from legal decisions with LLMs."
requires-python = ">=3.11"
dependencies = [
    "pydantic>=2.0",
    "pydantic-settings>=2.0",
    "requests>=2.32",
    "datasets>=2.0",
    "huggingface-hub>=0.24",
    "pandas>=2.0",
    "pyarrow>=15.0",
    "python-dotenv>=1.2.2",
    "openpyxl>=3.1",
    "pdfplumber>=0.11",
    "pypdf>=6.10.2",
    "litellm[google]>=1.50",
    "fpdf2>=2.8",
    "beautifulsoup4>=4.12",
    "lxml>=5.0",
]

[project.optional-dependencies]
dev = [
    "pytest>=8.0",
    "pytest-asyncio>=0.23",
    "ruff>=0.4",
]

[project.scripts]
legex-run = "legex.main:main"
legex-india-extract = "legex.scrapers.in_:_extract_cli"
legex-classify = "legex.inference:main"
legex-evaluate = "legex.evaluation:main"
legex-analysis = "legex.analysis:main"
legex-plots = "legex.plots:main"
legex-pdf = "legex.pdf_export.cli:main"
legex-harvey-ingest = "legex.harvey:main"
legex-quant-results = "legex.quant_results:main"

[tool.setuptools.packages.find]
include = ["legex*"]

[tool.ruff]
line-length = 100

[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"

[dependency-groups]
dev = [
    "matplotlib>=3.10.9",
    "pytest>=9.0.2",
    "pytest-asyncio>=1.3.0",
    "ruff>=0.15.8",
]