From nobody Sun Dec 25 09:57:52 2022 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 4NfxDc5Tmwz1HSX8; Sun, 25 Dec 2022 09:57:52 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NfxDc55KHz3kfj; Sun, 25 Dec 2022 09:57:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671962272; 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=gprUq5tq393FCtQbVU4zYP0FBaVtC16H84+F23ldC7g=; b=K2OT/r2kBxgMoAFDrCXfCFARNHDQ2yriMMWbAFXqkDHQjdmlqqXat7QD/sITLngqQiGNpI sezql5Dh1IeieJttoOllu45nuxwebs+8G1obif9qxZRs3TLSauaG4twUmWKP41fu9m4KWx O7gnLasVeQbY/+1/JjK3iCHChA2T+gTsjw8Vl+u2aq0zP0pbTLai0CW6YoJPMJAoaMJMMa 6T9PmkK29VckFQ+wGDxZh1c9IFJYWcAWMKlFUJv3xKO0ffSdnjKy/NHBuNJjYHbCt9/d3i YkmX4nQD/zTvvHukJksl/5hkh7wMP+4lhagzSguzLbVeD3D5IUD7mLURzIeHcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671962272; 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=gprUq5tq393FCtQbVU4zYP0FBaVtC16H84+F23ldC7g=; b=urKwv+/ydDhEOuRIylnOXiKO3JcLNkr3vgU4M3wVBBY6tpCErqVthApa3mz2In375u3bQO ElpIIDnryZHW5OEonkNI6hvTnHCQBXQyGmeGTg9+zyg5IRPdG6j6cbo6XJfhTtx1HRbSYj Nq0PB+l8OvgA5KDyzQmP8BnZrUCOLv1vqIbvRJEv5/yXOFHTgc8e8JgqUTq1OdYrfELsI9 4BltxzHL/YPiMHsUn3HWrJMtjlv/hxOu4vjfnhAscsHF2N8u+APmm/WwTkrhbdT1Eu4QRm wO+BEY2BQEMALdyT1Imo7ULodkDQOOLj3IHC3gnzXl+DW9/9DmGx46eGFSxB0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671962272; a=rsa-sha256; cv=none; b=Py2uRDshc3UV1fCBYQb1Go4x+opSCsaRZABfg91gYMdM09NC4jFe48GO1GsRsb//HEAAB7 /L3CvMho0FJOr940/gpKHgM4ttv/+CFoiJgbxax6csYBeOlojivsn3tyuB6UvDfU+AxNSB cygYlZxRc/b+wfeIw5+mGUcuP1N8C/K/kdZvB42FzsrixdiBlT9FoUFEpVVKT5TlRQGcWW MTKIKU7RdJ/SNIHd36gqyUxOEJZ7xPQ52j2h6MVu+meu+koCJBjaIC30IXzMBjIsctMI5u 1DpeGb3n9QeGIRhqSB+AVQdhFd5/UCPN3JfHFTJCWS9rk8SWKjk603TL2SlkwA== 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 4NfxDc4BW5znJw; Sun, 25 Dec 2022 09:57:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BP9vqZu057439; Sun, 25 Dec 2022 09:57:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BP9vqrr057438; Sun, 25 Dec 2022 09:57:52 GMT (envelope-from git) Date: Sun, 25 Dec 2022 09:57:52 GMT Message-Id: <202212250957.2BP9vqrr057438@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: de5fdea5abaf - main - finance/py-financedatabase: New port: Database of 300.000+ symbols containing Equities, ETFs, Funds, Indices 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: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: 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: de5fdea5abafaa42b0931d09e3bf8fb11d1f6b63 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=de5fdea5abafaa42b0931d09e3bf8fb11d1f6b63 commit de5fdea5abafaa42b0931d09e3bf8fb11d1f6b63 Author: Yuri Victorovich AuthorDate: 2022-12-25 07:00:48 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-25 09:57:38 +0000 finance/py-financedatabase: New port: Database of 300.000+ symbols containing Equities, ETFs, Funds, Indices --- finance/Makefile | 1 + finance/py-financedatabase/Makefile | 33 ++++++++++++++++++++++++++++++++ finance/py-financedatabase/distinfo | 3 +++ finance/py-financedatabase/files/test.py | 17 ++++++++++++++++ finance/py-financedatabase/pkg-descr | 10 ++++++++++ 5 files changed, 64 insertions(+) diff --git a/finance/Makefile b/finance/Makefile index adae2dcd2605..a734ca741d4e 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -99,6 +99,7 @@ SUBDIR += py-backtrader SUBDIR += py-bitcoin SUBDIR += py-ebaysdk + SUBDIR += py-financedatabase SUBDIR += py-finvizfinance SUBDIR += py-fundamentalanalysis SUBDIR += py-investiny diff --git a/finance/py-financedatabase/Makefile b/finance/py-financedatabase/Makefile new file mode 100644 index 000000000000..87419f96c3f0 --- /dev/null +++ b/finance/py-financedatabase/Makefile @@ -0,0 +1,33 @@ +PORTNAME= financedatabase +PORTVERSION= 1.0.2 +CATEGORIES= finance python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Database of 300.000+ symbols containing Equities, ETFs, Funds, Indices +WWW= https://github.com/JerBouma/FinanceDatabase + +LICENSE= MIT + +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dill>=0.3.3:devel/py-dill@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}fundamentalanalysis>=0.2.10:finance/py-fundamentalanalysis@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}matplotlib>=3.3.2:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pandas>=1.1.2:math/py-pandas@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.25.1:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tablib>=3.0.0:textproc/py-tablib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tqdm>=4.56.0:misc/py-tqdm@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} + +USES= python:3.6+ +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +do-test: + @${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/test.py + +.include diff --git a/finance/py-financedatabase/distinfo b/finance/py-financedatabase/distinfo new file mode 100644 index 000000000000..9c9788c2fff4 --- /dev/null +++ b/finance/py-financedatabase/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1671950543 +SHA256 (financedatabase-1.0.2.tar.gz) = 7b03d37ef5eef8433380d92122f2fd24bad741971518eaf1bd4a9c6f30763e23 +SIZE (financedatabase-1.0.2.tar.gz) = 21007 diff --git a/finance/py-financedatabase/files/test.py b/finance/py-financedatabase/files/test.py new file mode 100644 index 000000000000..0535265d9ded --- /dev/null +++ b/finance/py-financedatabase/files/test.py @@ -0,0 +1,17 @@ +import financedatabase as fd + +# Obtain all countries from the database +equities_countries = fd.show_options('equities', 'countries') +print(f"equities_countries={equities_countries}") + +# Obtain all sectors from the database +equities_sectors = fd.show_options('equities', 'sectors') +print(f"equities_sectors={equities_sectors}") + +# Obtain all industries from the database +equities_industries = fd.show_options('equities', 'industries') +print(f"equities_industries={equities_industries}") + +# Obtain all countries + sectors + industries from the database +equities_all_categories = fd.show_options('equities') +print(f"equities_all_categories={equities_all_categories}") diff --git a/finance/py-financedatabase/pkg-descr b/finance/py-financedatabase/pkg-descr new file mode 100644 index 000000000000..a995e362bc03 --- /dev/null +++ b/finance/py-financedatabase/pkg-descr @@ -0,0 +1,10 @@ +financedatabase is a database of 300.000+ symbols containing Equities, ETFs, +Funds, Indices, Currencies, Cryptocurrencies and Money Markets. + +As a private investor, the sheer amount of information that can be found on the +internet is rather daunting. Trying to understand what type of companies or ETFs +are available is incredibly challenging with there being millions of companies +and derivatives available on the market. Sure, the most traded companies and +ETFs can quickly be found simply because they are known to the public (for +example, Microsoft, Tesla, S&P500 ETF or an All-World ETF). However, what else +is out there is often unknown.