Official Python SDK for the WriterzRoom API
Project description
writerzroom
Official Python SDK for the WriterzRoom API.
Installation
pip install writerzroom
Quickstart
from writerzroom import WriterzRoomClient
client = WriterzRoomClient(
api_key="your-api-key",
user_id="your-user-id",
)
request_id = client.generate(
template="blog_article_generator",
style_profile="thought_leadership",
generation_mode="standard",
dynamic_parameters={"topic": "The future of enterprise AI"},
)
result = client.wait_for_completion(request_id)
print(result.content)
Methods
| Method | Description |
|---|---|
generate(...) |
Submit a generation request, returns request_id |
get_status(request_id) |
Poll status for a generation request |
wait_for_completion(request_id) |
Block until generation completes, returns GenerationResult |
list_templates() |
List all available content templates |
list_style_profiles() |
List all available style profiles |
list_verticals() |
List all available industry verticals |
Context manager
with WriterzRoomClient(api_key="...", user_id="...") as client:
request_id = client.generate(
template="market_analysis_template",
style_profile="fintech",
generation_mode="premium",
vertical_id="fintech",
dynamic_parameters={"topic": "DeFi risk management 2026"},
)
result = client.wait_for_completion(request_id, timeout=720)
print(f"Generated {result.word_count} words")
Error handling
from writerzroom import (
AuthenticationError,
InsufficientCreditsError,
GenerationTimeoutError,
RateLimitError,
APIError,
)
try:
result = client.wait_for_completion(request_id)
except InsufficientCreditsError as e:
print(f"Need more credits. Balance: {e.balance}")
except GenerationTimeoutError as e:
print(f"Timed out: {e.request_id}")
except APIError as e:
print(f"API error {e.status_code}: {e}")
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
writerzroom-0.1.0.tar.gz
(3.2 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 writerzroom-0.1.0.tar.gz.
File metadata
- Download URL: writerzroom-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b89cdec9ca26ce71a89ceadded70a7377caa8e2f95c105959db786b920a7b9f8
|
|
| MD5 |
a08440949786ab19f6fbda580af8c609
|
|
| BLAKE2b-256 |
0af950c93ffc9fee05631041aa7f53ed0b927e99fc4a8b937a66978e82302500
|
File details
Details for the file writerzroom-0.1.0-py3-none-any.whl.
File metadata
- Download URL: writerzroom-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
229d3eef8436a92eb23c0f4c03a4ae00f0ade05f2b5809a36d832000bc73a532
|
|
| MD5 |
78fbcf495b2783b74e077499c11b0f9b
|
|
| BLAKE2b-256 |
8157d6ef02fc02189b08c9133399fb49c2a654d9cc095857512aff2988d5de97
|