plex-api-client 0.23.0__tar.gz → 0.24.1__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.
- plex_api_client-0.23.0/README-PYPI.md → plex_api_client-0.24.1/PKG-INFO +60 -5
- plex_api_client-0.23.0/PKG-INFO → plex_api_client-0.24.1/README-PYPI.md +39 -26
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/pyproject.toml +2 -2
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/_hooks/types.py +15 -3
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/_version.py +3 -3
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/activities.py +12 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/authentication.py +16 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/basesdk.py +8 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/butler.py +30 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/httpclient.py +4 -2
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/hubs.py +18 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/library.py +96 -204
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/log.py +18 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/media.py +30 -0
- plex_api_client-0.24.1/src/plex_api_client/models/__init__.py +4 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/__init__.py +0 -18
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/__init__.py +42 -66
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_all_media_library.py +62 -41
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_library_items.py +22 -24
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_media_meta_data.py +58 -41
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_recently_added.py +782 -512
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_server_resources.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_users.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_watch_list.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getcompanionsdata.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getgeodata.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getpin.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/gettokenbypinid.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/gettokendetails.py +5 -3
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getuserfriends.py +1 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/post_users_sign_in_data.py +7 -3
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/playlists.py +54 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/plex.py +36 -6
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/sdk.py +19 -3
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/sdkconfiguration.py +4 -2
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/search.py +18 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/server.py +54 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/sessions.py +24 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/statistics.py +18 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/updater.py +18 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/users.py +8 -2
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/__init__.py +2 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/serializers.py +9 -5
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/values.py +4 -1
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/video.py +12 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/watchlist.py +2 -0
- plex_api_client-0.23.0/src/plex_api_client/models/errors/getondeck.py +0 -79
- plex_api_client-0.23.0/src/plex_api_client/models/operations/getondeck.py +0 -407
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/LICENSE.md +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/py.typed +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/__init__.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/_hooks/__init__.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/_hooks/registration.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/_hooks/sdkhooks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/components/__init__.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/components/security.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/addplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/applyupdates.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/cancelserveractivities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/checkforupdates.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/clearplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/createplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/deletelibrary.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/deleteplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/enablepapertrail.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_actors_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_all_libraries.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_all_media_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_banner_image.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_countries_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_genres_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_library_details.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_library_items.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_media_meta_data.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_media_providers.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_recently_added_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_refresh_library_metadata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_search_all_libraries.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_search_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_server_identity.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_server_resources.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_thumb_image.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_users.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/get_watch_list.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getavailableclients.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getbandwidthstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getbutlertasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getcompanionsdata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getdevices.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getfilehash.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getgeodata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getglobalhubs.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/gethomedata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getlibraryhubs.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getmetadatachildren.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getmyplexaccount.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getpin.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getplaylists.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getresizedphoto.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getresourcesstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getsearchresults.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getserveractivities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getservercapabilities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getserverlist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getserverpreferences.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getsessionhistory.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getsessions.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getsourceconnectioninformation.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/gettimeline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/gettokenbypinid.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/gettokendetails.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/gettopwatchedcontent.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/gettranscodesessions.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/gettransienttoken.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getupdatestatus.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/getuserfriends.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/logline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/logmultiline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/markplayed.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/markunplayed.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/performsearch.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/performvoicesearch.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/post_users_sign_in_data.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/sdkerror.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/startalltasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/starttask.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/startuniversaltranscode.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/stopalltasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/stoptask.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/stoptranscodesession.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/updateplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/updateplayprogress.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/errors/uploadplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/addplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/applyupdates.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/cancelserveractivities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/checkforupdates.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/clearplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/createplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/deletelibrary.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/deleteplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/enablepapertrail.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_actors_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_all_libraries.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_banner_image.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_countries_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_genres_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_library_details.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_media_providers.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_recently_added_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_refresh_library_metadata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_search_all_libraries.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_search_library.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_server_identity.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/get_thumb_image.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getavailableclients.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getbandwidthstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getbutlertasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getdevices.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getfilehash.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getglobalhubs.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/gethomedata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getlibraryhubs.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getmetadatachildren.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getmyplexaccount.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getplaylistcontents.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getplaylists.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getresizedphoto.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getresourcesstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getsearchresults.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getserveractivities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getservercapabilities.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getserverlist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getserverpreferences.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getsessionhistory.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getsessions.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getsourceconnectioninformation.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getstatistics.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/gettimeline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/gettopwatchedcontent.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/gettranscodesessions.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/gettransienttoken.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/getupdatestatus.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/logline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/logmultiline.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/markplayed.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/markunplayed.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/performsearch.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/performvoicesearch.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/startalltasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/starttask.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/startuniversaltranscode.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/stopalltasks.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/stoptask.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/stoptranscodesession.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/updateplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/updateplayprogress.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/models/operations/uploadplaylist.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/py.typed +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/types/__init__.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/types/basemodel.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/annotations.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/enums.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/eventstreaming.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/forms.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/headers.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/logger.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/metadata.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/queryparams.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/requestbodies.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/retries.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/security.py +0 -0
- {plex_api_client-0.23.0 → plex_api_client-0.24.1}/src/plex_api_client/utils/url.py +0 -0
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: plex-api-client
|
|
3
|
+
Version: 0.24.1
|
|
4
|
+
Summary: Python Client SDK Generated by Speakeasy
|
|
5
|
+
Author: Speakeasy
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Requires-Dist: eval-type-backport (>=0.2.0)
|
|
14
|
+
Requires-Dist: httpx (>=0.28.1)
|
|
15
|
+
Requires-Dist: pydantic (>=2.10.3)
|
|
16
|
+
Requires-Dist: python-dateutil (>=2.8.2)
|
|
17
|
+
Requires-Dist: typing-inspection (>=0.4.0)
|
|
18
|
+
Project-URL: Repository, https://github.com/LukeHagar/plexpy.git
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
1
21
|
# plexpy
|
|
2
22
|
|
|
3
23
|
<div align="left">
|
|
@@ -139,6 +159,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
|
|
|
139
159
|
# Synchronous Example
|
|
140
160
|
from plex_api_client import PlexAPI
|
|
141
161
|
|
|
162
|
+
|
|
142
163
|
with PlexAPI(
|
|
143
164
|
access_token="<YOUR_API_KEY_HERE>",
|
|
144
165
|
) as plex_api:
|
|
@@ -160,6 +181,7 @@ import asyncio
|
|
|
160
181
|
from plex_api_client import PlexAPI
|
|
161
182
|
|
|
162
183
|
async def main():
|
|
184
|
+
|
|
163
185
|
async with PlexAPI(
|
|
164
186
|
access_token="<YOUR_API_KEY_HERE>",
|
|
165
187
|
) as plex_api:
|
|
@@ -225,7 +247,6 @@ asyncio.run(main())
|
|
|
225
247
|
* [get_media_meta_data](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_media_meta_data) - Get Media Metadata
|
|
226
248
|
* [get_metadata_children](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_metadata_children) - Get Items Children
|
|
227
249
|
* [get_top_watched_content](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_top_watched_content) - Get Top Watched Content
|
|
228
|
-
* [get_on_deck](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_on_deck) - Get On Deck
|
|
229
250
|
|
|
230
251
|
### [log](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/log/README.md)
|
|
231
252
|
|
|
@@ -327,6 +348,7 @@ To change the default retry strategy for a single API call, simply provide a `Re
|
|
|
327
348
|
from plex_api_client import PlexAPI
|
|
328
349
|
from plex_api_client.utils import BackoffStrategy, RetryConfig
|
|
329
350
|
|
|
351
|
+
|
|
330
352
|
with PlexAPI(
|
|
331
353
|
access_token="<YOUR_API_KEY_HERE>",
|
|
332
354
|
) as plex_api:
|
|
@@ -346,6 +368,7 @@ If you'd like to override the default retry strategy for all operations that sup
|
|
|
346
368
|
from plex_api_client import PlexAPI
|
|
347
369
|
from plex_api_client.utils import BackoffStrategy, RetryConfig
|
|
348
370
|
|
|
371
|
+
|
|
349
372
|
with PlexAPI(
|
|
350
373
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
|
351
374
|
access_token="<YOUR_API_KEY_HERE>",
|
|
@@ -389,6 +412,7 @@ When custom error responses are specified for an operation, the SDK may also rai
|
|
|
389
412
|
from plex_api_client import PlexAPI
|
|
390
413
|
from plex_api_client.models import errors
|
|
391
414
|
|
|
415
|
+
|
|
392
416
|
with PlexAPI(
|
|
393
417
|
access_token="<YOUR_API_KEY_HERE>",
|
|
394
418
|
) as plex_api:
|
|
@@ -420,16 +444,42 @@ with PlexAPI(
|
|
|
420
444
|
### Server Variables
|
|
421
445
|
|
|
422
446
|
The default server `{protocol}://{ip}:{port}` contains variables and is set to `https://10.10.10.47:32400` by default. To override default values, the following parameters are available when initializing the SDK client instance:
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
447
|
+
|
|
448
|
+
| Variable | Parameter | Supported Values | Default | Description |
|
|
449
|
+
| ---------- | --------------------------------- | -------------------------- | --------------- | ---------------------------------------------- |
|
|
450
|
+
| `protocol` | `protocol: models.ServerProtocol` | - `"http"`<br/>- `"https"` | `"https"` | The protocol to use for the server connection |
|
|
451
|
+
| `ip` | `ip: str` | str | `"10.10.10.47"` | The IP address or hostname of your Plex Server |
|
|
452
|
+
| `port` | `port: str` | str | `"32400"` | The port of your Plex Server |
|
|
453
|
+
|
|
454
|
+
#### Example
|
|
455
|
+
|
|
456
|
+
```python
|
|
457
|
+
from plex_api_client import PlexAPI
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
with PlexAPI(
|
|
461
|
+
protocol="https"
|
|
462
|
+
ip="e0c3:bcc0:6bac:dccc:c4ec:34b1:ca98:4cb9"
|
|
463
|
+
port="40311"
|
|
464
|
+
access_token="<YOUR_API_KEY_HERE>",
|
|
465
|
+
) as plex_api:
|
|
466
|
+
|
|
467
|
+
res = plex_api.server.get_server_capabilities()
|
|
468
|
+
|
|
469
|
+
assert res.object is not None
|
|
470
|
+
|
|
471
|
+
# Handle response
|
|
472
|
+
print(res.object)
|
|
473
|
+
|
|
474
|
+
```
|
|
426
475
|
|
|
427
476
|
### Override Server URL Per-Client
|
|
428
477
|
|
|
429
|
-
The default server can
|
|
478
|
+
The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|
|
430
479
|
```python
|
|
431
480
|
from plex_api_client import PlexAPI
|
|
432
481
|
|
|
482
|
+
|
|
433
483
|
with PlexAPI(
|
|
434
484
|
server_url="https://10.10.10.47:32400",
|
|
435
485
|
access_token="<YOUR_API_KEY_HERE>",
|
|
@@ -450,6 +500,7 @@ The server URL can also be overridden on a per-operation basis, provided a serve
|
|
|
450
500
|
```python
|
|
451
501
|
from plex_api_client import PlexAPI
|
|
452
502
|
|
|
503
|
+
|
|
453
504
|
with PlexAPI(
|
|
454
505
|
access_token="<YOUR_API_KEY_HERE>",
|
|
455
506
|
) as plex_api:
|
|
@@ -560,6 +611,7 @@ To authenticate with the API the `access_token` parameter must be set when initi
|
|
|
560
611
|
```python
|
|
561
612
|
from plex_api_client import PlexAPI
|
|
562
613
|
|
|
614
|
+
|
|
563
615
|
with PlexAPI(
|
|
564
616
|
access_token="<YOUR_API_KEY_HERE>",
|
|
565
617
|
) as plex_api:
|
|
@@ -584,6 +636,7 @@ The `PlexAPI` class implements the context manager protocol and registers a fina
|
|
|
584
636
|
```python
|
|
585
637
|
from plex_api_client import PlexAPI
|
|
586
638
|
def main():
|
|
639
|
+
|
|
587
640
|
with PlexAPI(
|
|
588
641
|
access_token="<YOUR_API_KEY_HERE>",
|
|
589
642
|
) as plex_api:
|
|
@@ -592,6 +645,7 @@ def main():
|
|
|
592
645
|
|
|
593
646
|
# Or when using async:
|
|
594
647
|
async def amain():
|
|
648
|
+
|
|
595
649
|
async with PlexAPI(
|
|
596
650
|
access_token="<YOUR_API_KEY_HERE>",
|
|
597
651
|
) as plex_api:
|
|
@@ -630,3 +684,4 @@ While we value open-source contributions to this SDK, this library is generated
|
|
|
630
684
|
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!
|
|
631
685
|
|
|
632
686
|
### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
|
|
687
|
+
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: plex-api-client
|
|
3
|
-
Version: 0.23.0
|
|
4
|
-
Summary: Python Client SDK Generated by Speakeasy
|
|
5
|
-
Author: Speakeasy
|
|
6
|
-
Requires-Python: >=3.9
|
|
7
|
-
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
-
Requires-Dist: eval-type-backport (>=0.2.0)
|
|
14
|
-
Requires-Dist: httpx (>=0.28.1)
|
|
15
|
-
Requires-Dist: pydantic (>=2.10.3)
|
|
16
|
-
Requires-Dist: python-dateutil (>=2.8.2)
|
|
17
|
-
Requires-Dist: typing-inspect (>=0.9.0)
|
|
18
|
-
Project-URL: Repository, https://github.com/LukeHagar/plexpy.git
|
|
19
|
-
Description-Content-Type: text/markdown
|
|
20
|
-
|
|
21
1
|
# plexpy
|
|
22
2
|
|
|
23
3
|
<div align="left">
|
|
@@ -159,6 +139,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
|
|
|
159
139
|
# Synchronous Example
|
|
160
140
|
from plex_api_client import PlexAPI
|
|
161
141
|
|
|
142
|
+
|
|
162
143
|
with PlexAPI(
|
|
163
144
|
access_token="<YOUR_API_KEY_HERE>",
|
|
164
145
|
) as plex_api:
|
|
@@ -180,6 +161,7 @@ import asyncio
|
|
|
180
161
|
from plex_api_client import PlexAPI
|
|
181
162
|
|
|
182
163
|
async def main():
|
|
164
|
+
|
|
183
165
|
async with PlexAPI(
|
|
184
166
|
access_token="<YOUR_API_KEY_HERE>",
|
|
185
167
|
) as plex_api:
|
|
@@ -245,7 +227,6 @@ asyncio.run(main())
|
|
|
245
227
|
* [get_media_meta_data](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_media_meta_data) - Get Media Metadata
|
|
246
228
|
* [get_metadata_children](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_metadata_children) - Get Items Children
|
|
247
229
|
* [get_top_watched_content](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_top_watched_content) - Get Top Watched Content
|
|
248
|
-
* [get_on_deck](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_on_deck) - Get On Deck
|
|
249
230
|
|
|
250
231
|
### [log](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/log/README.md)
|
|
251
232
|
|
|
@@ -347,6 +328,7 @@ To change the default retry strategy for a single API call, simply provide a `Re
|
|
|
347
328
|
from plex_api_client import PlexAPI
|
|
348
329
|
from plex_api_client.utils import BackoffStrategy, RetryConfig
|
|
349
330
|
|
|
331
|
+
|
|
350
332
|
with PlexAPI(
|
|
351
333
|
access_token="<YOUR_API_KEY_HERE>",
|
|
352
334
|
) as plex_api:
|
|
@@ -366,6 +348,7 @@ If you'd like to override the default retry strategy for all operations that sup
|
|
|
366
348
|
from plex_api_client import PlexAPI
|
|
367
349
|
from plex_api_client.utils import BackoffStrategy, RetryConfig
|
|
368
350
|
|
|
351
|
+
|
|
369
352
|
with PlexAPI(
|
|
370
353
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
|
371
354
|
access_token="<YOUR_API_KEY_HERE>",
|
|
@@ -409,6 +392,7 @@ When custom error responses are specified for an operation, the SDK may also rai
|
|
|
409
392
|
from plex_api_client import PlexAPI
|
|
410
393
|
from plex_api_client.models import errors
|
|
411
394
|
|
|
395
|
+
|
|
412
396
|
with PlexAPI(
|
|
413
397
|
access_token="<YOUR_API_KEY_HERE>",
|
|
414
398
|
) as plex_api:
|
|
@@ -440,16 +424,42 @@ with PlexAPI(
|
|
|
440
424
|
### Server Variables
|
|
441
425
|
|
|
442
426
|
The default server `{protocol}://{ip}:{port}` contains variables and is set to `https://10.10.10.47:32400` by default. To override default values, the following parameters are available when initializing the SDK client instance:
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
427
|
+
|
|
428
|
+
| Variable | Parameter | Supported Values | Default | Description |
|
|
429
|
+
| ---------- | --------------------------------- | -------------------------- | --------------- | ---------------------------------------------- |
|
|
430
|
+
| `protocol` | `protocol: models.ServerProtocol` | - `"http"`<br/>- `"https"` | `"https"` | The protocol to use for the server connection |
|
|
431
|
+
| `ip` | `ip: str` | str | `"10.10.10.47"` | The IP address or hostname of your Plex Server |
|
|
432
|
+
| `port` | `port: str` | str | `"32400"` | The port of your Plex Server |
|
|
433
|
+
|
|
434
|
+
#### Example
|
|
435
|
+
|
|
436
|
+
```python
|
|
437
|
+
from plex_api_client import PlexAPI
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
with PlexAPI(
|
|
441
|
+
protocol="https"
|
|
442
|
+
ip="e0c3:bcc0:6bac:dccc:c4ec:34b1:ca98:4cb9"
|
|
443
|
+
port="40311"
|
|
444
|
+
access_token="<YOUR_API_KEY_HERE>",
|
|
445
|
+
) as plex_api:
|
|
446
|
+
|
|
447
|
+
res = plex_api.server.get_server_capabilities()
|
|
448
|
+
|
|
449
|
+
assert res.object is not None
|
|
450
|
+
|
|
451
|
+
# Handle response
|
|
452
|
+
print(res.object)
|
|
453
|
+
|
|
454
|
+
```
|
|
446
455
|
|
|
447
456
|
### Override Server URL Per-Client
|
|
448
457
|
|
|
449
|
-
The default server can
|
|
458
|
+
The default server can be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|
|
450
459
|
```python
|
|
451
460
|
from plex_api_client import PlexAPI
|
|
452
461
|
|
|
462
|
+
|
|
453
463
|
with PlexAPI(
|
|
454
464
|
server_url="https://10.10.10.47:32400",
|
|
455
465
|
access_token="<YOUR_API_KEY_HERE>",
|
|
@@ -470,6 +480,7 @@ The server URL can also be overridden on a per-operation basis, provided a serve
|
|
|
470
480
|
```python
|
|
471
481
|
from plex_api_client import PlexAPI
|
|
472
482
|
|
|
483
|
+
|
|
473
484
|
with PlexAPI(
|
|
474
485
|
access_token="<YOUR_API_KEY_HERE>",
|
|
475
486
|
) as plex_api:
|
|
@@ -580,6 +591,7 @@ To authenticate with the API the `access_token` parameter must be set when initi
|
|
|
580
591
|
```python
|
|
581
592
|
from plex_api_client import PlexAPI
|
|
582
593
|
|
|
594
|
+
|
|
583
595
|
with PlexAPI(
|
|
584
596
|
access_token="<YOUR_API_KEY_HERE>",
|
|
585
597
|
) as plex_api:
|
|
@@ -604,6 +616,7 @@ The `PlexAPI` class implements the context manager protocol and registers a fina
|
|
|
604
616
|
```python
|
|
605
617
|
from plex_api_client import PlexAPI
|
|
606
618
|
def main():
|
|
619
|
+
|
|
607
620
|
with PlexAPI(
|
|
608
621
|
access_token="<YOUR_API_KEY_HERE>",
|
|
609
622
|
) as plex_api:
|
|
@@ -612,6 +625,7 @@ def main():
|
|
|
612
625
|
|
|
613
626
|
# Or when using async:
|
|
614
627
|
async def amain():
|
|
628
|
+
|
|
615
629
|
async with PlexAPI(
|
|
616
630
|
access_token="<YOUR_API_KEY_HERE>",
|
|
617
631
|
) as plex_api:
|
|
@@ -650,4 +664,3 @@ While we value open-source contributions to this SDK, this library is generated
|
|
|
650
664
|
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!
|
|
651
665
|
|
|
652
666
|
### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
|
|
653
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "plex-api-client"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.24.1"
|
|
4
4
|
description = "Python Client SDK Generated by Speakeasy"
|
|
5
5
|
authors = [{ name = "Speakeasy" },]
|
|
6
6
|
readme = "README-PYPI.md"
|
|
@@ -10,7 +10,7 @@ dependencies = [
|
|
|
10
10
|
"httpx >=0.28.1",
|
|
11
11
|
"pydantic >=2.10.3",
|
|
12
12
|
"python-dateutil >=2.8.2",
|
|
13
|
-
"typing-
|
|
13
|
+
"typing-inspection >=0.4.0",
|
|
14
14
|
]
|
|
15
15
|
|
|
16
16
|
[tool.poetry]
|
|
@@ -7,16 +7,19 @@ from typing import Any, Callable, List, Optional, Tuple, Union
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class HookContext:
|
|
10
|
+
base_url: str
|
|
10
11
|
operation_id: str
|
|
11
12
|
oauth2_scopes: Optional[List[str]] = None
|
|
12
13
|
security_source: Optional[Union[Any, Callable[[], Any]]] = None
|
|
13
14
|
|
|
14
15
|
def __init__(
|
|
15
16
|
self,
|
|
17
|
+
base_url: str,
|
|
16
18
|
operation_id: str,
|
|
17
19
|
oauth2_scopes: Optional[List[str]],
|
|
18
20
|
security_source: Optional[Union[Any, Callable[[], Any]]],
|
|
19
21
|
):
|
|
22
|
+
self.base_url = base_url
|
|
20
23
|
self.operation_id = operation_id
|
|
21
24
|
self.oauth2_scopes = oauth2_scopes
|
|
22
25
|
self.security_source = security_source
|
|
@@ -25,21 +28,30 @@ class HookContext:
|
|
|
25
28
|
class BeforeRequestContext(HookContext):
|
|
26
29
|
def __init__(self, hook_ctx: HookContext):
|
|
27
30
|
super().__init__(
|
|
28
|
-
hook_ctx.
|
|
31
|
+
hook_ctx.base_url,
|
|
32
|
+
hook_ctx.operation_id,
|
|
33
|
+
hook_ctx.oauth2_scopes,
|
|
34
|
+
hook_ctx.security_source,
|
|
29
35
|
)
|
|
30
36
|
|
|
31
37
|
|
|
32
38
|
class AfterSuccessContext(HookContext):
|
|
33
39
|
def __init__(self, hook_ctx: HookContext):
|
|
34
40
|
super().__init__(
|
|
35
|
-
hook_ctx.
|
|
41
|
+
hook_ctx.base_url,
|
|
42
|
+
hook_ctx.operation_id,
|
|
43
|
+
hook_ctx.oauth2_scopes,
|
|
44
|
+
hook_ctx.security_source,
|
|
36
45
|
)
|
|
37
46
|
|
|
38
47
|
|
|
39
48
|
class AfterErrorContext(HookContext):
|
|
40
49
|
def __init__(self, hook_ctx: HookContext):
|
|
41
50
|
super().__init__(
|
|
42
|
-
hook_ctx.
|
|
51
|
+
hook_ctx.base_url,
|
|
52
|
+
hook_ctx.operation_id,
|
|
53
|
+
hook_ctx.oauth2_scopes,
|
|
54
|
+
hook_ctx.security_source,
|
|
43
55
|
)
|
|
44
56
|
|
|
45
57
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "plex-api-client"
|
|
6
|
-
__version__: str = "0.
|
|
6
|
+
__version__: str = "0.24.1"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.3"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.
|
|
8
|
+
__gen_version__: str = "2.545.4"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.24.1 2.545.4 0.0.3 plex-api-client"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -43,6 +43,8 @@ class Activities(BaseSDK):
|
|
|
43
43
|
|
|
44
44
|
if server_url is not None:
|
|
45
45
|
base_url = server_url
|
|
46
|
+
else:
|
|
47
|
+
base_url = self._get_url(base_url, url_variables)
|
|
46
48
|
req = self._build_request(
|
|
47
49
|
method="GET",
|
|
48
50
|
path="/activities",
|
|
@@ -69,6 +71,7 @@ class Activities(BaseSDK):
|
|
|
69
71
|
|
|
70
72
|
http_res = self.do_request(
|
|
71
73
|
hook_ctx=HookContext(
|
|
74
|
+
base_url=base_url or "",
|
|
72
75
|
operation_id="getServerActivities",
|
|
73
76
|
oauth2_scopes=[],
|
|
74
77
|
security_source=self.sdk_configuration.security,
|
|
@@ -144,6 +147,8 @@ class Activities(BaseSDK):
|
|
|
144
147
|
|
|
145
148
|
if server_url is not None:
|
|
146
149
|
base_url = server_url
|
|
150
|
+
else:
|
|
151
|
+
base_url = self._get_url(base_url, url_variables)
|
|
147
152
|
req = self._build_request_async(
|
|
148
153
|
method="GET",
|
|
149
154
|
path="/activities",
|
|
@@ -170,6 +175,7 @@ class Activities(BaseSDK):
|
|
|
170
175
|
|
|
171
176
|
http_res = await self.do_request_async(
|
|
172
177
|
hook_ctx=HookContext(
|
|
178
|
+
base_url=base_url or "",
|
|
173
179
|
operation_id="getServerActivities",
|
|
174
180
|
oauth2_scopes=[],
|
|
175
181
|
security_source=self.sdk_configuration.security,
|
|
@@ -247,6 +253,8 @@ class Activities(BaseSDK):
|
|
|
247
253
|
|
|
248
254
|
if server_url is not None:
|
|
249
255
|
base_url = server_url
|
|
256
|
+
else:
|
|
257
|
+
base_url = self._get_url(base_url, url_variables)
|
|
250
258
|
|
|
251
259
|
request = operations.CancelServerActivitiesRequest(
|
|
252
260
|
activity_uuid=activity_uuid,
|
|
@@ -278,6 +286,7 @@ class Activities(BaseSDK):
|
|
|
278
286
|
|
|
279
287
|
http_res = self.do_request(
|
|
280
288
|
hook_ctx=HookContext(
|
|
289
|
+
base_url=base_url or "",
|
|
281
290
|
operation_id="cancelServerActivities",
|
|
282
291
|
oauth2_scopes=[],
|
|
283
292
|
security_source=self.sdk_configuration.security,
|
|
@@ -352,6 +361,8 @@ class Activities(BaseSDK):
|
|
|
352
361
|
|
|
353
362
|
if server_url is not None:
|
|
354
363
|
base_url = server_url
|
|
364
|
+
else:
|
|
365
|
+
base_url = self._get_url(base_url, url_variables)
|
|
355
366
|
|
|
356
367
|
request = operations.CancelServerActivitiesRequest(
|
|
357
368
|
activity_uuid=activity_uuid,
|
|
@@ -383,6 +394,7 @@ class Activities(BaseSDK):
|
|
|
383
394
|
|
|
384
395
|
http_res = await self.do_request_async(
|
|
385
396
|
hook_ctx=HookContext(
|
|
397
|
+
base_url=base_url or "",
|
|
386
398
|
operation_id="cancelServerActivities",
|
|
387
399
|
oauth2_scopes=[],
|
|
388
400
|
security_source=self.sdk_configuration.security,
|
|
@@ -40,6 +40,8 @@ class Authentication(BaseSDK):
|
|
|
40
40
|
|
|
41
41
|
if server_url is not None:
|
|
42
42
|
base_url = server_url
|
|
43
|
+
else:
|
|
44
|
+
base_url = self._get_url(base_url, url_variables)
|
|
43
45
|
|
|
44
46
|
request = operations.GetTransientTokenRequest(
|
|
45
47
|
type=type_,
|
|
@@ -72,6 +74,7 @@ class Authentication(BaseSDK):
|
|
|
72
74
|
|
|
73
75
|
http_res = self.do_request(
|
|
74
76
|
hook_ctx=HookContext(
|
|
77
|
+
base_url=base_url or "",
|
|
75
78
|
operation_id="getTransientToken",
|
|
76
79
|
oauth2_scopes=[],
|
|
77
80
|
security_source=self.sdk_configuration.security,
|
|
@@ -149,6 +152,8 @@ class Authentication(BaseSDK):
|
|
|
149
152
|
|
|
150
153
|
if server_url is not None:
|
|
151
154
|
base_url = server_url
|
|
155
|
+
else:
|
|
156
|
+
base_url = self._get_url(base_url, url_variables)
|
|
152
157
|
|
|
153
158
|
request = operations.GetTransientTokenRequest(
|
|
154
159
|
type=type_,
|
|
@@ -181,6 +186,7 @@ class Authentication(BaseSDK):
|
|
|
181
186
|
|
|
182
187
|
http_res = await self.do_request_async(
|
|
183
188
|
hook_ctx=HookContext(
|
|
189
|
+
base_url=base_url or "",
|
|
184
190
|
operation_id="getTransientToken",
|
|
185
191
|
oauth2_scopes=[],
|
|
186
192
|
security_source=self.sdk_configuration.security,
|
|
@@ -257,6 +263,8 @@ class Authentication(BaseSDK):
|
|
|
257
263
|
|
|
258
264
|
if server_url is not None:
|
|
259
265
|
base_url = server_url
|
|
266
|
+
else:
|
|
267
|
+
base_url = self._get_url(base_url, url_variables)
|
|
260
268
|
|
|
261
269
|
request = operations.GetSourceConnectionInformationRequest(
|
|
262
270
|
source=source,
|
|
@@ -288,6 +296,7 @@ class Authentication(BaseSDK):
|
|
|
288
296
|
|
|
289
297
|
http_res = self.do_request(
|
|
290
298
|
hook_ctx=HookContext(
|
|
299
|
+
base_url=base_url or "",
|
|
291
300
|
operation_id="getSourceConnectionInformation",
|
|
292
301
|
oauth2_scopes=[],
|
|
293
302
|
security_source=self.sdk_configuration.security,
|
|
@@ -364,6 +373,8 @@ class Authentication(BaseSDK):
|
|
|
364
373
|
|
|
365
374
|
if server_url is not None:
|
|
366
375
|
base_url = server_url
|
|
376
|
+
else:
|
|
377
|
+
base_url = self._get_url(base_url, url_variables)
|
|
367
378
|
|
|
368
379
|
request = operations.GetSourceConnectionInformationRequest(
|
|
369
380
|
source=source,
|
|
@@ -395,6 +406,7 @@ class Authentication(BaseSDK):
|
|
|
395
406
|
|
|
396
407
|
http_res = await self.do_request_async(
|
|
397
408
|
hook_ctx=HookContext(
|
|
409
|
+
base_url=base_url or "",
|
|
398
410
|
operation_id="getSourceConnectionInformation",
|
|
399
411
|
oauth2_scopes=[],
|
|
400
412
|
security_source=self.sdk_configuration.security,
|
|
@@ -495,6 +507,7 @@ class Authentication(BaseSDK):
|
|
|
495
507
|
|
|
496
508
|
http_res = self.do_request(
|
|
497
509
|
hook_ctx=HookContext(
|
|
510
|
+
base_url=base_url or "",
|
|
498
511
|
operation_id="getTokenDetails",
|
|
499
512
|
oauth2_scopes=[],
|
|
500
513
|
security_source=self.sdk_configuration.security,
|
|
@@ -598,6 +611,7 @@ class Authentication(BaseSDK):
|
|
|
598
611
|
|
|
599
612
|
http_res = await self.do_request_async(
|
|
600
613
|
hook_ctx=HookContext(
|
|
614
|
+
base_url=base_url or "",
|
|
601
615
|
operation_id="getTokenDetails",
|
|
602
616
|
oauth2_scopes=[],
|
|
603
617
|
security_source=self.sdk_configuration.security,
|
|
@@ -717,6 +731,7 @@ class Authentication(BaseSDK):
|
|
|
717
731
|
|
|
718
732
|
http_res = self.do_request(
|
|
719
733
|
hook_ctx=HookContext(
|
|
734
|
+
base_url=base_url or "",
|
|
720
735
|
operation_id="post-users-sign-in-data",
|
|
721
736
|
oauth2_scopes=[],
|
|
722
737
|
security_source=None,
|
|
@@ -837,6 +852,7 @@ class Authentication(BaseSDK):
|
|
|
837
852
|
|
|
838
853
|
http_res = await self.do_request_async(
|
|
839
854
|
hook_ctx=HookContext(
|
|
855
|
+
base_url=base_url or "",
|
|
840
856
|
operation_id="post-users-sign-in-data",
|
|
841
857
|
oauth2_scopes=[],
|
|
842
858
|
security_source=None,
|
|
@@ -232,6 +232,10 @@ class BaseSDK:
|
|
|
232
232
|
req.headers,
|
|
233
233
|
get_body_content(req),
|
|
234
234
|
)
|
|
235
|
+
|
|
236
|
+
if client is None:
|
|
237
|
+
raise ValueError("client is required")
|
|
238
|
+
|
|
235
239
|
http_res = client.send(req, stream=stream)
|
|
236
240
|
except Exception as e:
|
|
237
241
|
_, e = self.sdk_configuration.get_hooks().after_error(
|
|
@@ -304,6 +308,10 @@ class BaseSDK:
|
|
|
304
308
|
req.headers,
|
|
305
309
|
get_body_content(req),
|
|
306
310
|
)
|
|
311
|
+
|
|
312
|
+
if client is None:
|
|
313
|
+
raise ValueError("client is required")
|
|
314
|
+
|
|
307
315
|
http_res = await client.send(req, stream=stream)
|
|
308
316
|
except Exception as e:
|
|
309
317
|
_, e = self.sdk_configuration.get_hooks().after_error(
|