1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

finance/py-financetoolkit: New port: Transparent and efficient financial analysis

This commit is contained in:
Yuri Victorovich 2024-11-10 14:34:05 -08:00
parent be7bdd6616
commit 1e43d311a3
4 changed files with 65 additions and 0 deletions

View File

@ -111,6 +111,7 @@
SUBDIR += py-exchange-calendars
SUBDIR += py-ffn
SUBDIR += py-financedatabase
SUBDIR += py-financetoolkit
SUBDIR += py-finnhub-python
SUBDIR += py-finviz
SUBDIR += py-finvizfinance

View File

@ -0,0 +1,42 @@
PORTNAME= financetoolkit
DISTVERSIONPREFIX= v
DISTVERSION= 1.9.8
CATEGORIES= finance python
#MASTER_SITES= PYPI # no tests
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Transparent and efficient financial analysis
WWW= https://www.jeroenbouma.com/projects/financetoolkit \
https://github.com/JerBouma/FinanceToolkit
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandas>=2.1.0:math/py-pandas@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.32.3:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scikit-learn>0:science/py-scikit-learn@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yfinance>0:finance/py-yfinance@${PY_FLAVOR}
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} \
${PY_SETUPTOOLS} \
${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipykernel>=6.29.5:devel/py-ipykernel@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-cov>=5.0.0:devel/py-pytest-cov@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-recorder>=0.3.0:devel/py-pytest-recorder@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-recording>=0.13.2:devel/py-pytest-recording@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR}
USES= python
USE_PYTHON= pep517 autoplist pytest # 3 errors in tests, see https://github.com/JerBouma/FinanceToolkit/issues/160
USE_GITHUB= yes
GH_ACCOUNT= JerBouma
GH_PROJECT= FinanceToolkit
NO_ARCH= yes
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1731266273
SHA256 (JerBouma-FinanceToolkit-v1.9.8_GH0.tar.gz) = 9c7eab74856ceb4184f722ba36746622bdf0387b3268a385df0fbd7a448a9d90
SIZE (JerBouma-FinanceToolkit-v1.9.8_GH0.tar.gz) = 89641687

View File

@ -0,0 +1,19 @@
FinanceToolkit is an open-source toolkit in which all relevant financial
ratios (180+), indicators and performance measurements are written down in the
most simplistic way allowing for complete transparency of the calculation method
(proof). This allows you to not have to rely on metrics from other providers
and, given a financial statement, allow for efficient manual calculations. This
leads to one uniform method of calculation being applied that is available and
understood by everyone.
The Finance Toolkit not only supports Equities. Even for Options, Currencies,
Cryptocurrencies, ETFs, Mutual Funds, Indices, Money Markets, Commodities, Key
Economic Indicators and more, the Finance Toolkit can be used to obtain
historical data as well as important performance and risk measurements such as
the Sharpe Ratio and Value at Risk.
The Finance Toolkit is complimented very well with the Finance Database, a
database that features 300.000+ symbols containing Equities, ETFs, Funds,
Indices, Currencies, Cryptocurrencies and Money Markets. By utilising both,
it is possible to do a fully-fledged competitive analysis with the tickers found
from the FinanceDatabase inputted into the FinanceToolkit.