Skip to main content

Python SDK for Writer API

Project description

Python SDK

AI for everyone.

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.

writer-auth

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

co_write

completions

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

terminology

user

document

  • get - Get document details
  • list - List team documents

SDK Generated by Speakeasy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

writerai-0.24.1.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

writerai-0.24.1-py3-none-any.whl (94.2 kB view details)

Uploaded Python 3

File details

Details for the file writerai-0.24.1.tar.gz.

File metadata

  • Download URL: writerai-0.24.1.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for writerai-0.24.1.tar.gz
Algorithm Hash digest
SHA256 9ec5fd9406753c630af7f01a182f590849616c01f3750fa964fc2cad8d2fd6e2
MD5 96c36fcbaea8ead89428183cb8f5b2a6
BLAKE2b-256 05908fc3dfb840eea61beaf099817dcbd675c47cb86ee4ee18775f6c967c8a0d

See more details on using hashes here.

File details

Details for the file writerai-0.24.1-py3-none-any.whl.

File metadata

  • Download URL: writerai-0.24.1-py3-none-any.whl
  • Upload date:
  • Size: 94.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for writerai-0.24.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f162205ed49bbe2556c4a1dced8b808c8b3677e66007f99471c14cfe5a346ee5
MD5 993b81cfd03843fc2826643d2127ef64
BLAKE2b-256 a9a0b61033a7d5f2c8370d28ab0a10de31b6bb9a5d23ca1f8a5fee171587d543

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page