git: de5fdea5abaf - main - finance/py-financedatabase: New port: Database of 300.000+ symbols containing Equities, ETFs, Funds, Indices
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 Dec 2022 09:57:52 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=de5fdea5abafaa42b0931d09e3bf8fb11d1f6b63 commit de5fdea5abafaa42b0931d09e3bf8fb11d1f6b63 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-12-25 07:00:48 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> 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 <bsd.port.mk> 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.