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 withfor automatic browser lifecycle management. - Strongly Typed: Returns
WishlistItemobjects 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
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file throne_client-0.1.8.tar.gz.
File metadata
- Download URL: throne_client-0.1.8.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed30599d984524d926f2040dbd40bf96c732e6fc255577dc3424dc747aab6ae0
|
|
| MD5 |
683cc739cf2b8dd11c8a4e862b9c1516
|
|
| BLAKE2b-256 |
6cd0b7df983b30df20a8d3b9924a25e00a72c4b4f745991806f2b2c0153f93d4
|
Provenance
The following attestation bundles were made for throne_client-0.1.8.tar.gz:
Publisher:
publish.yml on Squidiis/Throne-Client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
throne_client-0.1.8.tar.gz -
Subject digest:
ed30599d984524d926f2040dbd40bf96c732e6fc255577dc3424dc747aab6ae0 - Sigstore transparency entry: 1383998537
- Sigstore integration time:
-
Permalink:
Squidiis/Throne-Client@b843a10ea8d0329653275eea296eed2789554743 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/Squidiis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b843a10ea8d0329653275eea296eed2789554743 -
Trigger Event:
push
-
Statement type:
File details
Details for the file throne_client-0.1.8-py3-none-any.whl.
File metadata
- Download URL: throne_client-0.1.8-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f4dbe820487b511fa090a3f01fd7a89751367aaa836297a789446293a59025f
|
|
| MD5 |
161b790326d9f7f4972f3933e8f93179
|
|
| BLAKE2b-256 |
a225673ea0283b7454059a8e915ef05ad8720146d2eb54af889a477e740aca67
|
Provenance
The following attestation bundles were made for throne_client-0.1.8-py3-none-any.whl:
Publisher:
publish.yml on Squidiis/Throne-Client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
throne_client-0.1.8-py3-none-any.whl -
Subject digest:
1f4dbe820487b511fa090a3f01fd7a89751367aaa836297a789446293a59025f - Sigstore transparency entry: 1383998624
- Sigstore integration time:
-
Permalink:
Squidiis/Throne-Client@b843a10ea8d0329653275eea296eed2789554743 -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/Squidiis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b843a10ea8d0329653275eea296eed2789554743 -
Trigger Event:
push
-
Statement type: