spotifywebapiPython 1.0.242__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. spotifywebapipython/__init__.py +35 -0
  2. spotifywebapipython/const.py +114 -0
  3. spotifywebapipython/docs/__init__.html +2156 -0
  4. spotifywebapipython/docs/codecopy.js +70 -0
  5. spotifywebapipython/docs/index.html +514 -0
  6. spotifywebapipython/docs/search.js +46 -0
  7. spotifywebapipython/docs/spotifywebapipython/const.html +636 -0
  8. spotifywebapipython/docs/spotifywebapipython/saappmessages.html +540 -0
  9. spotifywebapipython/docs/spotifywebapipython/sautils.html +620 -0
  10. spotifywebapipython/docs/spotifywebapipython/spotifyapierror.html +341 -0
  11. spotifywebapipython/docs/spotifywebapipython/spotifyapimessage.html +598 -0
  12. spotifywebapipython/docs/spotifywebapipython/spotifyauthtoken.html +612 -0
  13. spotifywebapipython/docs/spotifywebapipython/spotifyclient.html +16557 -0
  14. spotifywebapipython/docs/spotifywebapipython/spotifydiscovery.html +518 -0
  15. spotifywebapipython/docs/spotifywebapipython/spotifywebapiauthenticationerror.html +421 -0
  16. spotifywebapipython/docs/spotifywebapipython/spotifywebapierror.html +400 -0
  17. spotifywebapipython/docs/spotifywebapipython/spotifywebplayertoken.html +635 -0
  18. spotifywebapipython/docs/spotifywebapipython.ico +0 -0
  19. spotifywebapipython/docs/spotifywebapipython_OLD.ico +0 -0
  20. spotifywebapipython/models/__init__.py +121 -0
  21. spotifywebapipython/models/album.py +170 -0
  22. spotifywebapipython/models/albumpagesaved.py +85 -0
  23. spotifywebapipython/models/albumpagesimplified.py +88 -0
  24. spotifywebapipython/models/albumsaved.py +102 -0
  25. spotifywebapipython/models/albumsimplified.py +308 -0
  26. spotifywebapipython/models/artist.py +146 -0
  27. spotifywebapipython/models/artistinfo.py +282 -0
  28. spotifywebapipython/models/artistinfotourevent.py +127 -0
  29. spotifywebapipython/models/artistpage.py +70 -0
  30. spotifywebapipython/models/artistsimplified.py +163 -0
  31. spotifywebapipython/models/audiobook.py +87 -0
  32. spotifywebapipython/models/audiobookpagesimplified.py +88 -0
  33. spotifywebapipython/models/audiobooksimplified.py +362 -0
  34. spotifywebapipython/models/audiofeatures.py +333 -0
  35. spotifywebapipython/models/author.py +67 -0
  36. spotifywebapipython/models/category.py +168 -0
  37. spotifywebapipython/models/categorypage.py +70 -0
  38. spotifywebapipython/models/chapter.py +84 -0
  39. spotifywebapipython/models/chapterpagesimplified.py +88 -0
  40. spotifywebapipython/models/chaptersimplified.py +387 -0
  41. spotifywebapipython/models/context.py +113 -0
  42. spotifywebapipython/models/copyright.py +79 -0
  43. spotifywebapipython/models/device.py +301 -0
  44. spotifywebapipython/models/episode.py +84 -0
  45. spotifywebapipython/models/episodepagesaved.py +85 -0
  46. spotifywebapipython/models/episodepagesimplified.py +88 -0
  47. spotifywebapipython/models/episodesaved.py +99 -0
  48. spotifywebapipython/models/episodesimplified.py +370 -0
  49. spotifywebapipython/models/explicitcontent.py +80 -0
  50. spotifywebapipython/models/externalids.py +91 -0
  51. spotifywebapipython/models/externalurls.py +104 -0
  52. spotifywebapipython/models/followers.py +81 -0
  53. spotifywebapipython/models/imageobject.py +193 -0
  54. spotifywebapipython/models/imagevibrantcolors.py +182 -0
  55. spotifywebapipython/models/linkedfrom.py +165 -0
  56. spotifywebapipython/models/narrator.py +67 -0
  57. spotifywebapipython/models/owner.py +162 -0
  58. spotifywebapipython/models/pageobject.py +343 -0
  59. spotifywebapipython/models/playeractions.py +196 -0
  60. spotifywebapipython/models/playerlastplayedinfo.py +334 -0
  61. spotifywebapipython/models/playerplaystate.py +467 -0
  62. spotifywebapipython/models/playerqueueinfo.py +207 -0
  63. spotifywebapipython/models/playhistory.py +136 -0
  64. spotifywebapipython/models/playhistorypage.py +85 -0
  65. spotifywebapipython/models/playlist.py +125 -0
  66. spotifywebapipython/models/playlistpage.py +85 -0
  67. spotifywebapipython/models/playlistpagesimplified.py +107 -0
  68. spotifywebapipython/models/playlistsimplified.py +334 -0
  69. spotifywebapipython/models/playlisttrack.py +143 -0
  70. spotifywebapipython/models/playlisttracksummary.py +80 -0
  71. spotifywebapipython/models/recommendationseed.py +135 -0
  72. spotifywebapipython/models/restrictions.py +86 -0
  73. spotifywebapipython/models/resumepoint.py +79 -0
  74. spotifywebapipython/models/searchresponse.py +391 -0
  75. spotifywebapipython/models/searchresultbase.py +299 -0
  76. spotifywebapipython/models/show.py +87 -0
  77. spotifywebapipython/models/showpagesaved.py +85 -0
  78. spotifywebapipython/models/showpagesimplified.py +88 -0
  79. spotifywebapipython/models/showsaved.py +99 -0
  80. spotifywebapipython/models/showsimplified.py +320 -0
  81. spotifywebapipython/models/spotifyconnectdevice.py +321 -0
  82. spotifywebapipython/models/spotifyconnectdevices.py +441 -0
  83. spotifywebapipython/models/track.py +142 -0
  84. spotifywebapipython/models/trackpage.py +110 -0
  85. spotifywebapipython/models/trackpagesaved.py +85 -0
  86. spotifywebapipython/models/trackpagesimplified.py +88 -0
  87. spotifywebapipython/models/trackrecommendations.py +88 -0
  88. spotifywebapipython/models/tracksaved.py +99 -0
  89. spotifywebapipython/models/tracksimplified.py +398 -0
  90. spotifywebapipython/models/userprofile.py +184 -0
  91. spotifywebapipython/models/userprofilesimplified.py +206 -0
  92. spotifywebapipython/models/zeroconfdiscoveryresult.py +592 -0
  93. spotifywebapipython/models/zeroconfproperty.py +93 -0
  94. spotifywebapipython/oauthcli/__init__.py +7 -0
  95. spotifywebapipython/oauthcli/authclient.py +1229 -0
  96. spotifywebapipython/saappmessages.py +86 -0
  97. spotifywebapipython/sautils.py +285 -0
  98. spotifywebapipython/spotifyapierror.py +66 -0
  99. spotifywebapipython/spotifyapimessage.py +269 -0
  100. spotifywebapipython/spotifyauthtoken.py +264 -0
  101. spotifywebapipython/spotifyclient.py +17885 -0
  102. spotifywebapipython/spotifyconnect/__init__.py +19 -0
  103. spotifywebapipython/spotifyconnect/spotifyconnectdeviceeventargs.py +67 -0
  104. spotifywebapipython/spotifyconnect/spotifyconnectdirectorytask.py +2564 -0
  105. spotifywebapipython/spotifyconnect/spotifyconnectzeroconfcastapptask.py +467 -0
  106. spotifywebapipython/spotifyconnect/spotifyconnectzeroconfcastcontroller.py +701 -0
  107. spotifywebapipython/spotifyconnect/spotifyconnectzeroconfcastlistener.py +359 -0
  108. spotifywebapipython/spotifyconnect/spotifyconnectzeroconfcastmultizonelistener.py +212 -0
  109. spotifywebapipython/spotifyconnect/spotifyconnectzeroconfexceptions.py +20 -0
  110. spotifywebapipython/spotifyconnect/spotifyconnectzeroconflistener.py +335 -0
  111. spotifywebapipython/spotifydiscovery.py +473 -0
  112. spotifywebapipython/spotifymediatypes.py +53 -0
  113. spotifywebapipython/spotifywebapiauthenticationerror.py +122 -0
  114. spotifywebapipython/spotifywebapierror.py +106 -0
  115. spotifywebapipython/spotifywebplayertoken.py +743 -0
  116. spotifywebapipython/vibrant/__init__.py +17 -0
  117. spotifywebapipython/vibrant/generator.py +261 -0
  118. spotifywebapipython/vibrant/image.py +100 -0
  119. spotifywebapipython/vibrant/main.py +34 -0
  120. spotifywebapipython/vibrant/models.py +93 -0
  121. spotifywebapipython/vibrant/utils.py +56 -0
  122. spotifywebapipython/zeroconfapi/__init__.py +23 -0
  123. spotifywebapipython/zeroconfapi/authenticationtypes.py +38 -0
  124. spotifywebapipython/zeroconfapi/blobbuilder.py +370 -0
  125. spotifywebapipython/zeroconfapi/credentials.py +37 -0
  126. spotifywebapipython/zeroconfapi/cryptodiffiehellman.py +89 -0
  127. spotifywebapipython/zeroconfapi/helpers.py +64 -0
  128. spotifywebapipython/zeroconfapi/spotifyzeroconfapierror.py +108 -0
  129. spotifywebapipython/zeroconfapi/zeroconfconnect.py +1327 -0
  130. spotifywebapipython/zeroconfapi/zeroconfgetinfo.py +572 -0
  131. spotifywebapipython/zeroconfapi/zeroconfgetinfoalias.py +109 -0
  132. spotifywebapipython/zeroconfapi/zeroconfgetinfodrmmediaformat.py +90 -0
  133. spotifywebapipython/zeroconfapi/zeroconfresponse.py +195 -0
  134. spotifywebapipython-1.0.242.dist-info/LICENSE +22 -0
  135. spotifywebapipython-1.0.242.dist-info/METADATA +219 -0
  136. spotifywebapipython-1.0.242.dist-info/RECORD +138 -0
  137. spotifywebapipython-1.0.242.dist-info/WHEEL +5 -0
  138. spotifywebapipython-1.0.242.dist-info/top_level.txt +1 -0
@@ -0,0 +1,35 @@
1
+ # include the README.md file for pdoc documentation generation.
2
+ """
3
+ .. include:: ../README.md
4
+
5
+ _________________
6
+
7
+ <details>
8
+ <summary>View Change Log</summary>
9
+ .. include:: ../CHANGELOG.md
10
+ </details>
11
+ """
12
+
13
+ # our package imports.
14
+ from spotifywebapipython.spotifyapierror import SpotifyApiError
15
+ from spotifywebapipython.spotifyapimessage import SpotifyApiMessage
16
+ from spotifywebapipython.spotifyauthtoken import SpotifyAuthToken
17
+ from spotifywebapipython.spotifyclient import SpotifyClient
18
+ from spotifywebapipython.spotifydiscovery import SpotifyDiscovery
19
+ from spotifywebapipython.spotifymediatypes import SpotifyMediaTypes
20
+ from spotifywebapipython.spotifywebapiauthenticationerror import SpotifyWebApiAuthenticationError
21
+ from spotifywebapipython.spotifywebapierror import SpotifyWebApiError
22
+ from spotifywebapipython.sautils import GetUnixTimestampMSFromUtcNow
23
+
24
+ # all classes to import when "import *" is specified.
25
+ __all__ = [
26
+ 'SpotifyApiError',
27
+ 'SpotifyApiMessage',
28
+ 'SpotifyAuthToken',
29
+ 'SpotifyClient',
30
+ 'SpotifyDiscovery',
31
+ 'SpotifyMediaTypes',
32
+ 'SpotifyWebApiAuthenticationError',
33
+ 'SpotifyWebApiError',
34
+ 'GetUnixTimestampMSFromUtcNow'
35
+ ]
@@ -0,0 +1,114 @@
1
+ # our package imports.
2
+ # none.
3
+
4
+ # constants are placed in this file if they are used across multiple files.
5
+ # the only exception to this is for the VERSION constant, which is placed here for convenience.
6
+
7
+ VERSION:str = "1.0.242"
8
+ """
9
+ Current version of the Spotify Client Python3 Library.
10
+ """
11
+
12
+ PACKAGENAME:str = "spotifywebapipython"
13
+ """
14
+ Name of our package (used by PDoc Documentation build).
15
+ """
16
+
17
+ # properties used in PDOC documentation build.
18
+
19
+ PDOC_BRAND_ICON_URL:str = "https://developer.spotify.com/documentation/web-api"
20
+ """
21
+ PDoc Documentation brand icon link url that is displayed in the help document TOC.
22
+ """
23
+
24
+ PDOC_BRAND_ICON_URL_SRC:str = "spotifywebapipython.ico"
25
+ """
26
+ PDoc Documentation brand icon link url that is displayed in the help document TOC.
27
+ """
28
+
29
+ PDOC_BRAND_ICON_URL_TITLE:str = "A Spotify Web Api Client"
30
+ """
31
+ PDoc Documentation brand icon link title that is displayed in the help document TOC.
32
+ """
33
+
34
+ # miscellaneous constants.
35
+ SPOTIFY_API_AUTHORIZE_URL = "https://accounts.spotify.com/authorize"
36
+ """ Url used to request user authorization permission for an authorization token. """
37
+
38
+ SPOTIFY_API_TOKEN_URL = "https://accounts.spotify.com/api/token"
39
+ """ Url used to request or renew a Spotify authorization token. """
40
+
41
+ SPOTIFY_WEBAPI_URL_BASE = "https://api.spotify.com/v1"
42
+ """ Url base name used to access tthe Spotify Web API. """
43
+
44
+ SPOTIFY_WEBUI_URL_BASE = "https://open.spotify.com"
45
+ """ Url base name used to access the Spotify Web UI. """
46
+
47
+ SPOTIFY_DEFAULT_MARKET:str = "US"
48
+ """
49
+ Default country code to use if a country code was not supplied on a request and the
50
+ UserProfile.Country value is not set (e.g. public access token in effect.
51
+
52
+ Default value is "US".
53
+ """
54
+
55
+ SPOTIFY_DESKTOP_APP_CLIENT_ID:str = '65b708073fc0480ea92a077233ca87bd'
56
+ """
57
+ Spotify Desktop Application client id (e.g. `65b708073fc0480ea92a077233ca87bd`).
58
+ """
59
+
60
+ SPOTIFYWEBAPIPYTHON_TOKEN_CACHE_FILE:str = 'SpotifyWebApiPython_tokens.json'
61
+ """
62
+ Filename and extension of the authorization Token Cache file (`SpotifyWebApiPython_tokens.json`).
63
+ """
64
+
65
+ TRACE_METHOD_RESULT = "%s result"
66
+ """
67
+ %s result
68
+ """
69
+
70
+ TRACE_METHOD_RESULT_TYPE = "%s result - %s object "
71
+ """
72
+ %s result - %s object
73
+ """
74
+
75
+ TRACE_METHOD_RESULT_TYPE_CACHED = "%s result - %s object (%s)"
76
+ """
77
+ %s result - %s object (%s)
78
+ """
79
+
80
+ TRACE_METHOD_RESULT_TYPE_PAGE = "%s page result - %s object "
81
+ """
82
+ %s page result - %s object
83
+ """
84
+
85
+ TRACE_MSG_AUTHTOKEN_CREATE = "Creating a \"%s\" authorization access token"
86
+ """
87
+ Creating a \"%s\" authorization access token
88
+ """
89
+
90
+ TRACE_MSG_DELAY_DEVICE:str = "Delaying for %s seconds to allow Spotify API to process the change"
91
+ """
92
+ Delaying for %s seconds to allow Spotify API to process the change
93
+ """
94
+
95
+ TRACE_MSG_DELAY_DEVICE_SONOS:str = "Delaying for %s seconds to allow Sonos Soco API to process the change"
96
+ """
97
+ Delaying for %s seconds to allow Sonos Soco API to process the change
98
+ """
99
+
100
+ TRACE_MSG_USERPROFILE = 'User Profile Object: DisplayName="%s", EMail="%s"'
101
+ """
102
+ User Profile Object: DisplayName="%s", EMail="%s"
103
+ """
104
+
105
+ TRACE_MSG_AUTOPAGING_NEXT = "Requesting next page of items %s"
106
+ """
107
+ Requesting next page of items %s
108
+ """
109
+
110
+ TRACE_WARN_SPOTIFY_SEARCH_NO_MARKET:str = "Warning - Market value (aka country code) was not specified for '%s' search request, and user profile did not have a country code set. This may cause Spotify Web API to return some weird results, or even cause an exception!"
111
+ """
112
+ Warning - Market value (aka country code) was not specified for '%s' search request, and user profile did not have a country code set. This may cause Spotify Web API to return some weird results, or even cause an exception!
113
+ """
114
+