Skip to main content

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 latest release
Package Status status
License 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pfinance-0.2.2.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

pfinance-0.2.2-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

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

Hashes for pfinance-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2b07806ceb39a2b93195731a829d77e2fbe901904f1a3033a379bc99fff2903b
MD5 2bde658266a6ac960a0446991f319297
BLAKE2b-256 351be9d4e6186f0bed4d0f4056d97ec22f6a9adb15aec1b6461588e9a76090a1

See more details on using hashes here.

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

Hashes for pfinance-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8bcd009d0e7b5c82c943fbdd7bb1d8cedb2331e0f6c046f556fe0ddbafedcdd8
MD5 a6465fdb10b376c6757dbbefa8f051e3
BLAKE2b-256 628be3301b0d7c8e3354adb13a5e30e46dd7995d25ab9a6a5177517cdef96fb8

See more details on using hashes here.

Supported by

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