From nobody Sun Nov 10 23:53:14 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XmqHt6Bnyz5cSC3; Sun, 10 Nov 2024 23:53:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XmqHt5fmlz4ttF; Sun, 10 Nov 2024 23:53:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731282794; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vEZUARxL4qVWGFt+nzgr+k29R+qXffxV9oWziNCOX/I=; b=px4XQRekRD48+zJtqFqHRKjGe8XIYvBp+QEgCESCi4QrS9IomhW4fLVHhgc1keBNf3PptL EqOkF6iXaY73ErrR3uKm+FWE55rbbYu+skvRlK2SE7n9OrOGW1ntqqrT48/Jt8t2Qke7tR SZWMnfZ4t1d8mMlfbcJQSQz2OE8PxxgzDXVDHPrNao/3o6vCzUDci+NqW1UPc3k+Yvpzpe 36y03qvAH5/FcLNxxeD3Fsk7jzISUnSS2lmQuOANrPr8ka01NIDnDo4lZgWfH0eaCGBpE4 CnuA+4Gc1b90dViAWZB3m0CdAxKXHE6eIR92JS7xONlNd/5fSASt/0YsexsXKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731282794; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vEZUARxL4qVWGFt+nzgr+k29R+qXffxV9oWziNCOX/I=; b=del54ODjfg6nKxiwtQmPBa1J0cr/yxevLqdTlgbD01t6KCD/EZ8V6oMLIShuAhlJ5BGH+I TWLyuEK1Z5rHwJ47ZfX1gn5n/0XssE6rA0v7RNyXrRN1HqCrpvAGGcumqC58hqpo5oB+6k BCAsXnxVD8A6VHvn0n5CSgI/Qt41dGHEQjlnKhTi8UPbcHrabAYqPiFgLBswIen62gKoL6 7I0Miupt7jPLu/B9eixJs0s+vCUqiwinG0iNGbACsKVUcR5R2Ic+K57pJ+nTv+gWeI8O4M AAcL/drUMBTsQ73Zw+7hPGvHmvxvLTtNav4QkVi86gymNpZ8Ta+XXjGsLtOWSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731282794; a=rsa-sha256; cv=none; b=ysas9wwq3PE/5n42JXTwZtQ1fR2H48apmoOSTM2NWF8UPadfp6tKkpgFYbS6zXAbei93oe 7N+TNpBcxq3TmEh2psH5VKRWJuujLtDpLFVHiNg30pG0CrFC+qZ73i32qEb+bxTsq7fzka QpvyyHLklRulNhx7bjHjkduhkn/760OF5CCaWgwAZZR/sIaBnrwvLOFe3ReMUEmSWQ4PaT qBKjPJfvuoY6iB6K8UFi+2Tl/NKYRJu6TDZCWFgieLAwBfDzmSRdCVPDK9vOBc6dREReUd wpOLv6eYpW10oIxQZ2Rag304GNCtMtetuIt9ymhiFhL0XJ/hqkym/iT19ZtSNg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XmqHt5G0dz12pM; Sun, 10 Nov 2024 23:53:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AANrE9c008332; Sun, 10 Nov 2024 23:53:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AANrEao008329; Sun, 10 Nov 2024 23:53:14 GMT (envelope-from git) Date: Sun, 10 Nov 2024 23:53:14 GMT Message-Id: <202411102353.4AANrEao008329@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 1e43d311a385 - main - finance/py-financetoolkit: New port: Transparent and efficient financial analysis List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1e43d311a385fd75db844795c36d53b35fa97ae7 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=1e43d311a385fd75db844795c36d53b35fa97ae7 commit 1e43d311a385fd75db844795c36d53b35fa97ae7 Author: Yuri Victorovich AuthorDate: 2024-11-10 22:34:05 +0000 Commit: Yuri Victorovich CommitDate: 2024-11-10 23:53:11 +0000 finance/py-financetoolkit: New port: Transparent and efficient financial analysis --- finance/Makefile | 1 + finance/py-financetoolkit/Makefile | 42 +++++++++++++++++++++++++++++++++++++ finance/py-financetoolkit/distinfo | 3 +++ finance/py-financetoolkit/pkg-descr | 19 +++++++++++++++++ 4 files changed, 65 insertions(+) diff --git a/finance/Makefile b/finance/Makefile index 1255e2b0904a..a3c57ffdbb3d 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -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 diff --git a/finance/py-financetoolkit/Makefile b/finance/py-financetoolkit/Makefile new file mode 100644 index 000000000000..1e6a855a18b9 --- /dev/null +++ b/finance/py-financetoolkit/Makefile @@ -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 diff --git a/finance/py-financetoolkit/distinfo b/finance/py-financetoolkit/distinfo new file mode 100644 index 000000000000..3fa0e6c0f99d --- /dev/null +++ b/finance/py-financetoolkit/distinfo @@ -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 diff --git a/finance/py-financetoolkit/pkg-descr b/finance/py-financetoolkit/pkg-descr new file mode 100644 index 000000000000..c7388c80d5c9 --- /dev/null +++ b/finance/py-financetoolkit/pkg-descr @@ -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.