torbox-sdk 9.3.1.20261125.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.
- torbox_sdk-9.3.1.20261125.4/PKG-INFO +103 -0
- torbox_sdk-9.3.1.20261125.4/README.md +85 -0
- torbox_sdk-9.3.1.20261125.4/pyproject.toml +33 -0
- torbox_sdk-9.3.1.20261125.4/setup.cfg +4 -0
- torbox_sdk-9.3.1.20261125.4/tests/test_client.py +43 -0
- torbox_sdk-9.3.1.20261125.4/torbox/__init__.py +453 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/__init__.py +17 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/assistant_api.py +1713 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/general_api.py +1700 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/integrations_api.py +5211 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/notifications_api.py +1420 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/queued_api.py +691 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/rss_api.py +1511 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/stream_api.py +780 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/tags_api.py +903 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/torrents_api.py +5420 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/usenet_api.py +4411 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/user_api.py +3777 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/vendors_api.py +2342 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api/web_downloads_api.py +3827 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api_client.py +866 -0
- torbox_sdk-9.3.1.20261125.4/torbox/api_response.py +21 -0
- torbox_sdk-9.3.1.20261125.4/torbox/client.py +169 -0
- torbox_sdk-9.3.1.20261125.4/torbox/configuration.py +655 -0
- torbox_sdk-9.3.1.20261125.4/torbox/exceptions.py +219 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/__init__.py +205 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/add_referral_to_account_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/add_rss.py +105 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/add_rss_feed_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/add_to1_fichier.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/add_to_dropbox.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/add_to_gofile.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/add_to_google_drive.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/add_to_onedrive.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/add_to_pixeldrain.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/api_error.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/async_create_torrent_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/async_create_usenet_download_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/async_create_web_download_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/base_settings_model.py +211 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/cancel_specific_job_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/chat_file.py +92 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/chat_request.py +113 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/check_cached.py +89 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/clear_all_notifications_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/clear_single_notification_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_queued_download.py +93 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_queued_downloads_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_rss.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_rss_feed_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_tag.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_tag_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_torrent.py +93 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_torrent_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_usenet_download.py +93 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_usenet_download_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_web_download.py +93 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/control_web_download_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_stream_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_stream_response_data.py +153 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_stream_response_data_intro_information.py +93 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_stream_response_data_metadata.py +108 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_stream_response_data_metadata_audios_inner.py +107 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_stream_response_data_metadata_video.py +117 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_stream_response_data_search_metadata.py +142 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_stream_response_data_search_metadata_titles_full_inner.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_torrent_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_torrent_response_data.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_usenet_download_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_usenet_download_response_data.py +93 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_web_download_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/create_web_download_response_data.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/delete_account_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/delete_account_schema.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/delete_assistant_conversation_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/delete_assistant_conversations_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/delete_assistant_conversations_response_data.py +89 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/device_token_schema.py +89 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_rss_feed_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_tag.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_tag_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_tag_response_data.py +93 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_torrent.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_torrent_item_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_usenet_download.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_usenet_item_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_user_settings_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_web_download.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/edit_web_download_item_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/export_torrent_data_response.py +95 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get30_day_stats_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get30_day_stats_response_data_inner.py +116 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_all_jobs_by_hash_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_all_jobs_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_assistant_usage_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_assistant_usage_response_data.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_changelogs_json_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_changelogs_json_response_data_inner.py +103 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_confirmation_code_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_hoster_list_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_hoster_list_response_data_inner.py +122 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_news_server_account_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_news_server_account_response_data.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_news_server_connection_information_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_news_server_connection_information_response_data.py +103 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_notification_feed_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_notification_feed_response_data_inner.py +103 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_oauth_integrations_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_oauth_integrations_response_data.py +95 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_queued_downloads_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_queued_downloads_response_data_inner.py +105 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_referral_data_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_referral_data_response_data.py +93 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_rss_feed_items_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_rss_feed_items_response_data_inner.py +111 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_specific_job_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_specific_job_response_data.py +117 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_speedtest_files_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_speedtest_files_response_data_inner.py +105 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_speedtest_files_response_data_inner_coordinates.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_stats_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_stats_response_data.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_stream_data_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_stream_data_response_data.py +119 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_subscriptions_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_subscriptions_response_data_inner.py +105 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_tags_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_tags_response_data.py +93 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_tags_response_data_string.py +101 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_token_from_device_code_process_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_token_from_device_code_process_response_data.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_torrent_cached_availability_batch_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_torrent_cached_availability_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_torrent_info_from_file_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_torrent_info_from_file_response_data.py +108 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_torrent_info_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_torrent_info_response_data.py +108 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_torrent_info_response_data_files_inner.py +93 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_torrent_list_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_torrent_list_response_data_inner.py +172 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_torrent_list_response_data_inner_files_inner.py +111 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_transactions_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_transactions_response_data_inner.py +95 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_up_status_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_usenet_cached_availability_batch_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_usenet_cached_availability_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_usenet_list_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_usenet_list_response_data_inner.py +142 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_user_data_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_user_data_response_data.py +141 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_user_data_response_data_settings.py +217 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_user_data_response_data_settings_dashboard_filter.py +115 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_user_rss_feeds_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_user_rss_feeds_response_data_inner.py +121 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_user_stats_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_user_stats_response_data.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_user_stats_response_data_bandwidth_inner.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_user_stats_response_data_general.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_vendor_account_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_vendor_account_response_data.py +117 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_vendor_user_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_vendor_user_response_data.py +139 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_vendor_users_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_vendor_users_response_data_inner.py +137 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_web_download_cached_availability_batch_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_web_download_cached_availability_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_web_download_list_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/get_web_download_list_response_data_inner.py +144 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/http_validation_error.py +96 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/link_discord_roles_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/linked_roles_data.py +89 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/list_assistant_conversations_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/list_assistant_conversations_response_data_inner.py +103 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/list_assistant_conversations_response_data_inner_support.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/magnet_to_torrent.py +89 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/modify_rss.py +103 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/o_auth_register_request.py +91 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/oauth_success_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/read_assistant_conversation_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/read_assistant_conversation_response_data.py +113 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/read_assistant_conversation_response_data_messages_inner.py +95 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/refresh_api_token_response.py +95 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/refresh_token_schema.py +89 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/refresh_vendor_users_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/register_oauth_link_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/register_vendor_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/register_vendor_response_data.py +97 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/register_vendor_user_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/register_vendor_user_response_data.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/remove_vendor_user_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_download_batch.py +89 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_torrent_download_link_response.py +95 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_torrent_download_links_get_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_torrent_download_links_get_response_data_inner.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_torrent_download_links_post_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_usenet_download_link_response.py +95 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_usenet_download_links_get_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_usenet_download_links_post_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_web_download_link_response.py +95 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_web_download_links_get_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/request_web_download_links_post_response.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/reset_news_server_account_password_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/send_test_notification_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/start_device_code_authorization_process_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/start_device_code_authorization_process_response_data.py +103 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/unregister_oauth_link_response.py +100 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/update_vendor_account_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/upload_to1fichier_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/upload_to_gofile_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/upload_to_google_drive_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/upload_to_google_drive_response_data.py +89 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/upload_to_onedrive_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/upload_to_pixeldrain_response.py +99 -0
- torbox_sdk-9.3.1.20261125.4/torbox/models/validation_error.py +102 -0
- torbox_sdk-9.3.1.20261125.4/torbox/py.typed +0 -0
- torbox_sdk-9.3.1.20261125.4/torbox/rest.py +335 -0
- torbox_sdk-9.3.1.20261125.4/torbox_sdk.egg-info/PKG-INFO +103 -0
- torbox_sdk-9.3.1.20261125.4/torbox_sdk.egg-info/SOURCES.txt +219 -0
- torbox_sdk-9.3.1.20261125.4/torbox_sdk.egg-info/dependency_links.txt +1 -0
- torbox_sdk-9.3.1.20261125.4/torbox_sdk.egg-info/requires.txt +7 -0
- torbox_sdk-9.3.1.20261125.4/torbox_sdk.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: torbox-sdk
|
|
3
|
+
Version: 9.3.1.20261125.4
|
|
4
|
+
Summary: Python SDK for the TorBox API
|
|
5
|
+
Author-email: TorBox <contact@torbox.app>
|
|
6
|
+
License: Proprietary
|
|
7
|
+
Project-URL: Homepage, https://api-docs.torbox.app/docs/sdks
|
|
8
|
+
Project-URL: Documentation, https://api-docs.torbox.app
|
|
9
|
+
Keywords: torbox,debrid,torrent,usenet,sdk
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
13
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
14
|
+
Requires-Dist: pydantic>=2.11
|
|
15
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
16
|
+
Provides-Extra: test
|
|
17
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
18
|
+
|
|
19
|
+
<!-- Generated by sdk-config (OpenAPI Generator 7.27.0 + hand-written layer) from the TorBox OpenAPI spec. Do not edit. -->
|
|
20
|
+
# TorBox Python SDK
|
|
21
|
+
|
|
22
|
+
Python client for the [TorBox API](https://api-docs.torbox.app). Generated from the
|
|
23
|
+
[OpenAPI spec](https://api.torbox.app/openapi.json) and published automatically when the API changes.
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install torbox-sdk==9.3.1.20261125.4
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Python 3.9+. The import name is `torbox`.
|
|
30
|
+
|
|
31
|
+
## Quick start
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
from torbox import TorBox
|
|
35
|
+
|
|
36
|
+
client = TorBox(api_key="YOUR_API_KEY") # https://torbox.app/settings
|
|
37
|
+
me = client.user.get_user_data() # returns `data`, typed
|
|
38
|
+
print(me.email)
|
|
39
|
+
|
|
40
|
+
client.torrents.create_torrent(magnet="magnet:?xt=urn:btih:...")
|
|
41
|
+
client.torrents.create_torrent(file=("ubuntu.torrent", open("ubuntu.torrent", "rb").read()))
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Groups: `torrents`, `usenet`, `web_downloads`, `user`, `general`, `notifications`, `rss`, `integrations`, `queued`,
|
|
45
|
+
`stream`, `tags`, `assistant`, `vendors`. Every method has the name of its `operationId` (see the
|
|
46
|
+
[reference](https://api-docs.torbox.app/reference)); `docs/` lists them all.
|
|
47
|
+
|
|
48
|
+
## Authentication
|
|
49
|
+
|
|
50
|
+
The key is sent as `Authorization: Bearer <key>`. The download link endpoints (`request_*_download_link*`) take it
|
|
51
|
+
as the `token` query parameter: the client fills it in for you.
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
url = client.torrents.request_torrent_download_link(torrent_id=123, file_id=0)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Pagination
|
|
58
|
+
|
|
59
|
+
List endpoints take `offset` and `limit`:
|
|
60
|
+
|
|
61
|
+
```python
|
|
62
|
+
for torrent in client.paginate(client.torrents.get_torrent_list, page_size=100):
|
|
63
|
+
print(torrent.id, torrent.name)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Errors
|
|
67
|
+
|
|
68
|
+
Every API answer is the envelope `{success, error, detail, data}`. Methods return `data`; anything else raises
|
|
69
|
+
`TorBoxError`:
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
from torbox import TorBoxError
|
|
73
|
+
|
|
74
|
+
try:
|
|
75
|
+
client.torrents.create_torrent(magnet="...")
|
|
76
|
+
except TorBoxError as e:
|
|
77
|
+
e.status # 403
|
|
78
|
+
e.error # "PLAN_RESTRICTED_FEATURE" (stable code, branch on it)
|
|
79
|
+
e.detail # message you can show to users
|
|
80
|
+
e.data
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Request validation errors (`422`) have `error == "VALIDATION_ERROR"`. Error codes:
|
|
84
|
+
[api-docs.torbox.app/docs/errors](https://api-docs.torbox.app/docs/errors).
|
|
85
|
+
|
|
86
|
+
## Retries and timeouts
|
|
87
|
+
|
|
88
|
+
`429` and `503` are retried (default 3 times), waiting for `Retry-After` or backing off exponentially. Every request
|
|
89
|
+
has a timeout (default 30 s).
|
|
90
|
+
|
|
91
|
+
```python
|
|
92
|
+
client = TorBox(api_key="...", timeout=10, max_retries=5, base_url="https://api.torbox.app")
|
|
93
|
+
client.user.get_user_data(_request_timeout=60) # per call
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Raw access
|
|
97
|
+
|
|
98
|
+
The generated client is underneath: `client.api_client`, and `client.torrents.get_torrent_list_with_http_info(...)`
|
|
99
|
+
returns status, headers and the full envelope without unwrapping.
|
|
100
|
+
|
|
101
|
+
## Example
|
|
102
|
+
|
|
103
|
+
[`examples/quickstart.py`](examples/quickstart.py)
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<!-- Generated by sdk-config (OpenAPI Generator 7.27.0 + hand-written layer) from the TorBox OpenAPI spec. Do not edit. -->
|
|
2
|
+
# TorBox Python SDK
|
|
3
|
+
|
|
4
|
+
Python client for the [TorBox API](https://api-docs.torbox.app). Generated from the
|
|
5
|
+
[OpenAPI spec](https://api.torbox.app/openapi.json) and published automatically when the API changes.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install torbox-sdk==9.3.1.20261125.4
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Python 3.9+. The import name is `torbox`.
|
|
12
|
+
|
|
13
|
+
## Quick start
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from torbox import TorBox
|
|
17
|
+
|
|
18
|
+
client = TorBox(api_key="YOUR_API_KEY") # https://torbox.app/settings
|
|
19
|
+
me = client.user.get_user_data() # returns `data`, typed
|
|
20
|
+
print(me.email)
|
|
21
|
+
|
|
22
|
+
client.torrents.create_torrent(magnet="magnet:?xt=urn:btih:...")
|
|
23
|
+
client.torrents.create_torrent(file=("ubuntu.torrent", open("ubuntu.torrent", "rb").read()))
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Groups: `torrents`, `usenet`, `web_downloads`, `user`, `general`, `notifications`, `rss`, `integrations`, `queued`,
|
|
27
|
+
`stream`, `tags`, `assistant`, `vendors`. Every method has the name of its `operationId` (see the
|
|
28
|
+
[reference](https://api-docs.torbox.app/reference)); `docs/` lists them all.
|
|
29
|
+
|
|
30
|
+
## Authentication
|
|
31
|
+
|
|
32
|
+
The key is sent as `Authorization: Bearer <key>`. The download link endpoints (`request_*_download_link*`) take it
|
|
33
|
+
as the `token` query parameter: the client fills it in for you.
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
url = client.torrents.request_torrent_download_link(torrent_id=123, file_id=0)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Pagination
|
|
40
|
+
|
|
41
|
+
List endpoints take `offset` and `limit`:
|
|
42
|
+
|
|
43
|
+
```python
|
|
44
|
+
for torrent in client.paginate(client.torrents.get_torrent_list, page_size=100):
|
|
45
|
+
print(torrent.id, torrent.name)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Errors
|
|
49
|
+
|
|
50
|
+
Every API answer is the envelope `{success, error, detail, data}`. Methods return `data`; anything else raises
|
|
51
|
+
`TorBoxError`:
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
from torbox import TorBoxError
|
|
55
|
+
|
|
56
|
+
try:
|
|
57
|
+
client.torrents.create_torrent(magnet="...")
|
|
58
|
+
except TorBoxError as e:
|
|
59
|
+
e.status # 403
|
|
60
|
+
e.error # "PLAN_RESTRICTED_FEATURE" (stable code, branch on it)
|
|
61
|
+
e.detail # message you can show to users
|
|
62
|
+
e.data
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Request validation errors (`422`) have `error == "VALIDATION_ERROR"`. Error codes:
|
|
66
|
+
[api-docs.torbox.app/docs/errors](https://api-docs.torbox.app/docs/errors).
|
|
67
|
+
|
|
68
|
+
## Retries and timeouts
|
|
69
|
+
|
|
70
|
+
`429` and `503` are retried (default 3 times), waiting for `Retry-After` or backing off exponentially. Every request
|
|
71
|
+
has a timeout (default 30 s).
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
client = TorBox(api_key="...", timeout=10, max_retries=5, base_url="https://api.torbox.app")
|
|
75
|
+
client.user.get_user_data(_request_timeout=60) # per call
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Raw access
|
|
79
|
+
|
|
80
|
+
The generated client is underneath: `client.api_client`, and `client.torrents.get_torrent_list_with_http_info(...)`
|
|
81
|
+
returns status, headers and the full envelope without unwrapping.
|
|
82
|
+
|
|
83
|
+
## Example
|
|
84
|
+
|
|
85
|
+
[`examples/quickstart.py`](examples/quickstart.py)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Generated by sdk-config (OpenAPI Generator + hand-written layer). Do not edit in sdks/python.
|
|
2
|
+
[project]
|
|
3
|
+
name = "torbox-sdk"
|
|
4
|
+
version = "9.3.1.20261125.4"
|
|
5
|
+
description = "Python SDK for the TorBox API"
|
|
6
|
+
authors = [{ name = "TorBox", email = "contact@torbox.app" }]
|
|
7
|
+
license = { text = "Proprietary" }
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
requires-python = ">=3.9"
|
|
10
|
+
keywords = ["torbox", "debrid", "torrent", "usenet", "sdk"]
|
|
11
|
+
dependencies = [
|
|
12
|
+
"urllib3>=2.1.0,<3.0.0",
|
|
13
|
+
"python-dateutil>=2.8.2",
|
|
14
|
+
"pydantic>=2.11",
|
|
15
|
+
"typing-extensions>=4.7.1",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.urls]
|
|
19
|
+
Homepage = "https://api-docs.torbox.app/docs/sdks"
|
|
20
|
+
Documentation = "https://api-docs.torbox.app"
|
|
21
|
+
|
|
22
|
+
[project.optional-dependencies]
|
|
23
|
+
test = ["pytest>=8"]
|
|
24
|
+
|
|
25
|
+
[build-system]
|
|
26
|
+
requires = ["setuptools>=69"]
|
|
27
|
+
build-backend = "setuptools.build_meta"
|
|
28
|
+
|
|
29
|
+
[tool.setuptools.packages.find]
|
|
30
|
+
include = ["torbox*"]
|
|
31
|
+
|
|
32
|
+
[tool.pytest.ini_options]
|
|
33
|
+
testpaths = ["tests"]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Runs against a Prism mock of the spec: TORBOX_MOCK_URL=http://127.0.0.1:4011 pytest"""
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
import pytest
|
|
5
|
+
|
|
6
|
+
from torbox import TorBox, TorBoxError
|
|
7
|
+
|
|
8
|
+
MOCK = os.environ.get("TORBOX_MOCK_URL", "http://127.0.0.1:4011")
|
|
9
|
+
KEY = "00000000-0000-4000-8000-000000000001"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@pytest.fixture
|
|
13
|
+
def client():
|
|
14
|
+
return TorBox(api_key=KEY, base_url=MOCK, timeout=10, max_retries=0)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def test_envelope_is_unwrapped(client):
|
|
18
|
+
me = client.user.get_user_data()
|
|
19
|
+
assert me is not None and not hasattr(me, "success")
|
|
20
|
+
assert me.email
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def test_multipart_upload(client):
|
|
24
|
+
data = client.torrents.create_torrent(file=("test.torrent", b"d8:announce0:e"))
|
|
25
|
+
assert data.torrent_id is not None
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def test_download_link_takes_the_key_as_token(client):
|
|
29
|
+
link = client.torrents.request_torrent_download_link(torrent_id=1, file_id=0)
|
|
30
|
+
assert isinstance(link, str)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def test_errors_are_typed(client):
|
|
34
|
+
with pytest.raises(TorBoxError) as info:
|
|
35
|
+
client.user.get_user_data(_headers={"Prefer": "code=401"})
|
|
36
|
+
assert info.value.status == 401
|
|
37
|
+
assert info.value.error in ("BAD_TOKEN", "NO_AUTH")
|
|
38
|
+
assert info.value.detail
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def test_paginate(client):
|
|
42
|
+
items = list(client.paginate(client.torrents.get_torrent_list, page_size=1000))
|
|
43
|
+
assert isinstance(items, list)
|