Giter VIP home page Giter VIP logo

spotify-stats's Introduction

spotify-stats's People

Contributors

dependabot[bot] avatar gkeep avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

spotify-stats's Issues

Suggest to loosen the dependency on spotipy

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

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

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 spotify-stats(commit id: a0994d3) directly uses 2 APIs from package spotipy.

spotipy.oauth2.SpotifyOAuth.__init__, spotipy.client.Spotify.__init__

From which, 10 functions are then indirectly called, including 5 spotipy's internal APIs and 5 outsider APIs, as follows (neglecting some repeated function occurrences).

[/gkeep/spotify-stats]
+--spotipy.oauth2.SpotifyOAuth.__init__
|      +--spotipy.oauth2.SpotifyAuthBase.__init__
|      |      +--requests.Session
|      +--spotipy.oauth2.SpotifyAuthBase._normalize_scope
|      |      +--spotipy.util.normalize_scope
|      +--warnings.warn
|      +--spotipy.cache_handler.CacheFileHandler.__init__
|      |      +--os.getenv
|      +--os.getenv
+--spotipy.client.Spotify.__init__
|      +--spotipy.client.Spotify._build_session
|      |      +--requests.Session
|      |      +--urllib3.Retry
|      |      +--requests.adapters.HTTPAdapter

We scan spotipy's versions among [2.19.0rc1] and 2.19.0, 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: 2.19.0(original) 2.19.0rc1
[](no clear difference between the source codes of two versions)

As for other packages, the APIs of @outside_package_name are called by spotipy 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 spotipy from "spotipy==2.19.0" to "spotipy>=2.19.0rc1,<=2.19.0". This will improve the applicability of spotify-stats and reduce the possibility of any further dependency conflict with other projects/packages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.