Skip to main content

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.

Metadata

Release files for pfinance 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pfinance 0.2.1
File Size Uploaded Provenance Actions
pfinance-0.2.1.tar.gz 13.7 kB Without provenance Details for pfinance-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pfinance 0.2.1
File Interpreter ABI Platform Actions
pfinance-0.2.1-py3-none-any.whl Python 3 none any Details for pfinance-0.2.1-py3-none-any.whl

Total release size: 25.5 kB

Release files / pfinance-0.2.1.tar.gz

Download URL pfinance-0.2.1.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
17da1b13a0655d125d583837f11092a3b06284ec7467cfda3f7beaaf57226685
BLAKE2b-256 checksum
How to use checksums
9e39e98935b69b2b62c95cebb2570312a93b29349f3070f439013d140beb121d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pfinance-0.2.1-py3-none-any.whl

Download URL pfinance-0.2.1-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd161dbaf7a84c7a6c12e8d2ce85444b2ca42cca27243de390e50f66be3f75bf
BLAKE2b-256 checksum
How to use checksums
fcfa3f75fd535d8d0d09cda596b79b76ce7dbeeb0df8245343fede3f10c7bbdc
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for pfinance 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page