Skip to main content

An async client for interacting with Throne wishlists.

Project description

Throne Python SDK

A professional, asynchronous SDK for interacting with Throne.com wishlists. This library uses a managed Playwright instance to provide a clean, high-level interface for accessing creator storefronts.

Key Features

  • Context Manager Support: Use async with for automatic browser lifecycle management.
  • Strongly Typed: Returns WishlistItem objects instead of raw dictionaries.
  • Robust Error Handling: Custom exceptions for 404 Not Found, 429 Rate Limited, and connection issues.
  • Anti-Bot Stealth: Integrated bypasses for automation detection.
  • Last Item Shortcut: Optimized method to fetch only the most recently added item.

Installation

  1. Install the package:
pip install throne-client

Usage

Using the Async Context Manager (Recommended)

This is the cleanest way to use the SDK, as it handles start() and stop() automatically.

import asyncio
from throne_sdk import ThroneClient

async def main():
    async with ThroneClient() as client:
        try:
            wishlist = await client.get_wishlist("username")
            for item in wishlist:
                print(f"{item.name} - {item.price}")
        except Exception as e:
            print(f"An error occurred: {e}")

if __name__ == "__main__":
    asyncio.run(main())

Fetching the Newest Item

Perfect for "Recent Wishlist Item" widgets in stream overlays:

async with ThroneClient() as client:
    item = await client.get_last_item("username")
    if item:
        print(f"Newest wish: {item.name}")

Data Structure: WishlistItem

The SDK returns objects with the following attributes:

  • name: String (Product title)
  • price: String (e.g., "$50.00" or "€20.00")
  • link: String (Full Throne item URL)
  • image: String (Image source URL)

Disclaimer

This is an unofficial community project and is not affiliated with Throne.com. Please use it responsibly and respect the platform's terms of service.

Built for the Creator Economy.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

throne_client-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

throne_client-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file throne_client-0.1.0.tar.gz.

File metadata

  • Download URL: throne_client-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for throne_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4e3f79fe9a8f025581a17f3946e4786da13f1068862a6b359bb6b761b500dc7
MD5 fe21a2409edca9c76308d9a0b0a36b60
BLAKE2b-256 8abd12b140d8ba7d5544db35bdf25f671bc12d2bbdd3052dcf2816f5fd5b6817

See more details on using hashes here.

Provenance

The following attestation bundles were made for throne_client-0.1.0.tar.gz:

Publisher: publish.yml on Squidiis/Throne-Client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file throne_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: throne_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for throne_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22b55587d23317bbb4c3911741a82df92b4585cf4eaadb476f207dd44db06a25
MD5 53177922715cab4ed1c4fceec52fe40d
BLAKE2b-256 e08819800ded281aa4b713aecd730ecc490153e41bafefda3d95dccff190aa7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for throne_client-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Squidiis/Throne-Client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page