A professional finance analytics calculator library.
Project description
FinCalc Lib
A lightweight Python library for essential finance analytics, including NPS, profitability margins, and cash flow metrics.
Features
- Customer Metrics: Calculate Net Promoter Score (NPS).
- Profitability: Gross, Operating, and Net Profit Margins.
- Liquidity & Leverage: Current Ratio and Debt-to-Equity.
- Cash Flow: Free Cash Flow (FCF) and Operating Cash Flow (CFO).
Live URL
https://pypi.org/project/fincalc-lib/
Dashboard Image Refrence
https://pypi.org/project/fincalc-lib/
List Of All calculated Function and Formulas
Installation
You can install the package directly from PyPI:
pip install fincalc-lib
Or install the wheel file locally:
pip install fincalc_lib-1.0.0-py3-none-any.whl
## Quick Start
Here is a simple example of how to use the library:
import fincalc
# Calculate Net Promoter Score# Parameters: (promoters, detractors, total_responses)nps = fincalc.calculate_nps(80, 10, 100)
print(f"Your NPS is: {nps}")
# Calculate Profit Margin# Parameters: (profit, revenue)margin = fincalc.profit_margin(20000, 100000)
print(f"Profit Margin: {margin}%")
## Available Formulas
|-----------|---------------------|--------------------------------------|
| Category | Function | Formula |
|-----------|---------------------|--------------------------------------|
| Customer | calculate_nps | %Promoters - %Detractors |
| Profit | gross_profit_margin | (Gross Profit / Revenue) * 100 |
| Leverage | debt_to_equity | Total Liability / Total Equity |
| Cash Flow | free_cash_flow | CFO - Capital Expenditures |
|-----------|---------------------|--------------------------------------|
## Development
If you want to contribute or build the wheel yourself:
1. Clone the repo:
git clone [https://github.com](https://github.com/Akansha9821/finance_calculator.git)
2. Build the package:
python -m build
## License
MIT
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
fincalc_lib-1.0.3.tar.gz
(3.7 kB
view details)
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 fincalc_lib-1.0.3.tar.gz.
File metadata
- Download URL: fincalc_lib-1.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc8abe446f63fd1b0ff78b4307b843e73c109e91626910f0d987cdc70a396e6
|
|
| MD5 |
142faf972b784791408c87ec1994ad0d
|
|
| BLAKE2b-256 |
c5ab2e0950b76d2c6894d26ac099bf9beaf8b7774523dba42486dd85aa571d4c
|
File details
Details for the file fincalc_lib-1.0.3-py3-none-any.whl.
File metadata
- Download URL: fincalc_lib-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9ad1bb049eaffe8bb11c6562e2e019695bda8a9faf024f7eb7d68fd73178f88
|
|
| MD5 |
26ff402680a4b3e9eb215ea04f9ed7f5
|
|
| BLAKE2b-256 |
41955c00399eea41e5d82ad1b096587b8f0ed414536640a44f7286ddca2a711f
|