Hi, your project YouTubeVidDownloader requires "pytube==11.0.2" in its dependency. After analyzing the source code, we found that some other versions of pytube can also be suitable without affecting your project, i.e., pytube 11.0.0, 11.0.1, 12.0.0. Therefore, we suggest to loosen the dependency on pytube from "pytube==11.0.2" to "pytube>=11.0.0,<=12.0.0" to avoid any possible conflict for importing more packages or for downstream projects that may use YouTubeVidDownloader.
May I pull a request to loosen the dependency on pytube?
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 YouTubeVidDownloader(commit id: 6e7de5af6dd0492c02b9f182837fcec761fd3f0c) directly uses 1 APIs from package pytube.
pytube.__main__.YouTube.__init__
From which, 9 functions are then indirectly called, including 5 pytube's internal APIs and 4 outsider APIs, as follows (neglecting some repeated function occurrences).
[/BriHan-Tech/YouTubeVidDownloader]
+--pytube.__main__.YouTube.__init__
| +--pytube.extract.video_id
| | +--pytube.helpers.regex_search
| | | +--re.compile
| | | +--pytube.exceptions.RegexMatchError.__init__
| +--pytube.monostate.Monostate.__init__
| +--pytube.helpers.install_proxy
| | +--urllib.request.ProxyHandler
| | +--urllib.request.build_opener
| | +--urllib.request.install_opener
We scan pytube's versions among [11.0.0, 11.0.1, 12.0.0] and 11.0.2, 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: 11.0.2(original) 11.0.0
['pytube.cipher.get_throttling_function_name', 'pytube.__main__.YouTube', 'pytube.contrib.playlist.Playlist.last_updated', 'pytube.contrib.search.Search', 'pytube.parser.throttling_array_split', 'pytube.contrib.search.Search.__init__', 'pytube.contrib.playlist.Playlist']
diff: 11.0.2(original) 11.0.1
['pytube.parser.throttling_array_split']
diff: 11.0.2(original) 12.0.0
['pytube.__main__.YouTube', 'pytube.__main__.YouTube.__eq__', 'pytube.cipher.get_throttling_function_name']
As for other packages, the APIs of @outside_package_name are called by pytube 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 pytube from "pytube==11.0.2" to "pytube>=11.0.0,<=12.0.0". This will improve the applicability of YouTubeVidDownloader and reduce the possibility of any further dependency conflict with other projects/packages.