{"id":34079852,"url":"https://github.com/j-pettit/pfinance","last_synced_at":"2025-12-14T11:03:52.789Z","repository":{"id":48694346,"uuid":"337249159","full_name":"j-pettit/pfinance","owner":"j-pettit","description":"Python financial mathematics library","archived":false,"fork":false,"pushed_at":"2021-10-10T01:25:27.000Z","size":155,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T07:35:35.646Z","etag":null,"topics":["finance","hacktoberfest","python","python-library"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j-pettit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-09T00:32:52.000Z","updated_at":"2025-06-30T20:51:48.000Z","dependencies_parsed_at":"2022-09-14T12:51:46.470Z","dependency_job_id":null,"html_url":"https://github.com/j-pettit/pfinance","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/j-pettit/pfinance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-pettit%2Fpfinance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-pettit%2Fpfinance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-pettit%2Fpfinance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-pettit%2Fpfinance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j-pettit","download_url":"https://codeload.github.com/j-pettit/pfinance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-pettit%2Fpfinance/sbom","scorecard":{"id":499613,"data":{"date":"2025-08-11","repo":{"name":"github.com/j-pettit/pfinance","commit":"ede675469be9919fd77d9231ebe892b57933be61"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/j-pettit/pfinance/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/j-pettit/pfinance/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/j-pettit/pfinance/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/j-pettit/pfinance/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/j-pettit/pfinance/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/j-pettit/pfinance/publish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:21","Warn: pipCommand not pinned by hash: .github/workflows/publish.yml:41","Warn: pipCommand not pinned by hash: .github/workflows/publish.yml:42","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T21:28:03.560Z","repository_id":48694346,"created_at":"2025-08-19T21:28:03.561Z","updated_at":"2025-08-19T21:28:03.561Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27726957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["finance","hacktoberfest","python","python-library"],"created_at":"2025-12-14T11:03:52.095Z","updated_at":"2025-12-14T11:03:52.778Z","avatar_url":"https://github.com/j-pettit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pfinance\npfinance is a Python financial mathematics library.\nIt attempts to provide a comprehensive suite of functions, tools, and calulators geared towards financial applications.\npfinance does not supply APIs for market and exchange lookup.\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eSupports\u003c/td\u003e\n    \u003ctd\u003ePython 3.9\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eLatest Release\u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://pypi.org/project/pfinance/\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/v/pfinance.svg\" alt=\"latest release\" /\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003ePackage Status\u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://pypi.org/project/pyfinance/\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/status/pyfinance.svg\" alt=\"status\" /\u003e\u003c/td\u003e\n      \u003c/a\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eLicense\u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://github.com/bsolomon1124/pyfinance/blob/master/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/l/pyfinance.svg\" alt=\"license\" /\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Installation\npfinance is available via [PyPI](https://pypi.python.org/pypi/pfinance/). Install with pip:\n\n```bash\n$ python3 -m pip install pfinance\n```\n\n**Note**: pfinance requires Python \u003e= 3.9 for full test and annotation compatability, but may offer reduced functionality for earlier 3.x versions.\n\n## Modules\npfinance functions are organized by module.\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eModule\u003c/td\u003e\n    \u003ctd\u003eDescription\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003egeneral\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eCommon finance functions\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003edepreciation\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eDepreciation of assets functions\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003etime_value\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eTime value of money functions\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003econversion\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eUnit and notation conversion functions\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003esecurities\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eSecurities tracking and analysis functions\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Example\nDetermine the value of a $100.00 investment earning 7% interest compounded monthly after 10 years.\n```python\n\u003e\u003e\u003e from pfinance import general\n\u003e\u003e\u003e value = general.compound_interest(100, 0.07, 10, 12)\n\u003e\u003e\u003e print(round(value, 2))\n200.97\n```\n\n## Dependencies\n\npfinance does not rely on any third party dependencies.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-pettit%2Fpfinance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj-pettit%2Fpfinance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-pettit%2Fpfinance/lists"}