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

AIContentDetector

  • detect - Content detector api

Billing

CoWrite

Completions

Content

  • check - Check your content against your preset styleguide.
  • correct - Apply the style guide suggestions directly to your content.

DownloadTheCustomizedModel

  • fetch_file - Download your fine-tuned model (available only for Palmyra Base and Palmyra Large)

Files

ModelCustomization

  • 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.25.3.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

writerai-0.25.3-py3-none-any.whl (94.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for writerai-0.25.3.tar.gz
Algorithm Hash digest
SHA256 df584cc19decc097c19bb83976e71dadaec19459ce93aa6ae2f6499594ec54da
MD5 7aa7aca1822c9f5472a81148e33d69a1
BLAKE2b-256 045d643c58cd89dd923f0cc39c31fda7520c08ce1e9853f994a1f7bcda3abda5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for writerai-0.25.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ad2ce8d405233c872c1e8eab1cc65beda4e46c74e5af6484e3d4b49264362cb4
MD5 f710334773b89c449a339a27fac1c721
BLAKE2b-256 0ebb3a9f83db9fb8dcd874f670c27f7d0711a70434170c7ba7ac7cfd45f7c152

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