File size: 2,879 Bytes
dcc24f8
 
 
 
 
 
1eeb36e
dcc24f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c876830
 
 
 
 
 
dcc24f8
 
 
 
c876830
 
 
dcc24f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "finee"
version = "1.0.3"
description = "Extract structured financial entities from Indian banking messages"
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [
    { name = "Ranjit Behera", email = "ranjit.behera@example.com" }
]
keywords = [
    "finance",
    "nlp",
    "entity-extraction",
    "banking",
    "upi",
    "india",
    "llm",
    "phi-3",
]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Intended Audience :: Developers",
    "Intended Audience :: Financial and Insurance Industry",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Topic :: Office/Business :: Financial",
    "Topic :: Scientific/Engineering :: Artificial Intelligence",
    "Topic :: Text Processing :: General",
]

# CORE: No ML dependencies (regex/rules only mode)
dependencies = [
    "json-repair>=0.28.0",      # Fix broken JSON
    "python-dateutil>=2.8.0",   # Date parsing
]

[project.optional-dependencies]
# Apple Silicon (MLX)
metal = [
    "mlx-lm>=0.19.0",
]

# NVIDIA GPU (PyTorch + Transformers)
cuda = [
    "torch>=2.0.0",
    "transformers>=4.36.0",
    "accelerate>=0.25.0",
]

# CPU only (llama.cpp - works everywhere)
cpu = [
    "llama-cpp-python>=0.2.0",
]

# All backends
all = [
    "finee[metal,cuda,cpu]",
]

# Development
dev = [
    "pytest>=7.4.0",
    "pytest-cov>=4.1.0",
    "black>=23.0.0",
    "ruff>=0.1.0",
    "mypy>=1.0.0",
]

# Documentation
docs = [
    "mkdocs>=1.5.0",
    "mkdocs-material>=9.0.0",
]

[project.urls]
Homepage = "https://github.com/Ranjit0034/llm-mail-trainer"
Documentation = "https://huggingface.co/Ranjit0034/finance-entity-extractor"
Repository = "https://github.com/Ranjit0034/llm-mail-trainer"
Issues = "https://github.com/Ranjit0034/llm-mail-trainer/issues"

[project.scripts]
finee = "finee.cli:main"

[tool.hatch.build.targets.sdist]
include = [
    "/src/finee",
    "/README.md",
    "/LICENSE",
]

[tool.hatch.build.targets.wheel]
packages = ["src/finee"]

[tool.hatch.build.targets.wheel.sources]
"src" = ""

[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"

[tool.black]
line-length = 100
target-version = ['py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'

[tool.ruff]
line-length = 100
select = ["E", "F", "W", "I", "N"]
ignore = ["E501"]  # Line too long (handled by black)

[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_ignores = true
ignore_missing_imports = true