A numpy-style toolkit for quantitative and business finance: TVM math, technical indicators, risk metrics, financial ratios, statement analysis, costing, variance analysis, and audit analytics.
Project description
MY727FINANCE
A professional Python library for Quantitative Finance, Financial Analysis, Corporate Finance, Cost & Management Accounting, Audit Analytics, and Business Intelligence.
MY727FINANCE provides a NumPy-style API for financial calculations, allowing developers, accountants, auditors, analysts, researchers, students, and businesses to perform financial computations using a single, lightweight library.
Designed & Developed By
T.P. Thangaprabhu
B.Sc., MBA, CIMA Adv Dip MA (UK), FCMA, ACPIFSD (IIT Roorkee)
Cost Accountant | Full Stack Developer | Data Scientist
Founder & Director
MY727INFOTECH INDIA PRIVATE LIMITED
Installation
From PyPI
pip install my727finance
From Wheel
pip install my727finance-0.1.0-py3-none-any.whl
Development Installation
pip install -e ".[dev]"
Quick Start
import my727finance as mf
ratio = mf.ratios.current_ratio(
150000,
75000,
)
print(ratio)
Output
2.0
Example
import my727finance as mf
summary = mf.management_insights.financial_health_summary(
current_assets=200000,
current_liabilities=100000,
total_debt=300000,
average_shareholders_equity=500000,
net_income=80000,
revenue=1000000,
average_total_assets=900000,
)
print(summary)
Features
✔ Financial Mathematics
✔ Financial Ratio Analysis
✔ Financial Statement Analysis
✔ Technical Indicators
✔ Portfolio Risk Analytics
✔ Cash Flow Analysis
✔ Working Capital Analysis
✔ Cost Accounting
✔ Cost Volume Profit Analysis
✔ Standard Costing Variance Analysis
✔ Audit Analytics
✔ Management Insights
✔ NumPy-first API
✔ Pandas-friendly
✔ Extensive Input Validation
✔ Type Hints
✔ Comprehensive Automated Tests
Module Overview
| Module | Description |
|---|---|
| financial_math | Time Value of Money, NPV, IRR, Loan Calculations, Amortization |
| indicators | SMA, EMA, RSI, MACD, Bollinger Bands |
| risk | Returns, Volatility, Sharpe Ratio, Sortino Ratio, VaR, Beta |
| ratios | Liquidity, Profitability, Leverage, Efficiency and Valuation Ratios |
| statement_analysis | Vertical Analysis, Horizontal Analysis and Trend Analysis |
| cash_flow | Free Cash Flow, Cash Conversion Cycle and Cash Flow Ratios |
| working_capital | Working Capital Analysis and Efficiency Metrics |
| costing | Contribution Margin, Break-even Analysis and CVP |
| variance_analysis | Material, Labour, Overhead and Sales Variances |
| audit_analytics | Benford Analysis, Outlier Detection and Duplicate Detection |
| management_insights | DuPont Analysis, Altman Z-Score and Financial Health Summary |
Design Principles
MY727FINANCE has been designed with the following principles:
- Simple API
- High Performance
- NumPy-first
- Pandas-friendly
- Lightweight
- Well Documented
- Highly Tested
- Easy to Extend
- Enterprise Ready
Dependencies
Only two external libraries are required:
- NumPy
- Pandas
This keeps the library lightweight and suitable for offline environments.
Supported Python Versions
- Python 3.9+
- Python 3.10
- Python 3.11
- Python 3.12
Testing
MY727FINANCE includes an extensive automated testing suite.
Current Quality Metrics
- 490 Automated Tests
- 490 Passed
- 0 Failed
- Approximately 88% Code Coverage
Run the tests:
pytest -v
Run coverage:
pytest --cov=my727finance --cov-report=term-missing
Build
python -m build
Publish to PyPI
python -m pip install --upgrade build twine
python -m build
twine upload dist/*
Example Usage
import my727finance as mf
prices = [100,102,101,105,107,110]
returns = mf.risk.simple_returns(prices)
print(
mf.risk.sharpe_ratio(returns)
)
print(
mf.indicators.rsi(prices)
)
print(
mf.ratios.current_ratio(
250000,
100000
)
)
Disclaimer
MY727FINANCE provides standard financial and accounting calculations for educational, analytical and professional purposes.
The results generated by this library should not be considered financial, investment, legal, accounting, taxation or audit advice.
Users should apply appropriate professional judgment and independently verify all calculations before making financial or business decisions.
License
This software is licensed under the MY727FINANCE Community License v1.0.
Please read the LICENSE file before using or distributing this software.
Copyright
Copyright © 2026
MY727INFOTECH INDIA PRIVATE LIMITED
All Rights Reserved.
Original Software Design & Development
T.P. Thangaprabhu
B.Sc., MBA, CIMA Adv Dip MA (UK), FCMA, ACPIFSD (IIT Roorkee)
Cost Accountant | Full Stack Developer | Data Scientist
Founder & Director
MY727INFOTECH INDIA PRIVATE LIMITED
Contact
MY727INFOTECH INDIA PRIVATE LIMITED
Email: prabhu@my727infotech.co.in
Website: https://www.my727infotech.co.in
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 my727finance-0.1.0.tar.gz.
File metadata
- Download URL: my727finance-0.1.0.tar.gz
- Upload date:
- Size: 53.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9aeac1a9fc2e64a118c2c190e413230db58fd4626fef3ed010c983757b018f6
|
|
| MD5 |
ceb52b5e488b47ca965632fcd6d6e4bb
|
|
| BLAKE2b-256 |
9621001037ce0ddfef1b80346f220f022cd17941729bedc8240188ab1ba5f47c
|
File details
Details for the file my727finance-0.1.0-py3-none-any.whl.
File metadata
- Download URL: my727finance-0.1.0-py3-none-any.whl
- Upload date:
- Size: 43.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
374c7b316abe2c4d7229e7988cbcb70c4900cce01e48a9cf4b03104f2affb175
|
|
| MD5 |
9fb6b136d1abf9fd33e970b0b4e71853
|
|
| BLAKE2b-256 |
1421eb7f54b887abc06bfb1d88ce65eb5a51d960a9d74f5981d071c558ee0ae4
|