Python SDK for Writer API
Project description
SDK Installation
pip install writerai
Authentication
Writer authenticates your API requests using your account’s API keys. If you do not include your key when making an API request, or use one that is incorrect or outdated, Writer returns an error.
Your API keys are available in the account dashboard. We include randomly generated API keys in our code examples if you are not logged in. Replace these with your own or log in to see code examples populated with your own API keys.
If you cannot see your secret API keys in the Dashboard, this means you do not have access to them. Contact your Writer account owner and ask to be added to their team as a developer.
SDK Example Usage
import writer
from writer.models import operations, shared
s = writer.Writer(
security=shared.Security(
api_key="",
),
organization_id=548814,
)
res = s.ai_content_detector.detect(content_detector_request=shared.ContentDetectorRequest(
input='provident',
), organization_id=715190)
if res.content_detector_responses is not None:
# handle response
Available Resources and Operations
ai_content_detector
- detect - Content detector api
billing
- get_subscription_details - Get your organization subscription details
co_write
- generate_content - Generate content using predefined templates
- list_templates - Get a list of your existing CoWrite templates
completions
- create - Create completion for LLM model
- create_model_customization_completion - Create completion for LLM customization model
content
- check - Check your content against your preset styleguide.
- correct - Apply the style guide suggestions directly to your content.
download_the_customized_model
- fetch_file - Download your fine-tuned model (available only for Palmyra Base and Palmyra Large)
files
model_customization
- create - Create model customization
- delete - Delete Model customization
- get - Get model customization
- list - List model customizations
models
- list - List available LLM models
snippet
styleguide
- get - Page details
- list_pages - List your styleguide pages
terminology
user
- list - List users
document
SDK Generated by Speakeasy
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
File details
Details for the file writerai-0.18.0.tar.gz
.
File metadata
- Download URL: writerai-0.18.0.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dac74dd9a273d563c3b5413e4a718f3766bcdac53eda25222b2464f3f45ca62 |
|
MD5 | be5e419ba79008fc28eb2184e468af5f |
|
BLAKE2b-256 | cadec47872abd4628bbbce0d6f0e609e66b8a0e05fbd85854457f1de5d49f549 |
File details
Details for the file writerai-0.18.0-py3-none-any.whl
.
File metadata
- Download URL: writerai-0.18.0-py3-none-any.whl
- Upload date:
- Size: 93.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f3ab167db17f490977155fd2b919572f5ac33ff80c2dd5208397e569590251c |
|
MD5 | 924ecc6a3bf8b66d83c962d1469f7926 |
|
BLAKE2b-256 | 56ae6969d11c6dad9bda3b3837bb5b421ae249a02acb8413b94050c275be236d |