Fina Maths Lib
Deterministic financial mathematics library for FinBench with explicit formula functions and registry-backed lookup.
Library Name
- PyPI/Package name:
fina-maths-lib - Python import name:
maths_lib
Parent Repository
This library is prepared as a sub-module/component for:
Author
- Potheesh Vignesh K
Contact
- Email:
kpotheeshvignesh@gmail.com
Highlights
- Total formulas: 1500
- Explicit formula functions (no hidden dynamic-only API)
- Domain-wise module organization
- Central registry for formula metadata and callable access
- Deterministic test suite with uniqueness/overlap checks
Project Structure
src/maths_lib/- source packagetests/maths_lib/- exhaustive testsPDR_maths_lib.md- requirement documentformula_registry.py- source registry reference
Setup
python -m venv .venv
.\.venv\Scripts\python -m pip install -U pip
.\.venv\Scripts\python -m pip install -r requirements.txt
Build Package
.\.venv\Scripts\python -m build
Note: run only python -m build (do not append extra words like success).
Run Tests
.\.venv\Scripts\python -m pytest tests\ -v
Registry Usage
import maths_lib as ml
print(len(ml.FORMULA_REGISTRY))
result = ml.FORMULA_REGISTRY["gross_margin"](revenue=1000, cogs=600)
print(result.value, result.valid)
Notes
- Formula IDs are unique across all domains.
- Expressions are evaluated via deterministic expression engine in
base.py. - Tests include per-formula deterministic execution and registry integrity checks.
Metadata
Release files for fina-maths-lib 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fina_maths_lib-0.1.1.tar.gz | 137.9 kB | Without provenance | Details for fina_maths_lib-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fina_maths_lib-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for fina_maths_lib-0.1.1-py3-none-any.whl |
Total release size: 283.3 kB
Release files / fina_maths_lib-0.1.1.tar.gz
| Download URL | fina_maths_lib-0.1.1.tar.gz |
|---|---|
| Size | 137.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0c2667178432b11728181404c59930f5a16dade0ed2a052fe71b1771ee26bdc
|
|
BLAKE2b-256 checksum How to use checksums |
35c01794ce5180a53a4290bd46897bcfe516c3f25ea4720bca8255b9e5b8d7a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / fina_maths_lib-0.1.1-py3-none-any.whl
| Download URL | fina_maths_lib-0.1.1-py3-none-any.whl |
|---|---|
| Size | 145.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bbf40ad265a26b22bf1a3b5d3fdacc8fae25e430a7abd4c187f8f16625c67e9
|
|
BLAKE2b-256 checksum How to use checksums |
7cd93c2da5e0915374ec3675f5c00012dcbf72e6cdfd2009105e6c8fe79de6d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for fina-maths-lib 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.