fina-algo-lib
Advanced financial algorithm library for FinBench.
Package Metadata
- Package:
fina-algo-lib - Import:
fina_algo_lib - Version:
0.2.0 - Author:
Potheesh Vignesh K - Parent Project:
FinBench
What It Provides
- Retrieval: BM25, RRF, cosine similarity, overlap rerank scoring
- ML helpers: kmeans, weighted ensemble, model contribution scoring
- Statistics: regression, Newton solver, IRR, CAGR, z-score
- Valuation: NPV, DCF, WACC, scenario/sensitivity analysis
- Fixed income: bond pricing, YTM, duration, convexity
- Risk: rolling/EWMA vol, Sharpe, Sortino, VaR/CVaR, drawdown
- Time-series: smoothing, trend, outliers, anomaly detection, corr/cov
- Optimization: projected gradient step, mean-variance score, risk parity
- Central domain registry for algorithm lookup
Install (Development)
python -m venv .venv
.venv\\Scripts\\python -m pip install --upgrade pip
.venv\\Scripts\\pip install -r requirements-dev.txt
.venv\\Scripts\\pip install -e .
Install (Standard)
python -m venv .venv
.venv\\Scripts\\python -m pip install --upgrade pip
.venv\\Scripts\\pip install .
Install (Wheel)
python -m build
python -m venv .venv
.venv\\Scripts\\python -m pip install --upgrade pip
.venv\\Scripts\\pip install dist\\fina_algo_lib-0.2.0-py3-none-any.whl
Usage
from fina_algo_lib.registry import get_algorithm
wacc = get_algorithm("wacc")
print(wacc(60, 40, 0.12, 0.08, 0.25))
CLI
fina-algo
fina-algo --format json
python -m fina_algo_lib --format json
Release Artifacts
python -m build
This generates:
dist/fina_algo_lib-0.2.0.tar.gzdist/fina_algo_lib-0.2.0-py3-none-any.whl
Quality Gates
.venv\\Scripts\\ruff check src tests
.venv\\Scripts\\mypy src
.venv\\Scripts\\pytest tests/ -v
Benchmark
.venv\\Scripts\\python benchmarks\\benchmark_registry.py
Metadata
Release files for fina-algo-lib 0.2.0
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_algo_lib-0.2.0.tar.gz | 16.1 kB | Without provenance | Details for fina_algo_lib-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fina_algo_lib-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for fina_algo_lib-0.2.0-py3-none-any.whl |
Total release size: 32.2 kB
Release files / fina_algo_lib-0.2.0.tar.gz
| Download URL | fina_algo_lib-0.2.0.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e9659834066b32a93e71120d8d1d9525cdf9bba34ab86ae20eddb7c65139d8a
|
|
BLAKE2b-256 checksum How to use checksums |
448daf2cbfd28727d6bd40c7d06b7e38883a49652379bb95dd74b483df2fdcd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / fina_algo_lib-0.2.0-py3-none-any.whl
| Download URL | fina_algo_lib-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6adce82989ca21a03d0479aa8b235c039c385665ae5671ca53b5b421ec235693
|
|
BLAKE2b-256 checksum How to use checksums |
dbe7b673afde117fd86392f1aa53192e68a5b577b1746ebecb00068833734756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for fina-algo-lib 0.2.0
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.