https://github.com/j-pettit/pfinance
Python financial mathematics library
https://github.com/j-pettit/pfinance
finance hacktoberfest python python-library
Last synced: 6 months ago
JSON representation
Python financial mathematics library
- Host: GitHub
- URL: https://github.com/j-pettit/pfinance
- Owner: j-pettit
- License: mit
- Created: 2021-02-09T00:32:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T01:25:27.000Z (over 4 years ago)
- Last Synced: 2025-10-27T07:35:35.646Z (7 months ago)
- Topics: finance, hacktoberfest, python, python-library
- Language: Python
- Homepage:
- Size: 151 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# pfinance
pfinance is a Python financial mathematics library.
It attempts to provide a comprehensive suite of functions, tools, and calulators geared towards financial applications.
pfinance does not supply APIs for market and exchange lookup.
Supports
Python 3.9
Latest Release
Package Status
License
## Installation
pfinance is available via [PyPI](https://pypi.python.org/pypi/pfinance/). Install with pip:
```bash
$ python3 -m pip install pfinance
```
**Note**: pfinance requires Python >= 3.9 for full test and annotation compatability, but may offer reduced functionality for earlier 3.x versions.
## Modules
pfinance functions are organized by module.
Module
Description
general
Common finance functions
depreciation
Depreciation of assets functions
time_value
Time value of money functions
conversion
Unit and notation conversion functions
securities
Securities tracking and analysis functions
## Example
Determine the value of a $100.00 investment earning 7% interest compounded monthly after 10 years.
```python
>>> from pfinance import general
>>> value = general.compound_interest(100, 0.07, 10, 12)
>>> print(round(value, 2))
200.97
```
## Dependencies
pfinance does not rely on any third party dependencies.