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.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

pfinance-0.2.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file pfinance-0.2.1.tar.gz.

File metadata

  • Download URL: pfinance-0.2.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for pfinance-0.2.1.tar.gz
Algorithm Hash digest
SHA256 17da1b13a0655d125d583837f11092a3b06284ec7467cfda3f7beaaf57226685
MD5 d8ea7975908e8f355207b7b9f36054a2
BLAKE2b-256 9e39e98935b69b2b62c95cebb2570312a93b29349f3070f439013d140beb121d

See more details on using hashes here.

File details

Details for the file pfinance-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pfinance-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for pfinance-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd161dbaf7a84c7a6c12e8d2ce85444b2ca42cca27243de390e50f66be3f75bf
MD5 5247ddf43adbfec282678ed734034eec
BLAKE2b-256 fcfa3f75fd535d8d0d09cda596b79b76ce7dbeeb0df8245343fede3f10c7bbdc

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