An open API service indexing awesome lists of open source software.

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

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


latest release




Package Status


status




License


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.