spotifywebapiPython 1.0.45__py3-none-any.whl → 1.0.47__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.

Potentially problematic release.


This version of spotifywebapiPython might be problematic. Click here for more details.

Files changed (34) hide show
  1. {spotifywebapiPython-1.0.45.dist-info → spotifywebapiPython-1.0.47.dist-info}/METADATA +6 -6
  2. {spotifywebapiPython-1.0.45.dist-info → spotifywebapiPython-1.0.47.dist-info}/RECORD +34 -28
  3. spotifywebapipython/const.py +1 -1
  4. spotifywebapipython/docs/__init__.html +21 -3
  5. spotifywebapipython/docs/index.html +20 -2
  6. spotifywebapipython/docs/search.js +1 -1
  7. spotifywebapipython/docs/spotifywebapiPython/const.html +3 -3
  8. spotifywebapipython/docs/spotifywebapiPython/saappmessages.html +22 -2
  9. spotifywebapipython/docs/spotifywebapiPython/sautils.html +2 -2
  10. spotifywebapipython/docs/spotifywebapiPython/spotifyapierror.html +2 -2
  11. spotifywebapipython/docs/spotifywebapiPython/spotifyapimessage.html +2 -2
  12. spotifywebapipython/docs/spotifywebapiPython/spotifyauthtoken.html +2 -2
  13. spotifywebapipython/docs/spotifywebapiPython/spotifyclient.html +2 -200
  14. spotifywebapipython/docs/spotifywebapiPython/spotifydiscovery.html +2 -28
  15. spotifywebapipython/docs/spotifywebapiPython/spotifywebapiauthenticationerror.html +2 -2
  16. spotifywebapipython/docs/spotifywebapiPython/spotifywebapierror.html +2 -2
  17. spotifywebapipython/models/__init__.py +0 -10
  18. spotifywebapipython/saappmessages.py +7 -1
  19. spotifywebapipython/spotifyclient.py +0 -249
  20. spotifywebapipython/spotifydiscovery.py +0 -46
  21. spotifywebapipython/zeroconfapi/__init__.py +21 -0
  22. spotifywebapipython/{models/zeroconfblobbuilder.py → zeroconfapi/blobbuilder.py} +10 -58
  23. spotifywebapipython/zeroconfapi/credentials.py +18 -0
  24. spotifywebapipython/zeroconfapi/cryptodiffiehellman.py +24 -0
  25. spotifywebapipython/zeroconfapi/helpers.py +30 -0
  26. spotifywebapipython/zeroconfapi/spotifyzeroconfapierror.py +108 -0
  27. spotifywebapipython/zeroconfapi/zeroconfconnect.py +562 -0
  28. spotifywebapipython/{models → zeroconfapi}/zeroconfgetinfo.py +21 -7
  29. spotifywebapipython/{models → zeroconfapi}/zeroconfgetinfoalias.py +1 -1
  30. spotifywebapipython/{models → zeroconfapi}/zeroconfgetinfodrmmediaformat.py +1 -1
  31. spotifywebapipython/{models → zeroconfapi}/zeroconfresponse.py +3 -3
  32. {spotifywebapiPython-1.0.45.dist-info → spotifywebapiPython-1.0.47.dist-info}/LICENSE +0 -0
  33. {spotifywebapiPython-1.0.45.dist-info → spotifywebapiPython-1.0.47.dist-info}/WHEEL +0 -0
  34. {spotifywebapiPython-1.0.45.dist-info → spotifywebapiPython-1.0.47.dist-info}/top_level.txt +0 -0
@@ -9,7 +9,7 @@ from .zeroconfresponse import ZeroconfResponse
9
9
  @export
10
10
  class ZeroconfGetInfo(ZeroconfResponse):
11
11
  """
12
- Spotify Web API Zeroconf GetInfo response object.
12
+ Spotify Zeroconf API GetInfo response object.
13
13
  """
14
14
 
15
15
  def __init__(self, root:dict=None) -> None:
@@ -96,7 +96,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
96
96
  @property
97
97
  def AccountReq(self) -> str:
98
98
  """
99
- ? TODO
99
+ ? (e.g. "DONTCARE").
100
100
  """
101
101
  return self._AccountReq
102
102
 
@@ -114,7 +114,16 @@ class ZeroconfGetInfo(ZeroconfResponse):
114
114
  @property
115
115
  def Aliases(self) -> list:
116
116
  """
117
+ Device alias information, IF the device supports aliases.
117
118
 
119
+ Using ZeroConf, it is possible to announce multiple "virtual devices" from a device.
120
+ This allows the eSDK device to expose, for instance, multiroom zones as ZeroConf devices.
121
+
122
+ Device aliases will show up as separate devices in the Spotify app.
123
+
124
+ Note
125
+
126
+ Please refer to the `RemoteName` property for more information.
118
127
  """
119
128
  return self._Aliases
120
129
 
@@ -122,7 +131,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
122
131
  @property
123
132
  def Availability(self) -> str:
124
133
  """
125
- ? TODO
134
+ The SpZeroConfVars availability field returned by SpZeroConfGetVars.
126
135
  """
127
136
  return self._Availability
128
137
 
@@ -178,7 +187,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
178
187
  @property
179
188
  def GroupStatus(self) -> str:
180
189
  """
181
- ? TODO ... (e.g. "NONE").
190
+ The SpZeroConfVars group_status field returned by SpZeroConfGetVars (e.g. "NONE").
182
191
  """
183
192
  return self._GroupStatus
184
193
 
@@ -219,6 +228,11 @@ class ZeroconfGetInfo(ZeroconfResponse):
219
228
  def RemoteName(self) -> str:
220
229
  """
221
230
  Name to be displayed for the device (e.g. "BOSE-ST10-1").
231
+
232
+ This value will be null if the response is from a device using device aliases,
233
+ as the displayed name for respective alias is defined in the aliases field.
234
+
235
+ Please refer to the `Aliases` property for more information.
222
236
  """
223
237
  return self._RemoteName
224
238
 
@@ -226,7 +240,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
226
240
  @property
227
241
  def ResolverVersion(self) -> str:
228
242
  """
229
- ? TODO ... (e.g. "0").
243
+ The SpZeroConfVars resolver_version field returned by SpZeroConfGetVars (e.g. "0").
230
244
  """
231
245
  return self._ResolverVersion
232
246
 
@@ -242,7 +256,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
242
256
  @property
243
257
  def SupportedCapabilities(self) -> int:
244
258
  """
245
- ? TODO
259
+ Bitmasked integer representing list of device capabilities (e.g. 0).
246
260
  """
247
261
  return self._SupportedCapabilities
248
262
 
@@ -250,7 +264,7 @@ class ZeroconfGetInfo(ZeroconfResponse):
250
264
  @property
251
265
  def SupportedDrmMediaFormats(self) -> list:
252
266
  """
253
- ? TODO
267
+ The SpZeroConfVars supported_drm_media_formats field returned by SpZeroConfGetVars (e.g. []).
254
268
  """
255
269
  return self._SupportedDrmMediaFormats
256
270
 
@@ -6,7 +6,7 @@ from ..sautils import export
6
6
  @export
7
7
  class ZeroconfGetInfoAlias:
8
8
  """
9
- Spotify Web API Zeroconf GetInfo Alias object.
9
+ Spotify Zeroconf API GetInfo Alias object.
10
10
  """
11
11
 
12
12
  def __init__(self, root:dict=None) -> None:
@@ -6,7 +6,7 @@ from ..sautils import export
6
6
  @export
7
7
  class ZeroconfGetInfoDrmMediaFormat:
8
8
  """
9
- Spotify Web API Zeroconf GetInfo DRM Media Format object.
9
+ Spotify Zeroconf API GetInfo DRM Media Format object.
10
10
  """
11
11
 
12
12
  def __init__(self, root:dict=None) -> None:
@@ -6,7 +6,7 @@ from ..sautils import export
6
6
  @export
7
7
  class ZeroconfResponse:
8
8
  """
9
- Spotify Web API Zeroconf basic response object.
9
+ Spotify Zeroconf API basic response object.
10
10
  """
11
11
 
12
12
  def __init__(self, root:dict=None) -> None:
@@ -46,7 +46,7 @@ class ZeroconfResponse:
46
46
  @property
47
47
  def ResponseSource(self) -> str:
48
48
  """
49
- Token type provided by the client (e.g. "accesstoken").
49
+ TODO - Response source string (e.g. "???").
50
50
  """
51
51
  return self._ResponseSource
52
52
 
@@ -89,7 +89,7 @@ class ZeroconfResponse:
89
89
  return result
90
90
 
91
91
 
92
- def ToString(self, includeTitle:bool=False) -> str:
92
+ def ToString(self, includeTitle:bool=True) -> str:
93
93
  """
94
94
  Returns a displayable string representation of the class.
95
95