Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest to loosen the dependency on yfinance #3

Open
Agnes-U opened this issue Nov 16, 2022 · 0 comments
Open

Suggest to loosen the dependency on yfinance #3

Agnes-U opened this issue Nov 16, 2022 · 0 comments

Comments

@Agnes-U
Copy link

Agnes-U commented Nov 16, 2022

Hi, your project StockPerformanceIndicators requires "yfinance==0.1.63" in its dependency. After analyzing the source code, we found that some other versions of yfinance can also be suitable without affecting your project, i.e., yfinance 0.1.61, 0.1.62. Therefore, we suggest to loosen the dependency on yfinance from "yfinance==0.1.63" to "yfinance>=0.1.61,<=0.1.63" to avoid any possible conflict for importing more packages or for downstream projects that may use StockPerformanceIndicators.

May I pull a request to loosen the dependency on yfinance?

By the way, could you please tell us whether such dependency analysis may be potentially helpful for maintaining dependencies easier during your development?



For your reference, here are details in our analysis.

Your project StockPerformanceIndicators(commit id: 132114c) directly uses 1 APIs from package yfinance.

yfinance.ticker.Ticker.__init__

From which, 3 functions are then indirectly called, including 2 yfinance's internal APIs and 1 outsider APIs, as follows (neglecting some repeated function occurrences).

[/louiskhub/StockPerformanceIndicators]
+--yfinance.ticker.Ticker.__init__
|      +--yfinance.base.TickerBase.__init__
|      |      +--yfinance.utils.empty_df
|      |      |      +--pandas.DataFrame

We scan yfinance's versions among [0.1.61, 0.1.62] and 0.1.63, the changing functions (diffs being listed below) have none intersection with any function or API we mentioned above (either directly or indirectly called by this project).

diff: 0.1.63(original) 0.1.61
['yfinance.ticker.Ticker', 'yfinance.utils.get_json', 'yfinance.ticker.Ticker._download_options', 'yfinance.base.TickerBase.get_isin', 'yfinance.utils.get_html', 'yfinance.base.TickerBase', 'yfinance.base.TickerBase.history']

diff: 0.1.63(original) 0.1.62
['yfinance.base.TickerBase.history', 'yfinance.base.TickerBase']

As for other packages, the APIs of @outside_package_name are called by yfinance in the call graph and the dependencies on these packages also stay the same in our suggested versions, thus avoiding any outside conflict.

Therefore, we believe that it is quite safe to loose your dependency on yfinance from "yfinance==0.1.63" to "yfinance>=0.1.61,<=0.1.63". This will improve the applicability of StockPerformanceIndicators and reduce the possibility of any further dependency conflict with other projects/packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant