Deterministic FinBench logic library (195 rules across 6 layers)
Project description
fina-logic-lib
Deterministic logic library for FinBench - AI Multi-Agent Business Analyst System.
Author: Potheesh Vignesh K
What this package provides
- 195 deterministic rules across 6 layers:
- Extraction resolver (45)
- Decision rules (50)
- Composite resolver (30)
- Reconciliation (25)
- Narrative reasoning (20)
- Verification and abstention (25)
A separate formula engine can handle numeric computation, while fina-logic-lib handles rule-based interpretation, routing, consistency checks, and abstention.
Install
pip install fina-logic-lib
Development setup
python -m venv .venv
.venv\Scripts\activate
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
Verify
pytest tests/ -v
Lint check:
ruff check src tests
Release safety checks
python scripts/check_release.py
This runs tests, builds package artifacts, and validates metadata with twine check.
Publish
Set token env and upload:
set TWINE_USERNAME=__token__
set TWINE_PASSWORD=<your-pypi-token>
python scripts/publish.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fina_logic_lib-0.1.1.tar.gz.
File metadata
- Download URL: fina_logic_lib-0.1.1.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
599f9edce11dd883375cf621b276e12b6009df000af05f17752b8630d9f0b2a9
|
|
| MD5 |
035b7178e5dbe76b4100f2286455440b
|
|
| BLAKE2b-256 |
24953ea39215174d523b2e8b698d4e38885077e2028ab55e224fae6c5a01fde1
|
File details
Details for the file fina_logic_lib-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fina_logic_lib-0.1.1-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b368846aadbda1d329fc28b75b8e50f7b2168fe70a7cd2ac9e2bc945f6f40f70
|
|
| MD5 |
2482bf2efe0577ab2dbc35e553647d81
|
|
| BLAKE2b-256 |
1de8f73fd3f2e2105ee85c48b5a31ba4e26b7ca3b0e5bd3c44ec5fdf363c20ef
|