Financial mathematics library
Project description
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. Install with pip:
$ 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.
>>> 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.
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
File details
Details for the file pfinance-0.2.2.tar.gz
.
File metadata
- Download URL: pfinance-0.2.2.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b07806ceb39a2b93195731a829d77e2fbe901904f1a3033a379bc99fff2903b |
|
MD5 | 2bde658266a6ac960a0446991f319297 |
|
BLAKE2b-256 | 351be9d4e6186f0bed4d0f4056d97ec22f6a9adb15aec1b6461588e9a76090a1 |
File details
Details for the file pfinance-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: pfinance-0.2.2-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bcd009d0e7b5c82c943fbdd7bb1d8cedb2331e0f6c046f556fe0ddbafedcdd8 |
|
MD5 | a6465fdb10b376c6757dbbefa8f051e3 |
|
BLAKE2b-256 | 628be3301b0d7c8e3354adb13a5e30e46dd7995d25ab9a6a5177517cdef96fb8 |