Skip to content

Commit 084a09c

Browse files
authored
Merge pull request #129 from JECSand/development
Development
2 parents 6e657aa + 7665988 commit 084a09c

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@
4242
1.9 01/14/2023 -- Fixed new data encryption issue & hardened.
4343
1.10 01/25/2023 -- Fixed new decryption issue.
4444
1.11 01/26/2023 -- Added a dynamic fix for the decryption issue.
45+
1.12 01/27/2023 -- Fixed get profile function for #127 and added additional unit test

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ A python module that returns stock, cryptocurrency, forex, mutual fund, commodit
77
.. image:: https://github.com/JECSand/yahoofinancials/actions/workflows/test.yml/badge.svg?branch=master
88
:target: https://github.com/JECSand/yahoofinancials/actions/workflows/test.yml
99

10-
Current Version: v1.11
10+
Current Version: v1.12
1111

12-
Version Released: 01/26/2023
12+
Version Released: 01/27/2023
1313

1414
Report any bugs by opening an issue here: https://github.com/JECSand/yahoofinancials/issues
1515

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
setup(
1212
name='yahoofinancials',
13-
version='1.11',
13+
version='1.12',
1414
description='A powerful financial data module used for pulling both fundamental and technical data from Yahoo Finance',
1515
long_description=long_description,
1616
url='https://github.com/JECSand/yahoofinancials',
17-
download_url='https://github.com/JECSand/yahoofinancials/archive/1.11.tar.gz',
17+
download_url='https://github.com/JECSand/yahoofinancials/archive/1.12.tar.gz',
1818
author='Connor Sanders',
1919
author_email='[email protected]',
2020
license='MIT',

test/test_yahoofinancials.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ def test_yf_module_methods(self):
104104
self.assertEqual(True, True)
105105
else:
106106
self.assertEqual(False, True)
107+
if self.test_yf_stock_single.get_stock_profile_data().get("C").get("sector") == "Financial Services":
108+
self.assertEqual(True, True)
109+
else:
110+
self.assertEqual(False, True)
107111
# Treasuries
108112
if isinstance(self.test_yf_treasuries_single.get_current_price(), float):
109113
self.assertEqual(True, True)

yahoofinancials/etl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ def __init__(self, ticker, **kwargs):
220220
'balance': ['balance-sheet', 'balanceSheetHistory', 'balanceSheetHistoryQuarterly', 'balanceSheetStatements'],
221221
'cash': ['cash-flow', 'cashflowStatementHistory', 'cashflowStatementHistoryQuarterly', 'cashflowStatements'],
222222
'keystats': ['key-statistics'],
223-
'history': ['history']
223+
'history': ['history'],
224+
'profile': ['profile']
224225
}
225226

226227
# Interval value translation dictionary

yahoofinancials/yf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
22
==============================
33
The Yahoo Financials Module
4-
Version: 1.11
4+
Version: 1.12
55
==============================
66
77
Author: Connor Sanders
88
9-
Version Released: 01/26/2023
9+
Version Released: 01/27/2023
1010
Tested on Python 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11
1111
1212
Copyright (c) 2023 Connor Sanders
@@ -45,7 +45,7 @@
4545
from yahoofinancials.calcs import num_shares_outstanding, eps
4646
from yahoofinancials.etl import YahooFinanceETL
4747

48-
__version__ = "1.11"
48+
__version__ = "1.12"
4949
__author__ = "Connor Sanders"
5050

5151

0 commit comments

Comments
 (0)