diff --git a/CHANGES b/CHANGES index 40d2c8b..a8ae929 100644 --- a/CHANGES +++ b/CHANGES @@ -42,3 +42,4 @@ 1.9 01/14/2023 -- Fixed new data encryption issue & hardened. 1.10 01/25/2023 -- Fixed new decryption issue. 1.11 01/26/2023 -- Added a dynamic fix for the decryption issue. +1.12 01/27/2023 -- Fixed get profile function for #127 and added additional unit test diff --git a/README.rst b/README.rst index 2d766bf..58936cc 100644 --- a/README.rst +++ b/README.rst @@ -7,9 +7,9 @@ A python module that returns stock, cryptocurrency, forex, mutual fund, commodit .. image:: https://github.com/JECSand/yahoofinancials/actions/workflows/test.yml/badge.svg?branch=master :target: https://github.com/JECSand/yahoofinancials/actions/workflows/test.yml -Current Version: v1.11 +Current Version: v1.12 -Version Released: 01/26/2023 +Version Released: 01/27/2023 Report any bugs by opening an issue here: https://github.com/JECSand/yahoofinancials/issues diff --git a/setup.py b/setup.py index e23726a..e5a439d 100644 --- a/setup.py +++ b/setup.py @@ -10,11 +10,11 @@ setup( name='yahoofinancials', - version='1.11', + version='1.12', description='A powerful financial data module used for pulling both fundamental and technical data from Yahoo Finance', long_description=long_description, url='https://github.com/JECSand/yahoofinancials', - download_url='https://github.com/JECSand/yahoofinancials/archive/1.11.tar.gz', + download_url='https://github.com/JECSand/yahoofinancials/archive/1.12.tar.gz', author='Connor Sanders', author_email='connor@exceleri.com', license='MIT', diff --git a/test/test_yahoofinancials.py b/test/test_yahoofinancials.py index 32f8f2b..691c0ee 100644 --- a/test/test_yahoofinancials.py +++ b/test/test_yahoofinancials.py @@ -104,6 +104,10 @@ def test_yf_module_methods(self): self.assertEqual(True, True) else: self.assertEqual(False, True) + if self.test_yf_stock_single.get_stock_profile_data().get("C").get("sector") == "Financial Services": + self.assertEqual(True, True) + else: + self.assertEqual(False, True) # Treasuries if isinstance(self.test_yf_treasuries_single.get_current_price(), float): self.assertEqual(True, True) diff --git a/yahoofinancials/etl.py b/yahoofinancials/etl.py index 202300c..c4b2ad9 100644 --- a/yahoofinancials/etl.py +++ b/yahoofinancials/etl.py @@ -220,7 +220,8 @@ def __init__(self, ticker, **kwargs): 'balance': ['balance-sheet', 'balanceSheetHistory', 'balanceSheetHistoryQuarterly', 'balanceSheetStatements'], 'cash': ['cash-flow', 'cashflowStatementHistory', 'cashflowStatementHistoryQuarterly', 'cashflowStatements'], 'keystats': ['key-statistics'], - 'history': ['history'] + 'history': ['history'], + 'profile': ['profile'] } # Interval value translation dictionary diff --git a/yahoofinancials/yf.py b/yahoofinancials/yf.py index 8bf00bf..24e143a 100644 --- a/yahoofinancials/yf.py +++ b/yahoofinancials/yf.py @@ -1,12 +1,12 @@ """ ============================== The Yahoo Financials Module -Version: 1.11 +Version: 1.12 ============================== Author: Connor Sanders Email: sandersconnor1@gmail.com -Version Released: 01/26/2023 +Version Released: 01/27/2023 Tested on Python 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11 Copyright (c) 2023 Connor Sanders @@ -45,7 +45,7 @@ from yahoofinancials.calcs import num_shares_outstanding, eps from yahoofinancials.etl import YahooFinanceETL -__version__ = "1.11" +__version__ = "1.12" __author__ = "Connor Sanders"