diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2023-06-19 18:49:11 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2023-06-19 19:01:09 +0000 |
commit | 5d610e7ae82519faf102659af8fd4785dad4b2c3 (patch) | |
tree | a041edbc10c3badb2693bb8679499848cc01c06c /finance | |
parent | c277d4773c92d55f6fb00d5d6a0f31a6f4aefa37 (diff) | |
download | ports-5d610e7ae82519faf102659af8fd4785dad4b2c3.tar.gz ports-5d610e7ae82519faf102659af8fd4785dad4b2c3.zip |
Diffstat (limited to 'finance')
-rw-r--r-- | finance/py-financedatabase/Makefile | 3 | ||||
-rw-r--r-- | finance/py-financedatabase/distinfo | 6 | ||||
-rw-r--r-- | finance/py-financedatabase/files/test.py | 32 |
3 files changed, 28 insertions, 13 deletions
diff --git a/finance/py-financedatabase/Makefile b/finance/py-financedatabase/Makefile index 34179eabf447..8b59cdf64abb 100644 --- a/finance/py-financedatabase/Makefile +++ b/finance/py-financedatabase/Makefile @@ -1,6 +1,5 @@ PORTNAME= financedatabase -PORTVERSION= 2.0.9 -PORTREVISION= 2 +DISTVERSION= 2.1.0 CATEGORIES= finance python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/finance/py-financedatabase/distinfo b/finance/py-financedatabase/distinfo index 673de75d6686..5f39f87052f5 100644 --- a/finance/py-financedatabase/distinfo +++ b/finance/py-financedatabase/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1678436525 -SHA256 (financedatabase-2.0.9.tar.gz) = d2d7c005e6bc32246ef6d6d6e9631a7c918f092a2c28477d7a27585aa2595a25 -SIZE (financedatabase-2.0.9.tar.gz) = 27925 +TIMESTAMP = 1687199990 +SHA256 (financedatabase-2.1.0.tar.gz) = e0fb783c9c717d279aa626c421b69d818ec2b01e7d3d119d745e7fcebcf24d79 +SIZE (financedatabase-2.1.0.tar.gz) = 37925 diff --git a/finance/py-financedatabase/files/test.py b/finance/py-financedatabase/files/test.py index 0535265d9ded..6bd0ac0ae18f 100644 --- a/finance/py-financedatabase/files/test.py +++ b/finance/py-financedatabase/files/test.py @@ -1,17 +1,33 @@ import financedatabase as fd +# Initialize the Equities database +equities = fd.Equities() +print(f"equities={equities}") + # Obtain all countries from the database -equities_countries = fd.show_options('equities', 'countries') +equities_countries = equities.options('country') print(f"equities_countries={equities_countries}") # Obtain all sectors from the database -equities_sectors = fd.show_options('equities', 'sectors') +equities_sectors = equities.options('sector') 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 industry groups from the database +equities_industry_groups = equities.options('industry_group') +print(f"equities_industry_groups={equities_industry_groups}") + +# Obtain all industries from a country from the database +equities_germany_industries = equities.options('industry', country='Germany') +print(f"equities_germany_industries={equities_germany_industries}") + +# Obtain a selection from the database +equities_united_states = equities.select(country="United States") +print(f"equities_united_states={equities_united_states}") + +# Obtain a detailed selection from the database +equities_usa_consumer_electronics = equities.select(country="United States", industry="Consumer Electronics") +print(f"equities_usa_consumer_electronics={equities_usa_consumer_electronics}") -# Obtain all countries + sectors + industries from the database -equities_all_categories = fd.show_options('equities') -print(f"equities_all_categories={equities_all_categories}") +# Search specific fields from the database +equities_uk_biotech = equities.search(country='United Kingdom', summary='biotech', exchange='LSE') +print(f"equities_uk_biotech={equities_uk_biotech}") |