Skip to content

Commit

Permalink
Remove google
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonlynch committed Jan 21, 2019
1 parent b9f809f commit a336a8e
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 582 deletions.
6 changes: 0 additions & 6 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ include = */pandas_datareader/*
omit =
*/_version.py
*/yahoo/*
*/google/options.py
*/google/quotes.py
*/tests/google/test_options.py


[report]
Expand All @@ -25,7 +22,4 @@ include = */pandas_datareader/*
omit =
*/_version.py
*/yahoo/*
*/google/options.py
*/google/quotes.py
*/tests/google/test_options.py
ignore_errors = True
3 changes: 0 additions & 3 deletions docs/source/remote_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
Remote Data Access
******************

.. warning::

Yahoo! Finance, Google Finance, and Morningstar have been immediately deprecated. Endpoints from these providers have been retired

.. _remote_data.data_reader:

Expand Down
4 changes: 4 additions & 0 deletions docs/source/whatsnew/v0.8.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ v0.8.0 (TBD)

Highlights include:


- Removal of Google finance and Morningstar, which were deprecated in 0.7.0.

.. contents:: What's new in v0.8.0
:local:
:backlinks: none


.. _whatsnew_080.enhancements:

Enhancements
Expand Down
9 changes: 4 additions & 5 deletions pandas_datareader/__init__.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
from ._version import get_versions
from .data import (DataReader, Options, get_components_yahoo,
get_dailysummary_iex, get_data_enigma, get_data_famafrench,
get_data_fred, get_data_google, get_data_moex,
get_data_fred, get_data_moex,
get_data_morningstar, get_data_quandl, get_data_stooq,
get_data_yahoo, get_data_yahoo_actions, get_iex_book,
get_iex_symbols, get_last_iex, get_markets_iex,
get_nasdaq_symbols,
get_quote_google, get_quote_yahoo, get_recent_iex,
get_nasdaq_symbols, get_quote_yahoo, get_recent_iex,
get_records_iex, get_summary_iex, get_tops_iex,
get_data_tiingo, get_data_alphavantage)

__version__ = get_versions()['version']
del get_versions

__all__ = ['__version__', 'get_components_yahoo', 'get_data_enigma',
'get_data_famafrench', 'get_data_google', 'get_data_yahoo',
'get_data_yahoo_actions', 'get_quote_google', 'get_quote_yahoo',
'get_data_famafrench', 'get_data_yahoo',
'get_data_yahoo_actions', 'get_quote_yahoo',
'get_iex_book', 'get_iex_symbols', 'get_last_iex',
'get_markets_iex', 'get_recent_iex', 'get_records_iex',
'get_summary_iex', 'get_tops_iex',
Expand Down
40 changes: 9 additions & 31 deletions pandas_datareader/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
ImmediateDeprecationError
from pandas_datareader.famafrench import FamaFrenchReader
from pandas_datareader.fred import FredReader
from pandas_datareader.google.daily import GoogleDailyReader
from pandas_datareader.google.options import Options as GoogleOptions
from pandas_datareader.google.quotes import GoogleQuotesReader
from pandas_datareader.iex.daily import IEXDailyReader
from pandas_datareader.iex.deep import Deep as IEXDeep
from pandas_datareader.iex.tops import LastReader as IEXLasts, \
Expand All @@ -39,15 +36,14 @@
from pandas_datareader.yahoo.quotes import YahooQuotesReader

__all__ = ['get_components_yahoo', 'get_data_enigma', 'get_data_famafrench',
'get_data_fred', 'get_data_google', 'get_data_moex',
'get_data_fred', 'get_data_moex',
'get_data_quandl', 'get_data_yahoo', 'get_data_yahoo_actions',
'get_nasdaq_symbols', 'get_quote_google', 'get_quote_yahoo',
'get_nasdaq_symbols', 'get_quote_yahoo',
'get_tops_iex', 'get_summary_iex', 'get_records_iex',
'get_recent_iex', 'get_markets_iex', 'get_last_iex',
'get_iex_symbols', 'get_iex_book', 'get_dailysummary_iex',
'get_data_morningstar', 'get_data_stooq',
'get_data_stooq', 'get_data_robinhood', 'get_quotes_robinhood',
'DataReader']
'get_data_morningstar', 'get_data_stooq','get_data_robinhood',
'get_quotes_robinhood', 'DataReader']


def get_data_alphavantage(*args, **kwargs):
Expand All @@ -62,10 +58,6 @@ def get_data_famafrench(*args, **kwargs):
return FamaFrenchReader(*args, **kwargs).read()


def get_data_google(*args, **kwargs):
return GoogleDailyReader(*args, **kwargs).read()


def get_data_yahoo(*args, **kwargs):
return YahooDailyReader(*args, **kwargs).read()

Expand All @@ -86,11 +78,6 @@ def get_quote_yahoo(*args, **kwargs):
return YahooQuotesReader(*args, **kwargs).read()


def get_quote_google(*args, **kwargs):
raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Google Quotes'))
return GoogleQuotesReader(*args, **kwargs).read()


def get_data_quandl(*args, **kwargs):
return QuandlReader(*args, **kwargs).read()

Expand Down Expand Up @@ -264,10 +251,10 @@ def DataReader(name, data_source=None, start=None, end=None,
Parameters
----------
name : str or list of strs
the name of the dataset. Some data sources (google, fred) will
the name of the dataset. Some data sources (IEX, fred) will
accept a list of names.
data_source: {str, None}
the data source ("google", "fred", "ff")
the data source ("iex", "fred", "ff")
start : {datetime, None}
left boundary for range (defaults to 1/1/2010)
end : {datetime, None}
Expand All @@ -285,7 +272,7 @@ def DataReader(name, data_source=None, start=None, end=None,
Examples
----------
# Data from Google Finance
aapl = DataReader("AAPL", "google")
aapl = DataReader("AAPL", "iex")
# Price and volume data from IEX
tops = DataReader(["GS", "AAPL"], "iex-tops")
Expand All @@ -303,7 +290,7 @@ def DataReader(name, data_source=None, start=None, end=None,
ff = DataReader("6_Portfolios_2x3", "famafrench")
ff = DataReader("F-F_ST_Reversal_Factor", "famafrench")
"""
expected_source = ["yahoo", "google", "iex", "iex-tops", "iex-last",
expected_source = ["yahoo", "iex", "iex-tops", "iex-last",
"iex-last", "bankofcanada", "stooq", "iex-book",
"enigma", "fred", "famafrench", "oecd", "eurostat",
"nasdaq", "quandl", "moex", "morningstar", 'robinhood',
Expand All @@ -322,12 +309,6 @@ def DataReader(name, data_source=None, start=None, end=None,
retry_count=retry_count, pause=pause,
session=session).read()

elif data_source == "google":
return GoogleDailyReader(symbols=name, start=start, end=end,
chunksize=25,
retry_count=retry_count, pause=pause,
session=session).read()

elif data_source == "iex":
return IEXDailyReader(symbols=name, start=start, end=end,
chunksize=25,
Expand Down Expand Up @@ -479,8 +460,5 @@ def Options(symbol, data_source=None, session=None):
if data_source == "yahoo":
raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Yahoo Options'))
return YahooOptions(symbol, session=session)
elif data_source == "google":
raise ImmediateDeprecationError(DEP_ERROR_MSG.format('Google Options'))
return GoogleOptions(symbol, session=session)
else:
raise NotImplementedError("currently only yahoo and google supported")
raise NotImplementedError("currently only yahoo supported")
Empty file.
54 changes: 0 additions & 54 deletions pandas_datareader/google/daily.py

This file was deleted.

Loading

0 comments on commit a336a8e

Please sign in to comment.