soco 0.30.2__tar.gz → 0.30.4__tar.gz
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.
- {soco-0.30.2/soco.egg-info → soco-0.30.4}/PKG-INFO +1 -1
- {soco-0.30.2 → soco-0.30.4}/requirements-dev.txt +1 -1
- {soco-0.30.2 → soco-0.30.4}/soco/__init__.py +1 -1
- {soco-0.30.2 → soco-0.30.4}/soco/alarms.py +2 -3
- {soco-0.30.2 → soco-0.30.4}/soco/cache.py +0 -4
- {soco-0.30.2 → soco-0.30.4}/soco/config.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/soco/core.py +19 -11
- {soco-0.30.2 → soco-0.30.4}/soco/data_structures.py +0 -28
- {soco-0.30.2 → soco-0.30.4}/soco/discovery.py +1 -3
- {soco-0.30.2 → soco-0.30.4}/soco/exceptions.py +0 -7
- {soco-0.30.2 → soco-0.30.4}/soco/groups.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/soco/ms_data_structures.py +0 -9
- {soco-0.30.2 → soco-0.30.4}/soco/music_services/accounts.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/soco/music_services/music_service.py +0 -2
- {soco-0.30.2 → soco-0.30.4}/soco/plugins/__init__.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/soco/plugins/example.py +0 -2
- {soco-0.30.2 → soco-0.30.4}/soco/plugins/wimp.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/soco/soap.py +0 -2
- {soco-0.30.2 → soco-0.30.4}/soco/utils.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/soco/zonegroupstate.py +1 -0
- {soco-0.30.2 → soco-0.30.4/soco.egg-info}/PKG-INFO +1 -1
- {soco-0.30.2 → soco-0.30.4}/tests/conftest.py +1 -0
- {soco-0.30.2 → soco-0.30.4}/tests/test_alarms.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/tests/test_cache.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/tests/test_core.py +15 -0
- {soco-0.30.2 → soco-0.30.4}/tests/test_events.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/tests/test_metadata_parsing.py +1 -0
- {soco-0.30.2 → soco-0.30.4}/tests/test_music_service_data_structures.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/tests/test_musicservices.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/tests/test_new_datastructures.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/tests/test_singleton.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/tests/test_soap.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/tests/test_utils.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/tests/test_xml.py +0 -1
- {soco-0.30.2 → soco-0.30.4}/AUTHORS.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/LICENSE.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/MANIFEST.in +0 -0
- {soco-0.30.2 → soco-0.30.4}/README.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/dev_tools/analyse_ws.ini +0 -0
- {soco-0.30.2 → soco-0.30.4}/dev_tools/analyse_ws.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/dev_tools/pychecker.bat +0 -0
- {soco-0.30.2 → soco-0.30.4}/dev_tools/pychecker.sh +0 -0
- {soco-0.30.2 → soco-0.30.4}/dev_tools/sonosdump.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/Makefile +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/_static/imageMapResizer.min.js +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/_templates/page.html +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/advanced/data-structures-mod.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/advanced/events.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/advanced/events_asyncio.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/advanced/events_twisted.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/advanced/index.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/advanced/services.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/advanced/topology.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.alarms.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.cache.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.config.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.core.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.data_structures.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.discovery.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.events.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.exceptions.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.groups.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.ms_data_structures.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.music_library.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.music_services.accounts.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.music_services.music_service.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.music_services.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.music_services.token_store.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.plugins.example.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.plugins.plex.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.plugins.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.plugins.sharelink.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.plugins.spotify.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.plugins.wimp.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.services.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.snapshot.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.soap.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.utils.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/api/soco.xml.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/authors.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/conf.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/development/index.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/development/release-howto.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/development/unittests.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/examples.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/faq.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/getting_started.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/graphics/data_structures.png +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/graphics/data_structures.svg +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/index.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/make.bat +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/plugins.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/release_notes.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.10.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.11.1.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.11.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.12.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.13.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.14.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.15.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.16.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.17.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.18.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.19.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.20.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.21.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.22.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.23.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.24.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.25.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.26.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.27.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.28.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.29.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.30.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.6.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.7.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.8.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/0.9.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/releases/index.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/requirements.txt +0 -0
- {soco-0.30.2 → soco-0.30.4}/doc/tutorial.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/commandline/README.rst +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/commandline/discover.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/commandline/screenshot.png +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/commandline/tunein.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/play_local_files/play_local_files.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/plugins/socoplugins.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/snapshot/basic_snap.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/snapshot/multi_zone_snap.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/.gitignore +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/README.md +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/index.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/requirements.txt +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/screenshot.png +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/settings.py.example +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/static/css/bootstrap.min.css +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/static/css/main.css +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/static/img/blank.jpg +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/static/img/glyphicons-halflings-white.png +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/static/img/glyphicons-halflings.png +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/static/js/bootstrap.min.js +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/static/js/jquery.min.js +0 -0
- {soco-0.30.2 → soco-0.30.4}/examples/webapp/templates/index.html +0 -0
- {soco-0.30.2 → soco-0.30.4}/makefile +0 -0
- {soco-0.30.2 → soco-0.30.4}/pylintrc +0 -0
- {soco-0.30.2 → soco-0.30.4}/pyproject.toml +0 -0
- {soco-0.30.2 → soco-0.30.4}/requirements.txt +0 -0
- {soco-0.30.2 → soco-0.30.4}/setup.cfg +0 -0
- {soco-0.30.2 → soco-0.30.4}/setup.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/data_structure_quirks.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/data_structures_entry.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/events.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/events_asyncio.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/events_base.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/events_twisted.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/music_library.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/music_services/__init__.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/music_services/data_structures.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/music_services/token_store.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/plugins/plex.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/plugins/sharelink.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/plugins/spotify.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/services.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/snapshot.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco/xml.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco.egg-info/SOURCES.txt +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco.egg-info/dependency_links.txt +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco.egg-info/requires.txt +0 -0
- {soco-0.30.2 → soco-0.30.4}/soco.egg-info/top_level.txt +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/album.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/album.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/album_compilation.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/album_favorite.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/album_list.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/artist.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/artist.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/audio_broadcast.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/audio_broadcast.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/composer.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/composer.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/genre.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/genre.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/playlist.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/playlist.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/playlist_favorite.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/radio_show.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/radio_show.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/recent_show.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/same_artist.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/share.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/share.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/track.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/track.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/data_structures_entry_integration/tracklist.xml +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/media_metadata_payloads/bbc.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/media_metadata_payloads/cifs.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/media_metadata_payloads/pandora.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/media_metadata_payloads/sonos_radio.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/media_metadata_payloads/tunein.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/data/media_metadata_payloads/tunein_2.json +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/official_and_extended_didl_classes.txt +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/soco_unittest.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/test_data_structures_entry_integration.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/test_discovery.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/test_integration.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/test_ms_data_structures.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/test_music_library.py +0 -0
- {soco-0.30.2 → soco-0.30.4}/tests/test_services.py +0 -0
|
@@ -17,7 +17,7 @@ from .exceptions import SoCoException, UnknownSoCoException
|
|
|
17
17
|
__author__ = "The SoCo-Team <python-soco@googlegroups.com>"
|
|
18
18
|
# Please increment the version number and add the suffix "-dev" after
|
|
19
19
|
# a release, to make it possible to identify in-development code
|
|
20
|
-
__version__ = "0.30.
|
|
20
|
+
__version__ = "0.30.4"
|
|
21
21
|
__website__ = "https://github.com/SoCo/SoCo"
|
|
22
22
|
__license__ = "MIT License"
|
|
23
23
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""This module contains classes relating to Sonos Alarms."""
|
|
2
|
+
|
|
2
3
|
import logging
|
|
3
4
|
import re
|
|
4
5
|
from datetime import datetime, timedelta
|
|
@@ -120,8 +121,7 @@ class Alarms(_SocoSingletonBase):
|
|
|
120
121
|
|
|
121
122
|
def __iter__(self):
|
|
122
123
|
"""Return an interator for all alarms."""
|
|
123
|
-
|
|
124
|
-
yield alarm
|
|
124
|
+
yield from list(self.alarms.values())
|
|
125
125
|
|
|
126
126
|
def __len__(self):
|
|
127
127
|
"""Return the number of alarms."""
|
|
@@ -225,7 +225,6 @@ class Alarms(_SocoSingletonBase):
|
|
|
225
225
|
|
|
226
226
|
|
|
227
227
|
class Alarm:
|
|
228
|
-
|
|
229
228
|
"""A class representing a Sonos Alarm.
|
|
230
229
|
|
|
231
230
|
Alarms may be created or updated and saved to, or removed from the Sonos
|
|
@@ -16,7 +16,6 @@ from . import config
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class _BaseCache:
|
|
19
|
-
|
|
20
19
|
"""An abstract base class for the cache."""
|
|
21
20
|
|
|
22
21
|
# pylint: disable=no-self-use, unused-argument
|
|
@@ -45,7 +44,6 @@ class _BaseCache:
|
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
class NullCache(_BaseCache):
|
|
48
|
-
|
|
49
47
|
"""A cache which does nothing.
|
|
50
48
|
|
|
51
49
|
Useful for debugging.
|
|
@@ -66,7 +64,6 @@ class NullCache(_BaseCache):
|
|
|
66
64
|
|
|
67
65
|
|
|
68
66
|
class TimedCache(_BaseCache):
|
|
69
|
-
|
|
70
67
|
"""A simple thread-safe cache for caching method return values.
|
|
71
68
|
|
|
72
69
|
The cache key is generated by from the given ``*args`` and ``**kwargs``.
|
|
@@ -201,7 +198,6 @@ class TimedCache(_BaseCache):
|
|
|
201
198
|
|
|
202
199
|
|
|
203
200
|
class Cache(NullCache):
|
|
204
|
-
|
|
205
201
|
"""A factory class which returns an instance of a cache subclass.
|
|
206
202
|
|
|
207
203
|
A `TimedCache` is returned, unless `config.CACHE_ENABLED` is `False`,
|
|
@@ -81,7 +81,6 @@ _LOG = logging.getLogger(__name__)
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
class _ArgsSingleton(type):
|
|
84
|
-
|
|
85
84
|
"""A metaclass which permits only a single instance of each derived class
|
|
86
85
|
sharing the same `_class_group` class attribute to exist for any given set
|
|
87
86
|
of positional arguments.
|
|
@@ -124,7 +123,6 @@ class _ArgsSingleton(type):
|
|
|
124
123
|
class _SocoSingletonBase( # pylint: disable=no-init
|
|
125
124
|
_ArgsSingleton("ArgsSingletonMeta", (object,), {})
|
|
126
125
|
):
|
|
127
|
-
|
|
128
126
|
"""The base class for the SoCo class.
|
|
129
127
|
|
|
130
128
|
Uses a Python 2 and 3 compatible method of declaring a metaclass. See, eg,
|
|
@@ -168,7 +166,6 @@ def only_on_soundbars(function):
|
|
|
168
166
|
|
|
169
167
|
# pylint: disable=R0904
|
|
170
168
|
class SoCo(_SocoSingletonBase):
|
|
171
|
-
|
|
172
169
|
"""A simple class for controlling a Sonos speaker.
|
|
173
170
|
|
|
174
171
|
For any given set of arguments to __init__, only one instance of this class
|
|
@@ -515,6 +512,9 @@ class SoCo(_SocoSingletonBase):
|
|
|
515
512
|
Sonos Amp devices support a directly-connected 3rd party subwoofer
|
|
516
513
|
connected over RCA. This property is always enabled for those devices.
|
|
517
514
|
"""
|
|
515
|
+
if not self.speaker_info:
|
|
516
|
+
self.get_speaker_info()
|
|
517
|
+
|
|
518
518
|
model_name = self.speaker_info["model_name"].lower()
|
|
519
519
|
if model_name.endswith("sonos amp"):
|
|
520
520
|
return True
|
|
@@ -748,12 +748,17 @@ class SoCo(_SocoSingletonBase):
|
|
|
748
748
|
self.play()
|
|
749
749
|
|
|
750
750
|
@only_on_master
|
|
751
|
-
def play(self):
|
|
752
|
-
"""Play the currently selected track.
|
|
753
|
-
|
|
751
|
+
def play(self, **kwargs):
|
|
752
|
+
"""Play the currently selected track.
|
|
753
|
+
|
|
754
|
+
Args:
|
|
755
|
+
kwargs: additional arguments such as timeout."""
|
|
756
|
+
self.avTransport.Play([("InstanceID", 0), ("Speed", 1)], **kwargs)
|
|
754
757
|
|
|
755
758
|
@only_on_master
|
|
756
|
-
def play_uri(
|
|
759
|
+
def play_uri(
|
|
760
|
+
self, uri="", meta="", title="", start=True, force_radio=False, **kwargs
|
|
761
|
+
):
|
|
757
762
|
"""Play a URI.
|
|
758
763
|
|
|
759
764
|
Playing a URI will replace what was playing with the stream
|
|
@@ -769,6 +774,7 @@ class SoCo(_SocoSingletonBase):
|
|
|
769
774
|
title (str): The title to show in the player (if no meta).
|
|
770
775
|
start (bool): If the URI that has been set should start playing.
|
|
771
776
|
force_radio (bool): forces a uri to play as a radio stream.
|
|
777
|
+
kwargs: additional arguments such as timeout.
|
|
772
778
|
|
|
773
779
|
On a Sonos controller music is shown with one of the following display
|
|
774
780
|
formats and controls:
|
|
@@ -835,7 +841,7 @@ class SoCo(_SocoSingletonBase):
|
|
|
835
841
|
)
|
|
836
842
|
# The track is enqueued, now play it if needed
|
|
837
843
|
if start:
|
|
838
|
-
return self.play()
|
|
844
|
+
return self.play(**kwargs)
|
|
839
845
|
return False
|
|
840
846
|
|
|
841
847
|
@only_on_master
|
|
@@ -2411,9 +2417,11 @@ class SoCo(_SocoSingletonBase):
|
|
|
2411
2417
|
[
|
|
2412
2418
|
(
|
|
2413
2419
|
"ObjectID",
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2420
|
+
(
|
|
2421
|
+
"FV:2"
|
|
2422
|
+
if favorite_type is SONOS_FAVORITES
|
|
2423
|
+
else "R:0/{}".format(favorite_type)
|
|
2424
|
+
),
|
|
2417
2425
|
),
|
|
2418
2426
|
("BrowseFlag", "BrowseDirectChildren"),
|
|
2419
2427
|
("Filter", "*"),
|
|
@@ -160,7 +160,6 @@ def form_name(didl_class):
|
|
|
160
160
|
|
|
161
161
|
|
|
162
162
|
class DidlResource:
|
|
163
|
-
|
|
164
163
|
"""Identifies a resource, typically some type of a binary asset, such as a
|
|
165
164
|
song.
|
|
166
165
|
|
|
@@ -398,7 +397,6 @@ _DIDL_CLASS_TO_CLASS = {}
|
|
|
398
397
|
|
|
399
398
|
|
|
400
399
|
class DidlMetaClass(type):
|
|
401
|
-
|
|
402
400
|
"""Meta class for all Didl objects."""
|
|
403
401
|
|
|
404
402
|
def __new__(cls, name, bases, attrs):
|
|
@@ -831,7 +829,6 @@ class DidlObject(metaclass=DidlMetaClass):
|
|
|
831
829
|
|
|
832
830
|
|
|
833
831
|
class DidlItem(DidlObject):
|
|
834
|
-
|
|
835
832
|
"""A basic content directory item."""
|
|
836
833
|
|
|
837
834
|
# The spec allows for an option 'refID' attribute, but we do not handle it
|
|
@@ -851,7 +848,6 @@ class DidlItem(DidlObject):
|
|
|
851
848
|
|
|
852
849
|
|
|
853
850
|
class DidlAudioItem(DidlItem):
|
|
854
|
-
|
|
855
851
|
"""An audio item."""
|
|
856
852
|
|
|
857
853
|
# the DIDL Lite class for this object.
|
|
@@ -871,7 +867,6 @@ class DidlAudioItem(DidlItem):
|
|
|
871
867
|
|
|
872
868
|
|
|
873
869
|
class DidlMusicTrack(DidlAudioItem):
|
|
874
|
-
|
|
875
870
|
"""Class that represents a music library track."""
|
|
876
871
|
|
|
877
872
|
# the DIDL Lite class for this object.
|
|
@@ -891,7 +886,6 @@ class DidlMusicTrack(DidlAudioItem):
|
|
|
891
886
|
|
|
892
887
|
|
|
893
888
|
class DidlAudioBook(DidlAudioItem):
|
|
894
|
-
|
|
895
889
|
"""Class that represents an audio book."""
|
|
896
890
|
|
|
897
891
|
# the DIDL Lite class for this object.
|
|
@@ -909,7 +903,6 @@ class DidlAudioBook(DidlAudioItem):
|
|
|
909
903
|
|
|
910
904
|
|
|
911
905
|
class DidlAudioBroadcast(DidlAudioItem):
|
|
912
|
-
|
|
913
906
|
"""Class that represents an audio broadcast."""
|
|
914
907
|
|
|
915
908
|
# the DIDL Lite class for this object.
|
|
@@ -926,7 +919,6 @@ class DidlAudioBroadcast(DidlAudioItem):
|
|
|
926
919
|
|
|
927
920
|
|
|
928
921
|
class DidlRecentShow(DidlMusicTrack):
|
|
929
|
-
|
|
930
922
|
"""Class that represents a recent radio show/podcast."""
|
|
931
923
|
|
|
932
924
|
# the DIDL Lite class for this object.
|
|
@@ -934,7 +926,6 @@ class DidlRecentShow(DidlMusicTrack):
|
|
|
934
926
|
|
|
935
927
|
|
|
936
928
|
class DidlAudioBroadcastFavorite(DidlAudioBroadcast):
|
|
937
|
-
|
|
938
929
|
"""Class that represents an audio broadcast Sonos favorite."""
|
|
939
930
|
|
|
940
931
|
# Note: The sonos-favorite part of the class spec obviously isn't part of
|
|
@@ -946,7 +937,6 @@ class DidlAudioBroadcastFavorite(DidlAudioBroadcast):
|
|
|
946
937
|
|
|
947
938
|
|
|
948
939
|
class DidlFavorite(DidlItem):
|
|
949
|
-
|
|
950
940
|
"""Class that represents a Sonos favorite.
|
|
951
941
|
|
|
952
942
|
Note that the favorite itself isn't playable in all cases, please use the
|
|
@@ -998,7 +988,6 @@ class DidlFavorite(DidlItem):
|
|
|
998
988
|
|
|
999
989
|
|
|
1000
990
|
class DidlContainer(DidlObject):
|
|
1001
|
-
|
|
1002
991
|
"""Class that represents a music library container."""
|
|
1003
992
|
|
|
1004
993
|
# the DIDL Lite class for this object.
|
|
@@ -1009,7 +998,6 @@ class DidlContainer(DidlObject):
|
|
|
1009
998
|
|
|
1010
999
|
|
|
1011
1000
|
class DidlAlbum(DidlContainer):
|
|
1012
|
-
|
|
1013
1001
|
"""A content directory album."""
|
|
1014
1002
|
|
|
1015
1003
|
# the DIDL Lite class for this object.
|
|
@@ -1030,7 +1018,6 @@ class DidlAlbum(DidlContainer):
|
|
|
1030
1018
|
|
|
1031
1019
|
|
|
1032
1020
|
class DidlMusicAlbum(DidlAlbum):
|
|
1033
|
-
|
|
1034
1021
|
"""Class that represents a music library album."""
|
|
1035
1022
|
|
|
1036
1023
|
# the DIDL Lite class for this object.
|
|
@@ -1055,7 +1042,6 @@ class DidlMusicAlbum(DidlAlbum):
|
|
|
1055
1042
|
|
|
1056
1043
|
|
|
1057
1044
|
class DidlMusicAlbumFavorite(DidlMusicAlbum):
|
|
1058
|
-
|
|
1059
1045
|
"""Class that represents a Sonos favorite music library album.
|
|
1060
1046
|
|
|
1061
1047
|
This class is not part of the DIDL spec and is Sonos specific.
|
|
@@ -1070,7 +1056,6 @@ class DidlMusicAlbumFavorite(DidlMusicAlbum):
|
|
|
1070
1056
|
|
|
1071
1057
|
|
|
1072
1058
|
class DidlMusicAlbumCompilation(DidlMusicAlbum):
|
|
1073
|
-
|
|
1074
1059
|
"""Class that represents a Sonos favorite music library compilation.
|
|
1075
1060
|
|
|
1076
1061
|
This class is not part of the DIDL spec and is Sonos specific.
|
|
@@ -1085,7 +1070,6 @@ class DidlMusicAlbumCompilation(DidlMusicAlbum):
|
|
|
1085
1070
|
|
|
1086
1071
|
|
|
1087
1072
|
class DidlPerson(DidlContainer):
|
|
1088
|
-
|
|
1089
1073
|
"""A content directory class representing a person."""
|
|
1090
1074
|
|
|
1091
1075
|
# the DIDL Lite class for this object.
|
|
@@ -1101,7 +1085,6 @@ class DidlPerson(DidlContainer):
|
|
|
1101
1085
|
|
|
1102
1086
|
|
|
1103
1087
|
class DidlComposer(DidlPerson):
|
|
1104
|
-
|
|
1105
1088
|
"""Class that represents a music library composer."""
|
|
1106
1089
|
|
|
1107
1090
|
# Not in the DIDL-Lite spec. Sonos specific??
|
|
@@ -1111,7 +1094,6 @@ class DidlComposer(DidlPerson):
|
|
|
1111
1094
|
|
|
1112
1095
|
|
|
1113
1096
|
class DidlMusicArtist(DidlPerson):
|
|
1114
|
-
|
|
1115
1097
|
"""Class that represents a music library artist."""
|
|
1116
1098
|
|
|
1117
1099
|
# the DIDL Lite class for this object.
|
|
@@ -1127,7 +1109,6 @@ class DidlMusicArtist(DidlPerson):
|
|
|
1127
1109
|
|
|
1128
1110
|
|
|
1129
1111
|
class DidlAlbumList(DidlContainer):
|
|
1130
|
-
|
|
1131
1112
|
"""Class that represents a music library album list."""
|
|
1132
1113
|
|
|
1133
1114
|
# This does not appear (that I can find) in the DIDL-Lite specs.
|
|
@@ -1137,7 +1118,6 @@ class DidlAlbumList(DidlContainer):
|
|
|
1137
1118
|
|
|
1138
1119
|
|
|
1139
1120
|
class DidlPlaylistContainer(DidlContainer):
|
|
1140
|
-
|
|
1141
1121
|
"""Class that represents a music library play list."""
|
|
1142
1122
|
|
|
1143
1123
|
# (str) The DIDL Lite class for this object
|
|
@@ -1166,7 +1146,6 @@ class DidlPlaylistContainer(DidlContainer):
|
|
|
1166
1146
|
|
|
1167
1147
|
|
|
1168
1148
|
class DidlSameArtist(DidlPlaylistContainer):
|
|
1169
|
-
|
|
1170
1149
|
"""Class that represents all tracks by a single artist.
|
|
1171
1150
|
|
|
1172
1151
|
This type is returned by browsing an artist or a composer
|
|
@@ -1178,21 +1157,18 @@ class DidlSameArtist(DidlPlaylistContainer):
|
|
|
1178
1157
|
|
|
1179
1158
|
|
|
1180
1159
|
class DidlPlaylistContainerFavorite(DidlPlaylistContainer):
|
|
1181
|
-
|
|
1182
1160
|
"""Class that represents a Sonos favorite play list."""
|
|
1183
1161
|
|
|
1184
1162
|
item_class = "object.container.playlistContainer.sonos-favorite"
|
|
1185
1163
|
|
|
1186
1164
|
|
|
1187
1165
|
class DidlPlaylistContainerTracklist(DidlPlaylistContainer):
|
|
1188
|
-
|
|
1189
1166
|
"""Class that represents a Sonos tracklist."""
|
|
1190
1167
|
|
|
1191
1168
|
item_class = "object.container.playlistContainer.tracklist"
|
|
1192
1169
|
|
|
1193
1170
|
|
|
1194
1171
|
class DidlGenre(DidlContainer):
|
|
1195
|
-
|
|
1196
1172
|
"""A content directory class representing a general genre."""
|
|
1197
1173
|
|
|
1198
1174
|
# the DIDL Lite class for this object.
|
|
@@ -1211,7 +1187,6 @@ class DidlGenre(DidlContainer):
|
|
|
1211
1187
|
|
|
1212
1188
|
|
|
1213
1189
|
class DidlMusicGenre(DidlGenre):
|
|
1214
|
-
|
|
1215
1190
|
"""Class that represents a music genre."""
|
|
1216
1191
|
|
|
1217
1192
|
# the DIDL Lite class for this object.
|
|
@@ -1233,7 +1208,6 @@ class DidlRadioShow(DidlContainer):
|
|
|
1233
1208
|
|
|
1234
1209
|
|
|
1235
1210
|
class ListOfMusicInfoItems(list):
|
|
1236
|
-
|
|
1237
1211
|
"""Abstract container class for a list of music information items.
|
|
1238
1212
|
|
|
1239
1213
|
Instances of this class are returned from queries into the music library
|
|
@@ -1305,7 +1279,6 @@ class ListOfMusicInfoItems(list):
|
|
|
1305
1279
|
|
|
1306
1280
|
|
|
1307
1281
|
class SearchResult(ListOfMusicInfoItems):
|
|
1308
|
-
|
|
1309
1282
|
"""Container class that represents a search or browse result.
|
|
1310
1283
|
|
|
1311
1284
|
Browse is just a special case of search.
|
|
@@ -1329,7 +1302,6 @@ class SearchResult(ListOfMusicInfoItems):
|
|
|
1329
1302
|
|
|
1330
1303
|
|
|
1331
1304
|
class Queue(ListOfMusicInfoItems):
|
|
1332
|
-
|
|
1333
1305
|
"""Container class that represents a queue."""
|
|
1334
1306
|
|
|
1335
1307
|
def __repr__(self):
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"""This module contains methods for discovering Sonos devices on the
|
|
2
2
|
network."""
|
|
3
3
|
|
|
4
|
-
|
|
5
4
|
import logging
|
|
6
5
|
import socket
|
|
7
6
|
import select
|
|
@@ -363,8 +362,7 @@ def scan_network(
|
|
|
363
362
|
# Use threading to scan the list efficiently
|
|
364
363
|
sonos_ip_addresses = []
|
|
365
364
|
thread_list = []
|
|
366
|
-
|
|
367
|
-
max_threads = len(ip_set)
|
|
365
|
+
max_threads = min(max_threads, len(ip_set))
|
|
368
366
|
for _ in range(max_threads):
|
|
369
367
|
thread = threading.Thread(
|
|
370
368
|
target=_sonos_scan_worker_thread,
|
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class SoCoException(Exception):
|
|
8
|
-
|
|
9
8
|
"""Base class for all SoCo exceptions."""
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
class UnknownSoCoException(SoCoException):
|
|
13
|
-
|
|
14
12
|
"""An unknown UPnP error.
|
|
15
13
|
|
|
16
14
|
The exception object will contain the raw response sent back from
|
|
@@ -19,7 +17,6 @@ class UnknownSoCoException(SoCoException):
|
|
|
19
17
|
|
|
20
18
|
|
|
21
19
|
class SoCoUPnPException(SoCoException):
|
|
22
|
-
|
|
23
20
|
"""A UPnP Fault Code, raised in response to actions sent over the
|
|
24
21
|
network.
|
|
25
22
|
|
|
@@ -45,7 +42,6 @@ class SoCoUPnPException(SoCoException):
|
|
|
45
42
|
|
|
46
43
|
|
|
47
44
|
class CannotCreateDIDLMetadata(SoCoException):
|
|
48
|
-
|
|
49
45
|
"""
|
|
50
46
|
.. deprecated:: 0.11
|
|
51
47
|
Use `DIDLMetadataError` instead.
|
|
@@ -53,7 +49,6 @@ class CannotCreateDIDLMetadata(SoCoException):
|
|
|
53
49
|
|
|
54
50
|
|
|
55
51
|
class DIDLMetadataError(CannotCreateDIDLMetadata):
|
|
56
|
-
|
|
57
52
|
"""Raised if a data container class cannot create the DIDL metadata due to
|
|
58
53
|
missing information.
|
|
59
54
|
|
|
@@ -64,7 +59,6 @@ class DIDLMetadataError(CannotCreateDIDLMetadata):
|
|
|
64
59
|
|
|
65
60
|
|
|
66
61
|
class MusicServiceException(SoCoException):
|
|
67
|
-
|
|
68
62
|
"""An error relating to a third party music service."""
|
|
69
63
|
|
|
70
64
|
|
|
@@ -73,7 +67,6 @@ class MusicServiceAuthException(MusicServiceException):
|
|
|
73
67
|
|
|
74
68
|
|
|
75
69
|
class UnknownXMLStructure(SoCoException):
|
|
76
|
-
|
|
77
70
|
"""Raised if XML with an unknown or unexpected structure is returned."""
|
|
78
71
|
|
|
79
72
|
|
|
@@ -41,7 +41,6 @@ def tags_with_text(xml, tags=None):
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
class MusicServiceItem:
|
|
44
|
-
|
|
45
44
|
"""Class that represents a music service item."""
|
|
46
45
|
|
|
47
46
|
# These fields must be overwritten in the sub classes
|
|
@@ -326,7 +325,6 @@ class MusicServiceItem:
|
|
|
326
325
|
|
|
327
326
|
|
|
328
327
|
class MSTrack(MusicServiceItem):
|
|
329
|
-
|
|
330
328
|
"""Class that represents a music service track."""
|
|
331
329
|
|
|
332
330
|
item_class = "object.item.audioItem.musicTrack"
|
|
@@ -398,7 +396,6 @@ class MSTrack(MusicServiceItem):
|
|
|
398
396
|
|
|
399
397
|
|
|
400
398
|
class MSAlbum(MusicServiceItem):
|
|
401
|
-
|
|
402
399
|
"""Class that represents a Music Service Album."""
|
|
403
400
|
|
|
404
401
|
item_class = "object.container.album.musicAlbum"
|
|
@@ -454,7 +451,6 @@ class MSAlbum(MusicServiceItem):
|
|
|
454
451
|
|
|
455
452
|
|
|
456
453
|
class MSAlbumList(MusicServiceItem):
|
|
457
|
-
|
|
458
454
|
"""Class that represents a Music Service Album List."""
|
|
459
455
|
|
|
460
456
|
item_class = "object.container.albumlist"
|
|
@@ -503,7 +499,6 @@ class MSAlbumList(MusicServiceItem):
|
|
|
503
499
|
|
|
504
500
|
|
|
505
501
|
class MSPlaylist(MusicServiceItem):
|
|
506
|
-
|
|
507
502
|
"""Class that represents a Music Service Play List."""
|
|
508
503
|
|
|
509
504
|
item_class = "object.container.albumlist"
|
|
@@ -552,7 +547,6 @@ class MSPlaylist(MusicServiceItem):
|
|
|
552
547
|
|
|
553
548
|
|
|
554
549
|
class MSArtistTracklist(MusicServiceItem):
|
|
555
|
-
|
|
556
550
|
"""Class that represents a Music Service Artist Track List."""
|
|
557
551
|
|
|
558
552
|
item_class = "object.container.playlistContainer.sameArtist"
|
|
@@ -589,7 +583,6 @@ class MSArtistTracklist(MusicServiceItem):
|
|
|
589
583
|
|
|
590
584
|
|
|
591
585
|
class MSArtist(MusicServiceItem):
|
|
592
|
-
|
|
593
586
|
"""Class that represents a Music Service Artist."""
|
|
594
587
|
|
|
595
588
|
valid_fields = [
|
|
@@ -622,7 +615,6 @@ class MSArtist(MusicServiceItem):
|
|
|
622
615
|
|
|
623
616
|
|
|
624
617
|
class MSFavorites(MusicServiceItem):
|
|
625
|
-
|
|
626
618
|
"""Class that represents a Music Service Favorite."""
|
|
627
619
|
|
|
628
620
|
valid_fields = [
|
|
@@ -651,7 +643,6 @@ class MSFavorites(MusicServiceItem):
|
|
|
651
643
|
|
|
652
644
|
|
|
653
645
|
class MSCollection(MusicServiceItem):
|
|
654
|
-
|
|
655
646
|
"""Class that represents a Music Service Collection."""
|
|
656
647
|
|
|
657
648
|
valid_fields = [
|
|
@@ -44,7 +44,6 @@ log = logging.getLogger(__name__) # pylint: disable=C0103
|
|
|
44
44
|
|
|
45
45
|
# pylint: disable=protected-access
|
|
46
46
|
class MusicServiceSoapClient:
|
|
47
|
-
|
|
48
47
|
"""A SOAP client for accessing Music Services.
|
|
49
48
|
|
|
50
49
|
This class handles all the necessary authentication for accessing
|
|
@@ -340,7 +339,6 @@ class MusicServiceSoapClient:
|
|
|
340
339
|
|
|
341
340
|
|
|
342
341
|
class MusicService:
|
|
343
|
-
|
|
344
342
|
"""The MusicService class provides access to third party music services.
|
|
345
343
|
|
|
346
344
|
Example:
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"""Example implementation of a plugin."""
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
from ..plugins import SoCoPlugin
|
|
5
4
|
|
|
6
5
|
__all__ = ["ExamplePlugin"]
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
class ExamplePlugin(SoCoPlugin):
|
|
10
|
-
|
|
11
9
|
"""This file serves as an example of a SoCo plugin."""
|
|
12
10
|
|
|
13
11
|
def __init__(self, soco, username):
|
|
@@ -41,7 +41,6 @@ _LOG = logging.getLogger(__name__)
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
class SoapFault(SoCoException):
|
|
44
|
-
|
|
45
44
|
"""An exception encapsulating a SOAP Fault."""
|
|
46
45
|
|
|
47
46
|
def __init__(self, faultcode, faultstring, detail=None):
|
|
@@ -96,7 +95,6 @@ class SoapFault(SoCoException):
|
|
|
96
95
|
|
|
97
96
|
|
|
98
97
|
class SoapMessage:
|
|
99
|
-
|
|
100
98
|
"""A SOAP Message representing a remote procedure call.
|
|
101
99
|
|
|
102
100
|
Uses the `Requests <http://www.python-requests.org/en/latest/>`_ library
|