fall-2021-python-backend's People
fall-2021-python-backend's Issues
Suggest to loosen the dependency on yfinance
Hi, your project fall-2021-python-backend requires "yfinance==0.1.63" in its dependency. After analyzing the source code, we found that the following 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 fall-2021-python-backend.
May I pull a request to further 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?
We also give our detailed analysis as follows for your reference:
Your project fall-2021-python-backend directly uses 1 APIs from package yfinance.
yfinance.multi.download
Beginning from the 1 APIs above, 17 functions are then indirectly called, including 11 yfinance's internal APIs and 6 outsider APIs. The specific call graph is listed as follows (neglecting some repeated function occurrences).
[/AntonYermilov/fall-2021-python-backend]
+--yfinance.multi.download
| +--yfinance.utils.ProgressBar.__init__
| | +--yfinance.utils.ProgressBar.__update_amount
| +--multitasking.set_max_threads
| +--yfinance.multi._download_one_threaded
| | +--yfinance.multi._download_one
| | | +--yfinance.ticker.Ticker.__init__
| | | | +--yfinance.base.TickerBase.__init__
| | | | | +--yfinance.utils.empty_df
| | | | | | +--pandas.DataFrame
| +--time.sleep
| +--yfinance.multi._download_one
| +--yfinance.utils.ProgressBar.animate
| | +--sys.stdout.flush
| | +--yfinance.utils.ProgressBar.update_iteration
| | | +--yfinance.utils.ProgressBar.__update_amount
| +--multitasking.cpu_count
| +--yfinance.utils.ProgressBar.completed
| | +--yfinance.utils.ProgressBar.update_iteration
| | +--sys.stdout.flush
| +--pandas.concat
| +--yfinance.multi._realign_dfs
| | +--pandas.concat
| | +--pandas.DataFrame
| | +--yfinance.utils.empty_df
We scan yfinance's versions and observe that during its evolution between any version from [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 multitasking, time, pandas and sys 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 fall-2021-python-backend and reduce the possibility of any further dependency conflict with other projects.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.