Tiny Python wrapper for the PromptTube Public API v0.
Project description
PromptTube Python SDK (v0.1.0)
Tiny wrapper around the PromptTube Public API v0.
Install
Copy prompttube.py into your project, or publish this folder as a package.
Usage
from prompttube import PromptTube
client = PromptTube(
api_key="ptu_...",
base_url="https://prompttube.ai",
)
prompts = client.list_prompts(limit=10)
run = client.run(
messages=[{"role": "user", "content": "Summarize this text."}],
tier="basic",
)
summary = client.create_summary(
text=run["text"],
intent="Conversation recap",
reusable_prompt="You are a helpful summarizer.",
)
print(len(prompts["items"]), run["text"], summary["summaryId"])
Endpoints covered
- Read:
/api/v0/prompts - Run:
/api/v0/run - Summaries:
/api/v0/summaries
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
prompttube_sdk-0.1.0.tar.gz
(2.1 kB
view details)
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 prompttube_sdk-0.1.0.tar.gz.
File metadata
- Download URL: prompttube_sdk-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20c4fc26a038d3eba880380857ec2f3b8346c05c96927fb7f73b2a67a40bfacf
|
|
| MD5 |
9118da9bfcfa0638a9309d98fcedc087
|
|
| BLAKE2b-256 |
b3a2d6701c20c6ebc71e648238e2be9e351b473f9a60b55570f55a6789078acc
|
File details
Details for the file prompttube_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: prompttube_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b423cdbe32fbbe379d53c1a4918c2656f2dc6fb68a03dc18b6f3fa5a4e06803
|
|
| MD5 |
86c44cc2240a2c422b5a7011328ea04e
|
|
| BLAKE2b-256 |
82aba7e92ac7350447112f44a571d2b28bae4c951ad5f23a7fd76bbdeb7a92fc
|