Thorbit Python SDK
Typed Python client for the unified Thorbit API. Generated Pydantic models and methods cover all 117 Thorbit tools.
Install
python -m pip install thorbit-sdk
Python 3.11 or newer is required.
Use
import os
from thorbit.generated_tools import GeneratedCallThorbitTools
with GeneratedCallThorbitTools(
{"api_key": os.environ["THORBIT_API_KEY"]}
) as thorbit:
response = thorbit.thorbit_account_projects_list({"limit": 25})
print(response.result)
Purposeful Images starts with an opportunity board before selected generation:
article = "A complete article to analyze for useful image opportunities."
board = thorbit.thorbit_images_start({
"sourceText": article,
"mode": "opportunity_board_only",
})
run = thorbit.thorbit_images_get({
"runPublicId": board.result["runPublicId"],
})
The lower-level CallThorbitTools.call_tool method supports dynamic integrations. Catch the exported stable exception classes for validation, HTTP, timeout, response, and transport failures.
Source and the generated contract are public at VilovietaSEO/thorbit-sdk.
License
MIT
Release files for thorbit-sdk 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| thorbit_sdk-0.10.0.tar.gz | 112.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| thorbit_sdk-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 225.2 kB
Release files / thorbit_sdk-0.10.0.tar.gz
| Download URL | thorbit_sdk-0.10.0.tar.gz |
|---|---|
| Size | 112.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dae6ace4bc212ec5061984655a071a7a6477aa373aa2de997a38bfa28454ddf7
|
|
BLAKE2b-256 checksum How to use checksums |
c6ace3c211a0c49a12b5cb8da8106ca600ff0ede3cbae825189019357a151ed1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / thorbit_sdk-0.10.0-py3-none-any.whl
| Download URL | thorbit_sdk-0.10.0-py3-none-any.whl |
|---|---|
| Size | 112.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54e3b237375a71adb377a7f6847a39a704c455cf2a4ab012ffe9b5694d7c21f2
|
|
BLAKE2b-256 checksum How to use checksums |
f5dde1b1cf86d2309bd80e809cac86bd4fddde6b132ae2ab2943abf8f56eacce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|