Skip to main content

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).

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


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.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fincalc_lib-1.0.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file fincalc_lib-1.0.2.tar.gz.

File metadata

  • Download URL: fincalc_lib-1.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for fincalc_lib-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b295a0890d0d1313738c3e4de17530f34b61c70f30f461432fc120931ae4e9ce
MD5 7645740f41e8942048286af51f913ca6
BLAKE2b-256 c591a0e008b7a24f9d5589afd53fe4110f6be4382c82d9a18bee62b335fcaf40

See more details on using hashes here.

File details

Details for the file fincalc_lib-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: fincalc_lib-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for fincalc_lib-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c836daeeaa9e05f54284c01d0899f9e478755267d1ee5996050ff7a53480c692
MD5 48b200343bc69075f72369af37782e22
BLAKE2b-256 2a3f52a3e44b76531bdb3c85ca9c23fa2bbdd817cf57a695bd3bdcb4b0020c1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page